Function at 0x504060
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
xor ecx, ecx
push ebp
push esi
xor esi, esi
mov dword [esp + 0xc], ecx
mov edx, dword [eax + 0x18]
mov ebp, 0x6199cb
mov dword [esp + 0x10], ebp
mov dword [esp + 8], edx
test edx, edx
je 0x504281
push ebx
push edi
nop dword [eax + eax]
test byte [edx + 6], 0x80
jne 0x504266
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x1c], edi
cmp dword [edx + 0x2c], ebx
jbe 0x504266
nop dword [eax + eax]
mov ecx, dword [edx + 0x24]
xor eax, eax
add ecx, edi
mov dword [esp + 0x24], eax
movzx eax, byte [ecx]
add eax, 0xffffffdc
cmp eax, 0x7d
ja case.0x5040cd.37
movzx eax, byte [eax + 0x5042a4]
jmp dword [eax*4 + 0x50428c]
movzx ebx, word [ecx + 1]
jmp case.0x5040cd.37
lea ebp, [ecx + 1]
xor esi, esi
mov dword [esp + 0x18], ebp
jmp case.0x5040cd.37
movzx eax, word [ecx + 6]
lea eax, [eax*2 + 8]
mov dword [esp + 0x24], eax
jmp case.0x5040cd.37
movzx eax, word [ecx + 5]
lea eax, [eax*2 + 7]
mov dword [esp + 0x24], eax
jmp case.0x5040cd.37
mov dword [esp + 0x24], 2
test ebx, ebx
je 0x504235
test esi, esi
jne 0x5041c8
push 0x3a
push ebp
call fcn.0052b850
mov edi, eax
add esp, 8
test edi, edi
je 0x504134
sub edi, ebp
jmp 0x504149
mov edi, ebp
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x504140
sub edi, ecx
mov eax, dword [esp + 0x14]
mov esi, eax
test eax, eax
je 0x504177
push edi
push dword [esi]
push ebp
call fcn.0052f830
add esp, 0xc
test eax, eax
jne 0x504170
mov eax, dword [esi]
mov al, byte [edi + eax]
test al, al
je 0x5041c8
cmp al, 0x3a
je 0x5041c8
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x504153
push 0x18
call fcn.0047f870
push edi
push ebp
mov esi, eax
call fcn.004e99d0
mov dword [esi], eax
add esp, 0xc
mov eax, ebx
mov dword [esi + 8], ebx
shr eax, 3
add eax, 0x100
mov dword [esi + 4], ebx
and eax, 0xffffff00
mov dword [esi + 0xc], eax
inc eax
push eax
push 0
push eax
call fcn.0047f870
add esp, 4
push eax
call fcn.0052b3e0
mov dword [esi + 0x10], eax
add esp, 0xc
mov eax, dword [esp + 0x14]
mov dword [esi + 0x14], eax
mov dword [esp + 0x14], esi
mov ebp, ebx
shr ebp, 3
cmp dword [esi + 0xc], ebp
ja 0x504209
lea edi, [ebp + 0x100]
and edi, 0xffffff00
lea eax, [edi + 1]
push eax
push dword [esi + 0x10]
call fcn.0047fb20
mov ecx, dword [esi + 0xc]
mov edx, eax
mov eax, edi
mov dword [esi + 0x10], edx
sub eax, ecx
inc eax
push eax
lea eax, [ecx + edx]
push 0
push eax
call fcn.0052b3e0
add esp, 0x14
mov dword [esi + 0xc], edi
mov edx, dword [esi + 0x10]
mov eax, ebx
and eax, 7
movzx ecx, byte [edx + ebp]
bts ecx, eax
mov byte [edx + ebp], cl
cmp dword [esi + 4], ebx
jbe 0x504223
mov dword [esi + 4], ebx
cmp dword [esi + 8], ebx
jae 0x50422b
mov dword [esi + 8], ebx
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x50424f
push edi
push edx
call fcn.0050c5c0
mov edx, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x504262
mov ebp, dword [esp + 0x18]
add edi, eax
mov dword [esp + 0x1c], edi
cmp edi, dword [edx + 0x2c]
jb 0x5040b0
mov ebp, dword [esp + 0x18]
mov edx, dword [edx + 0x5c]
mov dword [esp + 0x10], edx
test edx, edx
jne 0x504090
mov eax, dword [esp + 0x14]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x10
ret
pop esi
mov eax, ecx
pop ebp
add esp, 0x10
ret