Function at 0x40b470
Capabilities:
Enumerate pe sections

Disassembly:
mov edx, dword [esp + 0x14]
sub esp, 0x168
xor ecx, ecx
nop
mov eax, dword [edx + 0x18]
push ebx
push esi
mov ebx, dword [edx + 0x14]
mov dword [esp + 0x10], eax
push edi
mov dword [esp + 0x1c], ebx
push ebp
mov ebp, dword [edx + 0x10]
mov edi, dword [edx + 8]
mov al, byte [0x4866c0]
mov dword [esp + 0x24], edi
cmp al, cl
jne 0x40b4ca
mov dword [0x4866c4], 0x20
mov byte [0x4866c0], 1
mov dword [0x4866c8], ecx
mov eax, dword [edx]
cmp dword [eax + 8], ecx
je 0x40b4ca
mov dword [0x4866c8], 0x10
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x40b4eb
mov esi, dword [esp + 0x24]
add esi, 4
xor edx, edx
mov dl, byte [esi]
add esi, 0x80
imul edx, ebp
add ecx, edx
dec eax
jne 0x40b4d9
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
cmp eax, edx
jle 0x40b519
mov eax, edx
mov edi, dword [esp + 0x24]
shl eax, 7
lea esi, [eax + edi + 4]
mov eax, dword [esp + 0x18]
sub eax, edx
xor edx, edx
mov dl, byte [esi]
add esi, 0x80
add ecx, edx
dec eax
jne 0x40b50a
mov edx, dword [esp + 0x188]
mov ebx, dword [0x4866c8]
mov esi, dword [0x4866c4]
mov eax, dword [edx]
sub eax, ebx
sub eax, esi
sub eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov dword [edx], eax
xor edx, edx
cmp ecx, edx
jle 0x40b5d6
lea eax, [esp + 0x78]
mov ecx, dword [esp + 0x17c]
mov ebx, dword [esp + 0x184]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ebx
test ebp, ebp
jle 0x40b5ac
lea edi, [esp + edx + 0x38]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ebx, ebp
jmp 0x40b581
fstp dword [eax - 0x80]
fld dword [0x486658]
fsub dword [ecx]
mov dword [esi], 0
mov byte [edi], 0
add edi, 0x20
add esi, 0x80
add ecx, 0x80
add eax, 0x80
dec ebx
jne 0x40b57e
fstp dword [eax - 0x80]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, 4
add ecx, 4
mov ebx, dword [esp + 0x1c]
inc edx
add ebx, 4
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ebx
cmp esi, edx
jg 0x40b566
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov edx, 0xffffffff
xor edi, edi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0x497423f0
cmp eax, edi
jle 0x40b643
xor ecx, ecx
test ebp, ebp
jle 0x40b63a
lea ebx, [esp + edi*4 + 0x78]
lea esi, [esp + edi + 0x38]
mov al, byte [esi]
cmp al, 2
je 0x40b62c
fld dword [ebx]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
je 0x40b62c
mov eax, dword [ebx]
mov edx, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
add ebx, 0x80
add esi, 0x20
inc ecx
cmp ebp, ecx
jg 0x40b60d
inc edi
mov eax, dword [esp + 0x18]
cmp eax, edi
jg 0x40b5ff
cmp edx, 0xffffffff
jle 0x40b834
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x184]
shl eax, 5
mov ecx, edx
shl ecx, 4
add eax, edx
mov esi, dword [edi + eax*4]
mov edi, dword [esp + 0x24]
add ecx, esi
mov dword [esp + 0x10], 0
mov bl, byte [edi + ecx*8 + 0xd]
lea edi, [edi + ecx*8]
xor ecx, ecx
mov byte [esp + 0x10], bl
mov cl, byte [edi + 0xc]
mov bl, byte [esp + eax + 0x38]
imul ecx, dword [esp + 0x10]
lea ecx, [ecx + ecx*2]
shl ecx, 2
test bl, bl
mov dword [esp + 0x1c], ecx
je 0x40b6c2
xor ecx, ecx
mov bl, byte [edi + 5]
mov dword [esp + 0x10], 0
mov cl, byte [edi + 4]
mov byte [esp + 0x10], bl
imul ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
lea ecx, [ecx + ecx*2]
shl ecx, 2
sub edi, ecx
mov dword [esp + 0x1c], edi
mov ecx, 1
mov ebx, dword [esp + 0x14]
sub ecx, ebx
mov bl, byte [esp + eax + 0x38]
mov dword [esp + 0x10], ecx
xor ecx, ecx
cmp bl, cl
je 0x40b6e1
mov dword [esp + 0x14], ecx
jmp 0x40b734
mov ebx, dword [esp + 0x180]
mov dword [esp + 0x14], 2
mov ecx, dword [ebx + eax*4]
mov edi, dword [ecx*4 + 0x4866d0]
lea ecx, [edi + edi*2]
add ecx, ecx
cmp ebp, 2
jne 0x40b734
mov ebx, dword [esp + 0x20]
cmp edx, ebx
jl 0x40b734
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x180]
shl edi, 5
add edi, edx
mov dword [esp + 0x14], 4
mov edi, dword [ebx + edi*4]
mov ebx, dword [edi*4 + 0x4866d0]
lea edi, [ebx + ebx*2]
lea ecx, [ecx + edi*2]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
add edi, ebx
mov ebx, dword [esp + 0x30]
add edi, ebx
mov ebx, dword [esp + 0x14]
add edi, ebx
mov ebx, dword [esp + 0x1c]
add edi, ecx
add edi, ebx
mov ebx, dword [esp + 0x34]
cmp edi, ebx
jg 0x40b7cc
inc esi
mov edi, dword [esp + 0x184]
mov ebx, dword [esp + 0x1c]
nop
mov dword [edi + eax*4], esi
mov edi, dword [esp + 0x30]
add edi, ebx
mov ebx, dword [esp + 0x2c]
add ebx, ecx
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], ebx
mov byte [esp + eax + 0x38], 1
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
add ebx, ecx
xor ecx, ecx
mov dword [esp + 0x28], ebx
mov ebx, edx
shl ebx, 4
add ebx, esi
mov cl, byte [edi + ebx*8 + 6]
mov ebx, dword [esp + 0x17c]
fld dword [ecx*4 + 0x48665c]
fsub dword [ebx + eax*4]
mov ebx, 1
mov ecx, edx
shl ecx, 7
fstp dword [esp + eax*4 + 0x78]
mov cl, byte [ecx + edi + 4]
shl ebx, cl
dec ebx
cmp ebx, esi
jg 0x40b7d1
mov byte [esp + eax + 0x38], 2
mov ecx, dword [esp + 0x20]
cmp edx, ecx
jl 0x40b82b
cmp ebp, 2
jne 0x40b82b
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x184]
shl ecx, 5
nop
lea esi, [ecx + edx]
mov ebx, dword [edi + eax*4]
mov al, byte [esp + eax + 0x38]
mov dword [edi + esi*4], ebx
lea ecx, [esi*4]
mov edi, dword [esp + 0x24]
mov byte [esp + esi + 0x38], al
mov esi, edx
xor eax, eax
shl esi, 4
add esi, ebx
mov ebx, dword [esp + 0x17c]
mov al, byte [edi + esi*8 + 6]
fld dword [eax*4 + 0x48665c]
fsub dword [ecx + ebx]
fstp dword [esp + ecx + 0x78]
cmp edx, 0xffffffff
jg 0x40b5e4
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
sub eax, ecx
mov edx, dword [esp + 0x2c]
sub eax, edx
mov ebx, dword [esp + 0x30]
sub eax, ebx
mov edx, dword [esp + 0x188]
mov esi, dword [esp + 0x18]
cmp esi, 0x20
mov dword [edx], eax
jge 0x40b88c
mov edi, dword [esp + 0x184]
mov edx, 0x20
sub edx, dword [esp + 0x18]
lea esi, [edi + esi*4]
test ebp, ebp
jle 0x40b886
mov ecx, esi
mov eax, ebp
mov dword [ecx], 0
add ecx, 0x80
dec eax
jne 0x40b877
add esi, 4
dec edx
jne 0x40b86f
xor esi, esi
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
test ebp, ebp
jle 0x40b8d6
lea edi, [esp + 0x78]
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x40b8cd
mov edx, edi
mov ecx, eax
fld dword [edx]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
je 0x40b8bd
mov eax, dword [edx]
mov dword [esp + 0x10], eax
mov eax, dword [edx]
cmp eax, 0x80000000
jbe 0x40b8c7
inc esi
add edx, 4
dec ecx
jne 0x40b8aa
add edi, 0x80
dec ebp
jne 0x40b89e
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x168
ret