Function at 0x412700
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 0x412965
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x50]
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 esi, dword [esp + 0x60]
mov eax, 1
jge 0x4127cf
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jge 0x412916
mov eax, dword [edi]
test eax, eax
je 0x4128e1
mov eax, dword [esp + 0x28]
cmp eax, 2
jne 0x412809
mov eax, dword [esp + 0x60]
cmp esi, eax
jl 0x412809
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ecx, dword [eax]
fld dword [ecx*4 + 0x48cec8]
jmp 0x41281a
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax]
fld dword [ecx*4 + 0x48cec8]
fmul dword [edx]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
sub esp, 8
fstp qword [esp]
call fcn.00410f90
fcomp qword [0x41a400]
fnstsw ax
add esp, 8
test ah, 0x41
jne 0x41285c
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.00413c50
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 + 0x48ce38]
fmul dword [esp + 0x10]
fadd dword [eax*4 + 0x48ce80]
fcom dword [0x41a3e0]
fstp dword [esp + 0x10]
fnstsw ax
test ah, 1
jne 0x41289f
mov dword [esp + 0x64], 1
jmp 0x4128b5
fld dword [esp + 0x10]
fadd dword [0x41a3f8]
mov dword [esp + 0x64], 0
fstp dword [esp + 0x10]
xor ebx, ebx
mov bl, byte [ecx + 7]
fld dword [ebx*4 + 0x48d050]
fmul dword [esp + 0x10]
call fcn.00412f6c
mov ecx, dword [esp + 0x64]
mov dword [ebp], eax
test ecx, ecx
je 0x4128e1
mov ecx, dword [ebx*4 + 0x48cfc8]
or ecx, eax
mov dword [ebp], ecx
add ebp, 0x1200
mov eax, dword [esp + 0x2c]
add eax, 0x1200
mov ecx, dword [esp + 0x30]
add ecx, 0x180
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 0x4127c0
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 esi, eax
jl 0x4127a0
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 0x412762
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 0x41275a
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 0x412a20
mov edx, ebp
mov ecx, 0x20
sub ecx, eax
mov esi, edx
mov eax, 0xc
mov ebx, dword [esp + 0x28]
test ebx, ebx
jle 0x412a11
mov ebx, esi
mov edi, dword [esp + 0x28]
mov dword [ebx], 0
add ebx, 0x1200
dec edi
jne 0x412a02
add esi, 0x80
dec eax
jne 0x4129f4
add edx, 4
dec ecx
jne 0x4129ed
add ebp, 0x600
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
jne 0x4129db
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x58
ret