Function at 0x40bb20
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [esp + 0x1c]
sub esp, 0x58
push ebx
mov eax, dword [edx + 0x10]
push esi
mov ecx, dword [edx + 0x18]
push edi
mov ebx, dword [edx + 0x14]
mov dword [esp + 0x24], eax
push ebp
mov eax, dword [edx + 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x60], ebx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
xor esi, esi
mov eax, dword [esp + 0x14]
cmp eax, esi
jle 0x40bd85
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov ebp, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], 0
cmp dword [esp + 0x60], esi
mov eax, 1
jle 0x40bbef
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jge 0x40bd36
mov eax, dword [edi]
test eax, eax
je 0x40bd01
mov eax, dword [esp + 0x28]
cmp eax, 2
jne 0x40bc29
mov eax, dword [esp + 0x60]
cmp eax, esi
jg 0x40bc29
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov ecx, dword [eax]
fld dword [ecx*4 + 0x486770]
jmp 0x40bc3a
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
fld dword [ecx*4 + 0x486770]
fmul dword [edx]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
sub esp, 8
fstp qword [esp]
call fcn.0040a3b0
fcomp qword [0x41a1c0]
fnstsw ax
add esp, 8
test ah, 0x41
jne 0x40bc7c
mov eax, dword [esp + 0x20]
push esi
mov ecx, dword [esp + 0x28]
push eax
mov edx, dword [esp + 0x24]
push ecx
push edx
push str.Not_scaled_properly__d__d__d__d_n
call fcn.00413c00
add esp, 0x14
mov ecx, esi
mov eax, dword [edi]
shl ecx, 4
mov edx, dword [esp + 0x18]
add ecx, eax
xor eax, eax
mov al, byte [edx + ecx*8 + 6]
lea ecx, [edx + ecx*8]
fld dword [eax*4 + 0x4866e0]
fmul dword [esp + 0x10]
fadd dword [eax*4 + 0x486728]
fcom dword [0x41a1a0]
fstp dword [esp + 0x10]
fnstsw ax
test ah, 1
jne 0x40bcbf
mov dword [esp + 0x64], 1
jmp 0x40bcd5
fld dword [esp + 0x10]
fadd dword [0x41a1b8]
mov dword [esp + 0x64], 0
fstp dword [esp + 0x10]
xor ebx, ebx
mov bl, byte [ecx + 7]
fld dword [ebx*4 + 0x4868f8]
fmul dword [esp + 0x10]
call fcn.00413690
mov ecx, dword [esp + 0x64]
mov dword [ebp], eax
test ecx, ecx
je 0x40bd01
mov ecx, dword [ebx*4 + 0x486870]
or ecx, eax
mov dword [ebp], ecx
add ebp, 0x1200
mov eax, dword [esp + 0x2c]
add eax, 0x180
mov ecx, dword [esp + 0x30]
add ecx, 0x1200
add edi, 0x80
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
inc edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], edx
jmp 0x40bbe0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
add eax, 4
add ecx, 4
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
add edx, 4
add ebx, 4
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x34], eax
add ebp, 4
mov edi, dword [esp + 0x48]
add edi, 4
mov dword [esp + 0x38], ecx
inc esi
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], edi
cmp eax, esi
jg 0x40bbc0
mov eax, pe_nt_image_headers32
mov ecx, dword [esp + 0x4c]
add ecx, eax
mov edx, dword [esp + 0x50]
add edx, eax
mov ebx, dword [esp + 0x54]
add ebx, eax
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x50], edx
inc eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x20], eax
cmp eax, 0xc
jl 0x40bb82
mov eax, pe_nt_image_headers32
mov ecx, dword [esp + 0x58]
add ecx, eax
mov edx, dword [esp + 0x5c]
add edx, eax
mov dword [esp + 0x58], ecx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x5c], edx
inc eax
mov dword [esp + 0x24], eax
cmp eax, 3
jl 0x40bb7a
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], 3
lea ebp, [eax + ecx*4]
mov eax, dword [esp + 0x14]
cmp eax, 0x20
jge 0x40be40
mov edx, ebp
mov ecx, 0x20
sub ecx, eax
mov esi, edx
mov eax, 0xc
mov ebx, dword [esp + 0x28]
test ebx, ebx
jle 0x40be31
mov ebx, esi
mov edi, dword [esp + 0x28]
mov dword [ebx], 0
add ebx, 0x1200
dec edi
jne 0x40be22
add esi, 0x80
dec eax
jne 0x40be14
add edx, 4
dec ecx
jne 0x40be0d
add ebp, 0x600
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x40bdfb
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x58
ret