Function at 0x4599c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
movzx esi, byte [ecx + 6]
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x34]
push edi
mov edi, edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], ebx
cmp byte [ecx + 2], bl
je 0x459a4f
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x18]
add ecx, eax
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
cmp ecx, 0x80
jae 0x459a24
mov byte [esi + edi], cl
lea eax, [ebx + 1]
jmp 0x459a37
mov eax, ecx
lea ecx, [esi + edi]
cdq
push edx
push eax
call fcn.004455c0
mov edx, dword [ebp + 8]
add esp, 8
push dword [edx + 0xc]
movzx eax, al
push dword [edx + 8]
add esi, eax
lea ecx, [esi + edi]
call fcn.004455c0
add esp, 8
jmp 0x459a88
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
cmp ecx, 0x80
jae 0x459a75
mov byte [esi + edi], cl
mov eax, 1
jmp 0x459a85
mov eax, ecx
lea ecx, [esi + edi]
cdq
push edx
push eax
call fcn.004455c0
add esp, 8
movzx eax, al
mov ecx, dword [esp + 0x34]
add esi, eax
mov edx, dword [esp + 0x10]
mov dword [esp + 0x24], esi
movzx eax, word [ecx + 0xa]
mov dword [esp + 0x34], eax
cmp edx, eax
jg 0x459ac0
mov eax, 4
lea ecx, [edx + esi]
cmp ecx, eax
mov edi, edx
cmovl ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], eax
jmp 0x459b00
movzx esi, word [ecx + 0xc]
mov eax, edx
mov ecx, dword [ecx + 0x34]
sub eax, esi
xor edx, edx
mov ecx, dword [ecx + 0x24]
sub ecx, 4
div ecx
mov eax, dword [ebp + 0xc]
lea edi, [esi + edx]
mov edx, dword [esp + 0x10]
cmp edi, dword [esp + 0x34]
cmovg edi, esi
mov esi, dword [esp + 0x24]
add esi, edi
lea ecx, [esi + 4]
mov dword [eax], ecx
mov eax, dword [esp + 0x30]
lea ecx, [esi + eax]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x30], ecx
add eax, esi
mov dword [esp + 0x24], eax
test edx, edx
jle 0x459d13
mov ecx, dword [esp + 0x14]
test edi, edi
jne 0x459cae
mov esi, dword [esp + 0x18]
mov dword [esp + 0x34], ebx
cmp byte [esi + 0x11], 0
je 0x459b80
mov edi, dword [esi + 0x20]
jmp 0x459b30
inc ebx
cmp ebx, 2
jae 0x459b3a
xor ecx, ecx
jmp 0x459b6a
mov eax, 0xcccccccd
mul dword [esi + 0x24]
lea eax, [ebx - 2]
mov esi, edx
xor edx, edx
shr esi, 2
inc esi
div esi
xor edx, edx
mov ecx, eax
mov eax, dword [0x6686a4]
div edi
imul ecx, esi
inc eax
add ecx, 2
cmp ecx, eax
jne 0x459b66
inc ecx
mov esi, dword [esp + 0x18]
cmp ecx, ebx
je 0x459b30
mov eax, dword [0x6686a4]
xor edx, edx
div edi
inc eax
cmp ebx, eax
je 0x459b30
mov dword [esp + 0x28], ebx
push 0
lea eax, [esp + 0x2c]
mov ecx, esi
push ebx
push eax
lea edx, [esp + 0x38]
call fcn.00458f40
mov edi, dword [esp + 0x24]
add esp, 0xc
mov ebx, dword [esp + 0x28]
mov esi, eax
mov dword [esp + 0x24], esi
cmp byte [edi + 0x11], 0
je 0x459beb
test esi, esi
jne 0x459d1c
lea eax, [esp + 0x24]
mov edx, ebx
push eax
mov eax, dword [esp + 0x38]
mov ecx, edi
test eax, eax
push eax
setne al
add al, 3
movzx eax, al
push eax
call fcn.00454490
mov esi, dword [esp + 0x30]
add esp, 0xc
test esi, esi
je 0x459bf3
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x459beb
mov ecx, dword [ecx + 0x48]
call fcn.0044f830
test esi, esi
jne 0x459d1c
mov ecx, dword [esp + 0x30]
mov eax, ebx
bswap eax
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x459c81
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x18], 0x20
mov esi, dword [ecx + 0x10]
mov dword [esp + 0x30], esi
je 0x459c60
dec dword [esi + 0x80]
mov eax, dword [esi + 0x90]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x90], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x14]
mov eax, dword [eax + 0xa0]
dec ecx
mov esi, dword [esi + 0x40]
cdq
push edx
push eax
mov edi, dword [esi]
push 0
push ecx
call fcn.004c88c0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [esp + 0x40]
add esp, 0x10
mov edi, dword [esp + 0x18]
jmp 0x459c65
call fcn.00449e00
cmp dword [esi + 0x80], 0
jne 0x459c81
mov eax, dword [esi + 0xd4]
cmp dword [eax + 0xc], 0
jne 0x459c81
mov ecx, esi
call fcn.0044cb20
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x30], ecx
mov dword [ecx], 0
mov eax, dword [eax + 0x38]
mov edi, dword [edi + 0x24]
add eax, 4
mov ecx, dword [esp + 0x14]
sub edi, 4
mov dword [esp + 0x24], eax
cmp edx, edi
mov esi, edx
cmovg esi, edi
test ecx, ecx
jle 0x459ccb
cmp esi, ecx
cmovg esi, ecx
push esi
push dword [esp + 0x20]
push eax
call fcn.004c54b0
jmp 0x459cd4
push esi
push 0
push eax
call fcn.004c6800
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [esp + 0x24]
sub edx, esi
mov ecx, dword [esp + 0x14]
add eax, esi
add dword [esp + 0x1c], esi
sub ecx, esi
sub edi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ecx
test edx, edx
jg 0x459b12
mov eax, dword [esp + 0x20]
test eax, eax
je 0x459d13
mov ecx, dword [eax + 0x48]
call fcn.0044f830
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
test eax, eax
je 0x459d2c
mov ecx, dword [eax + 0x48]
call fcn.0044f830
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret