Function at 0x451600
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xac
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x297d]
mov dword [esp + 0x14], ebx
mov ecx, dword [eax + 0x5e2c]
mov ebp, dword [eax + ecx*4 + 0x5e30]
mov cl, byte [eax + 0x50ca]
test cl, cl
mov dword [esp + 0x10], ebp
jne 0x451638
mov esi, dword [eax + 0x5e8f]
jmp 0x45163e
mov esi, dword [eax + 0x5e93]
mov edx, dword [esi]
push edi
push esi
call dword [edx + 0x78]
mov dword [esp + 0x28], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x7c]
mov ecx, dword [esi]
push esi
mov dword [esp + 0x30], eax
call dword [ecx + 0x80]
mov edx, dword [esi]
push esi
mov edi, eax
call dword [edx + 0x78]
add edi, eax
mov eax, dword [esi]
push esi
mov dword [esp + 0x34], edi
call dword [eax + 0x84]
mov ecx, dword [esi]
push esi
mov edi, eax
call dword [ecx + 0x7c]
add edi, eax
mov eax, dword [esp + 0xcc]
xor ecx, ecx
mov dword [esp + 0x34], edi
cmp eax, ecx
mov dword [ebx + 0x520], ecx
je 0x451698
mov ebx, dword [eax]
jmp 0x45169a
xor ebx, ebx
mov eax, dword [ebp + 0x68]
mov dword [esp + 0x10], ecx
cmp eax, ecx
jle 0x4518b1
test ebx, ebx
jl 0x4516be
cmp ebx, 0x200
jge 0x4516be
mov edi, dword [ebp + ebx*4 + 0xa0]
jmp 0x4516c0
xor edi, edi
mov al, byte [ebx + ebp + 0x8a0]
test al, al
jne 0x451888
mov al, byte [edi + 0x188e]
test al, al
jne 0x451888
mov ecx, edi
call fcn.004be400
test al, al
jne 0x451888
mov edx, dword [edi]
lea eax, [esp + 0x84]
push eax
mov ecx, edi
call dword [edx + 0x4c]
cmp dword [esp + 0x8c], 0x40000000
je 0x451888
mov al, byte [esp + 0xc8]
test al, al
je 0x45172f
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x6c]
fcomp dword [0x4f05b8]
fnstsw ax
test ah, 0x41
jne 0x451888
mov al, byte [esp + 0xc4]
test al, al
je 0x45183b
mov ecx, edi
call fcn.004be230
mov ecx, dword [eax]
lea edx, [esp + 0x60]
push edx
push eax
call dword [ecx + 0x118]
fld dword [esp + 0x6c]
fadd dword [esp + 0x60]
fld dword [esp + 0x70]
fadd dword [esp + 0x64]
fstp dword [esp + 0x58]
fld dword [esp + 0x74]
fadd dword [esp + 0x68]
fstp dword [esp + 0x5c]
fmul dword [0x4f05b8]
fstp dword [esp + 0x1c]
fld dword [esp + 0x58]
fmul dword [0x4f05b8]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
fstp dword [esp + 0x20]
fld dword [esp + 0x5c]
fmul dword [0x4f05b8]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x4c], ecx
mov ecx, edi
fstp dword [esp + 0x24]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x50], edx
call fcn.004be230
mov ecx, dword [eax]
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0x7c]
push edx
push eax
call dword [ecx + 0x110]
mov eax, dword [esi]
lea ecx, [esp + 0x78]
lea edx, [esp + 0x38]
push ecx
push edx
push esi
call dword [eax + 0x50]
fld dword [esp + 0x40]
fcomp dword [0x4f0400]
fnstsw ax
test ah, 0x41
jne 0x451888
fld dword [esp + 0x40]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 1
je 0x451888
fld dword [esp + 0x38]
fdiv dword [esp + 0x44]
call fcn.004ecc00
fld dword [esp + 0x3c]
fdiv dword [esp + 0x44]
mov ebp, eax
call fcn.004ecc00
cmp ebp, dword [esp + 0x28]
jl 0x451884
cmp ebp, dword [esp + 0x30]
jg 0x451884
cmp eax, dword [esp + 0x2c]
jl 0x451884
cmp eax, dword [esp + 0x34]
jg 0x451884
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x451862
mov ax, word [eax + 0x36b]
cmp ax, word [edi + 0x36b]
jne 0x451888
mov ecx, dword [esp + 0x18]
push edi
call fcn.00451990
jmp 0x451888
mov ecx, edi
call fcn.004be3e0
test al, al
je 0x451888
mov ecx, edi
call fcn.004be3f0
test al, al
je 0x451888
mov ecx, dword [esp + 0x18]
push edi
call fcn.00451990
jmp 0x451888
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 0x520], 0x19
jge 0x4518b1
mov ecx, dword [ebp + 0x68]
lea eax, [ebx + 1]
cdq
idiv ecx
mov eax, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
mov ebx, edx
jl 0x4516a9
mov eax, dword [esp + 0xcc]
pop edi
test eax, eax
je 0x4518bf
mov dword [eax], ebx
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xac
ret 0x10