Function at 0x5d0f30
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
xor ebx, ebx
movzx eax, word [edi + 4]
movzx esi, byte [edi + 6]
mov ebp, eax
mov ecx, eax
push ebp
mov dword [esp + 0x30], ecx
call fcn.005cd370
add esi, 0xffffffef
mov dword [0x6587a4], ebp
add esp, 4
cmp esi, 0x1b
ja case.0x5d0f6f.18
movzx eax, byte [esi + 0x5d1480]
jmp dword [eax*4 + 0x5d1440]
mov eax, dword [esp + 0x30]
mov esi, dword [edi + 8]
mov ebx, dword [eax]
push ebx
test esi, esi
je 0x5d0f91
call fcn.005cd190
mov dword [eax + 0x14], esi
jmp 0x5d1422
call fcn.005ccfe0
xor ebx, ebx
jmp 0x5d1422
mov esi, dword [esp + 0x30]
mov eax, dword [edi + 0xc]
mov ebx, dword [edi + 8]
push ebp
push dword [esi + 0x14]
mov dword [esp + 0x34], eax
lea eax, [edi + 0x10]
push dword [esi + 0xc]
push dword [esi + 0x10]
push ebx
push eax
push dword [esi]
call fcn.005cae60
mov edx, dword [esi + 4]
mov ecx, eax
test edx, edx
je 0x5d0fda
cmp dword [esp + 0x2c], 0xc
jbe 0x5d0fda
mov ecx, dword [ebx + edi + 0x1c]
mov dword [edx + 0xc], ecx
mov ecx, eax
mov eax, dword [esi + 8]
test eax, eax
je 0x5d0fe3
mov dword [eax], ecx
xor ebx, ebx
test ebp, ebp
jmp 0x5d141f
mov ecx, dword [esp + 0x30]
mov eax, dword [edi + 8]
mov edx, dword [ecx + 4]
cmp eax, edx
jbe 0x5d1009
cmp word [esp + 0x2c], bx
mov eax, edx
mov edx, 5
cmove ebp, edx
push eax
lea eax, [edi + 0xc]
push eax
push dword [ecx]
call fcn.0060a150
add esp, 0xc
mov ebx, dword [edi + 8]
jmp 0x5d1422
mov ecx, dword [esp + 0x30]
mov ebx, dword [edi + 8]
mov edx, dword [ecx + 4]
lea esi, [ebx + 1]
and edx, 0x10000
je 0x5d103c
lea esi, [ebx*2 + 2]
xor eax, eax
test edx, edx
setne al
cmp esi, dword [ecx + 8]
jbe 0x5d105b
cmp word [esp + 0x2c], 0
mov eax, 5
cmove ebp, eax
jmp 0x5d1422
push eax
push ebx
lea eax, [edi + 0xc]
push eax
push dword [ecx]
call fcn.005d1e90
mov ebx, dword [edi + 8]
jmp 0x5d1422
mov ecx, dword [esp + 0x30]
lea ebx, [edi + 0xc]
mov eax, dword [edi + 8]
mov edx, dword [ecx + 8]
cmp eax, edx
jbe 0x5d1091
cmp word [esp + 0x2c], 0
mov eax, edx
mov edx, 5
cmove ebp, edx
push eax
push ebx
push dword [ecx]
call fcn.0060a150
mov ebx, dword [edi + 8]
add esp, 0xc
jmp 0x5d1422
mov eax, dword [esp + 0x30]
mov esi, dword [edi + 8]
mov ebx, dword [eax]
push ebx
test esi, esi
je 0x5d0f91
call fcn.005cd190
mov dword [eax + 0xc], esi
jmp 0x5d1422
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + 4]
mov ecx, ebx
mov edx, dword [eax + 8]
and ecx, 0xf0
mov esi, dword [eax]
lea eax, [edi + 0xc]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 8]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
jne 0x5d11bb
mov edi, eax
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov ebx, 0x24
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
movzx eax, word [edi + 0x18]
mov word [esi + 0x18], ax
movzx eax, word [edi + 0x1a]
mov word [esi + 0x1a], ax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
cmp dword [0x6587c8], 0
je 0x5d1155
or edx, 0x10000
mov dword [esi], edx
mov eax, dword [esp + 0x10]
cmp eax, 0x24
jbe 0x5d11b2
mov ecx, dword [edi + 0xc]
cmp ecx, ebx
jb 0x5d11b2
cmp dword [esp + 0x14], eax
jb 0x5d11cc
shr edx, 0x10
lea ebx, [esi + 0x24]
and edx, 1
add eax, 0xffffffdc
push edx
push eax
lea eax, [ecx + edi]
push eax
push ebx
call fcn.005d1e90
test dword [esp + 0x1c], 0x80000
mov ebx, dword [esp + 0x10]
mov eax, dword [esi]
je 0x5d11a3
or eax, 0x80000
mov dword [esi + 0xc], 0x24
mov dword [esi], eax
jmp 0x5d11cc
and eax, 0xfff7ffff
mov dword [esi], eax
lea eax, [esi + 0x24]
mov dword [esi + 0xc], eax
jmp 0x5d11cc
mov dword [esi + 0xc], 0
jmp 0x5d11cc
push ebx
push 0
push edx
push esi
push ecx
push eax
call fcn.005d14a0
add esp, 0x18
mov ebx, eax
mov eax, dword [esp + 0x14]
cmp ebx, eax
jbe 0x5d11e2
cmp word [esp + 0x2c], 0
mov ecx, 5
cmove ebp, ecx
cmp dword [esp + 0x24], 0
jne 0x5d1422
cmp eax, 8
jb 0x5d1422
push dword [esi + 4]
call fcn.005cd240
mov dword [esi + 4], eax
jmp 0x5d1422
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 0xc]
add edi, 0x10
mov edx, dword [eax + 8]
cmp ecx, edx
ja 0x5d1222
cmp word [esp + 0x2c], 0
je 0x5d122b
mov ecx, edx
mov ebx, edx
mov ebp, 5
cmp ecx, edx
cmova ecx, edx
push ecx
push edi
push dword [eax]
call fcn.0060a150
add esp, 0xc
jmp 0x5d1422
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
cmp ecx, edx
jbe 0x5d1267
cmp word [esp + 0x2c], 0
jne 0x5d1267
mov ecx, edx
mov ebp, 5
push ecx
lea eax, [edi + 0x10]
push eax
push dword [esp + 0x2c]
call fcn.0060a150
add esp, 0xc
jmp 0x5d1422
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
cmp ecx, edx
jbe 0x5d12a3
cmp word [esp + 0x2c], 0
jne 0x5d12a3
mov ecx, edx
mov ebp, 5
push ecx
lea eax, [edi + 0x10]
push eax
push dword [esp + 0x2c]
call fcn.0060a150
add esp, 0xc
jmp 0x5d1422
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
cmp ecx, edx
jbe 0x5d12df
cmp word [esp + 0x2c], 0
jne 0x5d12df
mov ecx, edx
mov ebp, 5
push ecx
lea eax, [edi + 0x10]
push eax
push dword [esp + 0x2c]
call fcn.0060a150
add esp, 0xc
jmp 0x5d1422
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 8]
add edi, 0x10
mov edx, dword [eax + 4]
mov esi, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, edx
and eax, 0xf0
je 0x5d135d
cmp eax, 0x10
je 0x5d135d
cmp eax, 0x20
jne 0x5d1422
and edx, 0x10000
lea ebx, [ecx + ecx]
cmove ebx, ecx
cmp ebx, esi
jbe 0x5d133a
lea ebp, [eax - 0x1b]
jmp 0x5d1422
test ecx, ecx
je 0x5d1422
xor eax, eax
test edx, edx
setne al
push eax
lea eax, [ecx - 1]
push eax
push edi
push dword [esp + 0x20]
call fcn.005d1e90
jmp 0x5d1422
push edx
push 0
push esi
push dword [esp + 0x20]
push ecx
push edi
call fcn.005d14a0
mov ebx, eax
add esp, 0x18
cmp ebx, esi
jbe 0x5d1422
cmp word [esp + 0x2c], 0
mov eax, 5
cmove ebp, eax
jmp 0x5d1422
mov eax, dword [esp + 0x30]
mov ebx, dword [edi + 0xc]
mov ecx, dword [eax + 4]
mov esi, dword [eax + 8]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 8]
add edi, 0x10
and eax, 0xf0
je 0x5d13c1
cmp eax, 0x30
jne 0x5d1422
push ecx
push edi
push edx
call fcn.0060a150
add esp, 0xc
jmp 0x5d1422
push dword [esp + 0x24]
push 0
push esi
push edx
push ecx
push edi
call fcn.005d14a0
mov ebx, eax
add esp, 0x18
cmp ebx, esi
jbe 0x5d1422
cmp word [esp + 0x2c], 0
mov eax, 5
cmove ebp, eax
jmp 0x5d1422
mov esi, dword [esp + 0x2c]
mov ecx, dword [edi + 8]
test si, si
jne 0x5d1411
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
test edx, edx
je 0x5d1411
test ecx, ecx
je 0x5d1411
push ecx
lea eax, [edi + 0xc]
push eax
push edx
call fcn.0060a150
add esp, 0xc
xor ebx, ebx
test si, si
jmp 0x5d141f
xor ebx, ebx
cmp word [esp + 0x2c], bx
sete bl
test ebp, ebp
je 0x5d1435
push ebp
call fcn.005cd370
add esp, 4
mov dword [0x6587a4], ebp
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x18
ret