Function at 0x4805f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov ebx, edx
mov dword [esp + 0x14], 0
mov edx, ecx
push esi
xor esi, esi
mov dword [esp + 0x10], edx
mov eax, dword [ebx]
movzx ecx, byte [ebx + 0x20]
not ecx
and ecx, 1
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
add eax, ecx
add eax, dword [ebp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], ecx
push edi
mov edi, dword [edx + 8]
test eax, eax
je 0x480644
mov ecx, dword [ebp + 0xc]
sub ecx, eax
jmp 0x480651
mov eax, dword [edx + 0x2c]
lea ecx, [eax + 1]
add eax, dword [esp + 0x20]
mov dword [edx + 0x2c], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x480662
inc eax
jmp 0x480665
mov eax, dword [ecx + 0xc]
mov edx, dword [edi + 0xc]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
mov ecx, dword [edx + 0x3c]
mov dword [esp + 0x34], ecx
lea eax, [ecx + 1]
mov dword [edx + 0x3c], eax
lea eax, [ecx - 1]
test ecx, eax
jne 0x4806aa
mov edx, dword [edx + 0x40]
lea eax, [ecx*8 + 4]
mov ecx, dword [esp + 0x28]
push 0
push eax
mov ecx, dword [ecx]
call fcn.004266f0
mov edx, dword [esp + 0x30]
add esp, 8
mov ecx, dword [esp + 0x34]
mov dword [edx + 0x40], eax
mov eax, dword [edx + 0x40]
test eax, eax
je 0x4806b8
mov dword [eax + ecx*4], 0xffffffff
mov edx, dword [esp + 0x10]
not ecx
mov dword [ebx + 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
setne al
lea eax, [eax*4 + 1]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [ebx]
call fcn.00460f60
mov ecx, dword [esp + 0x3c]
add esp, 0xc
add ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
test eax, eax
je 0x480710
push ecx
push dword [ebx + 8]
mov edx, 0x78
mov ecx, edi
call fcn.00445a20
mov eax, dword [esp + 0x20]
add esp, 8
mov ecx, dword [esp + 0x34]
cmp dword [ebp + 0x18], esi
jne 0x48072f
mov edx, dword [ebp + 0x14]
test edx, edx
jle 0x48072f
push edx
mov edx, dword [ebp + 0xc]
add eax, ecx
mov ecx, dword [esp + 0x18]
push eax
call fcn.0045fa20
add esp, 8
cmp dword [esp + 0x24], esi
jle 0x480a0d
push dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, ebx
push dword [esp + 0x14]
push dword [ebp + 8]
call fcn.00480550
mov dword [esp + 0x28], eax
add esp, 0xc
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x2c]
lea ecx, [edx + 1]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx + 4]
add ecx, edx
mov dword [eax + 0x2c], ecx
mov ecx, dword [esp + 0x30]
sub ecx, dword [ebx + 4]
mov eax, dword [esp + 0x18]
add ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
test eax, eax
jne 0x480788
mov ecx, dword [ebx + 8]
push ecx
test eax, eax
mov ecx, 0x73
mov edx, 0x14
cmove edx, ecx
mov ecx, edi
call fcn.004459b0
mov ecx, dword [edi + 0xc]
add esp, 4
mov edx, dword [edi + 0x88]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x34], eax
cmp dword [ecx + 0x30], edx
jg 0x4807d6
mov edx, dword [esp + 0x28]
mov ecx, edi
push eax
push dword [esp + 0x14]
push edx
mov edx, 0x57
call fcn.00445890
add esp, 0xc
jmp 0x480808
lea eax, [edx + 1]
mov dword [edi + 0x88], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x58]
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4], 0x57
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], esi
mov ecx, dword [ebx + 0x14]
test ecx, ecx
jns 0x480816
mov ecx, dword [edi + 0x88]
dec ecx
mov eax, dword [edi]
cmp byte [eax + 0x49], 0
je 0x480825
mov ecx, 0x52100c
jmp 0x48082e
mov eax, dword [edi + 0x58]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], ecx
mov eax, dword [eax]
cmp byte [eax + 0x49], 0
jne 0x480b0c
mov eax, dword [esp + 0x18]
add eax, dword [ebp + 0x14]
mov dword [ecx + 8], eax
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x18], ecx
movzx eax, word [ecx + 6]
push eax
push 0
push dword [ecx + 0x10]
call fcn.004b1910
mov ecx, dword [edi]
add esp, 0xc
cmp byte [ecx + 0x49], 0
je 0x480884
push dword [esp + 0x18]
mov edx, 0xfffffff7
call fcn.00446480
mov eax, dword [esp + 0x1c]
add esp, 4
jmp 0x4808be
mov eax, dword [edi + 0x88]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x58]
cmp byte [eax + ecx*4 - 0x13], 0
lea ecx, [eax + ecx*4]
je 0x4808b3
push 0xfffffffffffffff7
push dword [esp + 0x1c]
lea edx, [ecx - 0x14]
mov ecx, edi
call fcn.00446610
mov eax, dword [esp + 0x20]
add esp, 8
jmp 0x4808be
mov eax, dword [esp + 0x18]
mov dword [ecx - 4], eax
mov byte [ecx - 0x13], 0xf7
movzx ecx, word [eax + 8]
movzx eax, word [eax + 6]
mov edx, dword [ebx]
sub ecx, eax
dec ecx
push ecx
push dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
call fcn.00481aa0
mov ecx, dword [esp + 0x3c]
mov edx, 0x10
mov dword [ecx + 0x10], eax
mov ecx, edi
mov eax, dword [edi + 0x88]
mov dword [esp + 0x44], eax
inc eax
push eax
push 0
push eax
call fcn.004458d0
mov edx, dword [edi + 0xc]
add esp, 0x14
mov dword [esp + 0x34], edx
mov ecx, dword [edx + 0x3c]
mov dword [esp + 0x18], ecx
lea eax, [ecx + 1]
mov dword [edx + 0x3c], eax
lea eax, [ecx - 1]
test ecx, eax
jne 0x48093f
mov edx, dword [edx + 0x40]
lea eax, [ecx*8 + 4]
mov ecx, dword [esp + 0x34]
push 0
push eax
mov ecx, dword [ecx]
call fcn.004266f0
mov edx, dword [esp + 0x3c]
add esp, 8
mov ecx, dword [esp + 0x18]
mov dword [edx + 0x40], eax
mov eax, dword [edx + 0x40]
test eax, eax
je 0x48094d
mov dword [eax + ecx*4], 0xffffffff
not ecx
mov edx, 0xc
mov dword [ebx + 0x10], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x2c]
inc eax
mov dword [ecx + 0x2c], eax
mov ecx, edi
push dword [ebx + 0x10]
mov dword [ebx + 0xc], eax
push eax
call fcn.00445a20
push dword [ebx + 8]
mov edx, 0x8b
mov ecx, edi
call fcn.004459b0
mov eax, dword [esp + 0x38]
add esp, 0xc
test eax, eax
je 0x48099d
push dword [ebx + 0x18]
mov edx, 0x14
mov ecx, edi
push eax
call fcn.00445a20
add esp, 8
mov ecx, dword [esp + 0x38]
mov edx, dword [edi + 0x88]
test ecx, ecx
jns 0x4809ae
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x49], 0
je 0x4809bd
mov eax, 0x52100c
jmp 0x4809c6
mov eax, dword [edi + 0x58]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x14]
mov dword [eax + 8], edx
push dword [ebx + 4]
mov edx, dword [esp + 0x14]
push dword [esp + 0x2c]
call fcn.0045fa20
mov eax, dword [edi]
add esp, 8
mov edx, dword [edi + 0x88]
cmp byte [eax + 0x49], 0
je 0x4809f5
mov eax, 0x52100c
jmp 0x480a0a
mov ecx, dword [esp + 0x3c]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x58]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x480a77
mov eax, dword [edi + 0x88]
mov edx, 0x30
mov esi, dword [ebx + 8]
add eax, 4
push eax
push ecx
mov ecx, edi
call fcn.00445a20
push 0
push esi
mov edx, 0x20
mov ecx, edi
call fcn.00445a20
mov eax, dword [esp + 0x40]
mov edx, 0x25
sub eax, dword [esp + 0x34]
mov ecx, edi
push eax
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x38]
push eax
push 0
push esi
call fcn.00445e30
push esi
mov edx, 0x7c
mov dword [esp + 0x60], eax
mov ecx, edi
call fcn.004459b0
mov esi, dword [esp + 0x60]
add esp, 0x24
mov edx, dword [esp + 0x1c]
test edx, edx
jne 0x480a9e
push dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, ebx
push dword [esp + 0x14]
push dword [ebp + 8]
call fcn.00480550
add esp, 0xc
mov dword [esp + 0x1c], eax
mov edx, eax
mov eax, dword [esp + 0x20]
mov ecx, edi
sub eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x28]
push eax
push edx
mov dl, byte [ebx + 0x20]
push dword [ebx + 8]
not dl
and edx, 1
add edx, 0x84
call fcn.00445e30
add esp, 0x10
test esi, esi
je 0x480b0c
mov edx, dword [ebx + 0x1c]
test edx, edx
jne 0x480add
mov edx, dword [edi + 0x88]
test esi, esi
jns 0x480ae8
mov esi, dword [edi + 0x88]
dec esi
mov eax, dword [edi]
cmp byte [eax + 0x49], 0
je 0x480aff
mov eax, 0x52100c
mov dword [eax + 8], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x58]
lea ecx, [esi + esi*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret