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

Disassembly:
mov eax, dword [esp + 4]
mov cl, byte [eax + 4]
sub esp, 0x60
test cl, 1
je 0x45e018
push ebx
push ebp
mov ebp, dword [esp + 0x70]
cmp dword [ebp + 4], 2
push esi
push edi
jl 0x45e014
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.004d7dd0
mov ecx, eax
xor eax, eax
call fcn.004d82e0
push eax
call fcn.004d7bc0
call fcn.004d7dd0
mov ecx, eax
xor eax, eax
call fcn.004d82e0
lea esi, [esp + 0x64]
call fcn.004d7a90
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x45e014
mov esi, dword [ebp + 4]
dec esi
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
jle 0x45e014
mov edx, dword [ebp + 8]
mov ecx, dword [edx + esi*8]
test ecx, ecx
lea eax, [edx + esi*8]
je 0x45e006
mov ebx, dword [eax + 4]
mov edx, dword [esp + 0x30]
mov eax, dword [ebx]
mov ecx, dword [edx]
cmp eax, ecx
jne 0x45dbc9
mov edi, dword [ebx + 4]
cmp edi, dword [edx + 4]
je 0x45dbdb
cmp eax, dword [edx + 4]
jne 0x45e006
cmp dword [ebx + 4], ecx
jne 0x45e006
fld dword [ebx + 0x54]
fmul dword [0x617f20]
fsub dword [0x617dbc]
call fcn.005c956c
xor edi, edi
cmp eax, 5
mov dword [esp + 0x18], eax
jle 0x45dc04
mov dword [esp + 0x18], 5
jmp 0x45dc0c
cmp eax, edi
jge 0x45dc0c
mov dword [esp + 0x18], edi
xor edx, edx
mov eax, ebx
mov dword [esp + 0x20], edi
call fcn.004bcba0
mov edx, dword [ebx + 0x18]
mov esi, eax
dec edx
mov eax, ebx
call fcn.004bcba0
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x34]
mov ebp, eax
mov eax, dword [ecx]
push edx
mov dword [esp + 0x20], edi
call dword [eax + 0x40]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x48]
push edx
push ebx
lea edi, [esp + 0x44]
call fcn.004bd4c0
mov eax, dword [ebp]
add esp, 0x10
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebp
call dword [eax + 0x40]
mov edx, dword [esi]
lea eax, [esp + 0x58]
push eax
mov ecx, esi
call dword [edx + 0x40]
cmp ebp, esi
jne 0x45dc90
lea eax, [esp + 0x58]
xor ecx, ecx
mov edx, esi
call fcn.004c05c0
lea eax, [esp + 0x4c]
mov ecx, 1
mov edx, esi
call fcn.004c05c0
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x45dd1f
mov edx, dword [esp + 0x78]
mov edx, dword [edx + 8]
mov ecx, dword [edx + ecx*8 - 4]
lea eax, [esp + 0x40]
call fcn.004bb510
fld dword [esp + 0x40]
fsub dword [esp + 0x4c]
fld dword [esp + 0x44]
fsub dword [esp + 0x50]
fld dword [esp + 0x48]
fsub dword [esp + 0x54]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp st(3)
fstp st(0)
fstp st(0)
fld dword [esp + 0x40]
fsub dword [esp + 0x58]
fstp dword [esp + 0x34]
fld dword [esp + 0x44]
fsub dword [esp + 0x5c]
fstp dword [esp + 0x38]
fld dword [esp + 0x48]
fsub dword [esp + 0x60]
fst dword [esp + 0x3c]
fmul dword [esp + 0x3c]
fld dword [esp + 0x38]
fmul dword [esp + 0x38]
faddp st(1)
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
faddp st(1)
jmp 0x45dd9f
mov eax, dword [esp + 0x78]
cmp dword [eax + 4], 1
je 0x45e014
mov edx, dword [eax + 8]
mov ecx, dword [edx + ecx*8 + 0xc]
lea eax, [esp + 0x40]
call fcn.004bb510
fld dword [esp + 0x40]
fsub dword [esp + 0x4c]
lea ecx, [esp + 0x34]
fstp dword [esp + 0x34]
fld dword [esp + 0x44]
fsub dword [esp + 0x50]
fstp dword [esp + 0x38]
fld dword [esp + 0x48]
fsub dword [esp + 0x54]
fstp dword [esp + 0x3c]
call fcn.0040e360
fstp dword [esp + 0x14]
lea ecx, [esp + 0x34]
fld dword [esp + 0x40]
fsub dword [esp + 0x58]
fstp dword [esp + 0x34]
fld dword [esp + 0x44]
fsub dword [esp + 0x5c]
fstp dword [esp + 0x38]
fld dword [esp + 0x48]
fsub dword [esp + 0x60]
fstp dword [esp + 0x3c]
call fcn.0040e360
fld dword [esp + 0x14]
fxch st(1)
mov dword [esp + 0x10], 0xbf800000
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 5
jnp 0x45ddbc
mov dword [esp + 0x10], 0x3f800000
mov ebp, 5
mov dword [esp + 0x14], ebp
cmp ebp, dword [esp + 0x18]
jg 0x45df7d
fild dword [esp + 0x14]
push ecx
lea edi, [esp + 0x24]
mov esi, ebx
fmul dword [0x6160bc]
fstp dword [esp]
call fcn.004bcdf0
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x20]
cmp ebx, dword [ecx + 0x28]
mov esi, dword [esp + 0x20]
jne 0x45de23
fld dword [esp + 0x10]
fcomp dword [0x617dbc]
fnstsw ax
test ah, 0x44
jp 0x45de17
mov edx, dword [esi + 0x2c]
cmp edx, dword [ecx + 0x2c]
ja 0x45dfe9
jmp 0x45de23
mov eax, dword [esi + 0x2c]
cmp eax, dword [ecx + 0x2c]
jb 0x45dfe9
push 0
push 0
lea edi, [esp + 0x3c]
call fcn.004c0250
lea ecx, [esp + 0x34]
push ecx
call fcn.004b92b0
mov edx, dword [eax + 0xc]
mov edi, dword [esp + 0x78]
mov eax, dword [edx + ebp*4]
push edi
call fcn.0045e9e0
lea eax, [esp + 0x34]
push eax
call fcn.004b92b0
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx + ebp*4]
push edi
call fcn.0045e9e0
fld dword [esp + 0x64]
fsub dword [esp + 0x34]
fstp dword [esp + 0x40]
fld dword [esp + 0x68]
fsub dword [esp + 0x38]
fstp dword [esp + 0x44]
fld dword [esp + 0x6c]
fsub dword [esp + 0x3c]
fst dword [esp + 0x48]
fmul dword [esp + 0x48]
fld dword [esp + 0x44]
fmul dword [esp + 0x44]
faddp st(1)
fld dword [esp + 0x40]
fmul dword [esp + 0x40]
faddp st(1)
fst dword [esp + 0x28]
fcomp dword [0x618108]
fnstsw ax
test ah, 0x41
jne 0x45defc
fld dword [esp + 0x10]
fcomp dword [0x617dbc]
fnstsw ax
test ah, 0x44
jp 0x45dec7
mov edx, dword [esi + 0x2c]
cmp edx, dword [esp + 0x1c]
jl 0x45dee1
fld dword [esp + 0x10]
fcomp dword [0x617dc8]
fnstsw ax
test ah, 0x44
jp 0x45defc
mov eax, dword [esp + 0x1c]
cmp dword [esi + 0x2c], eax
jle 0x45defc
call fcn.004b92b0
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx + ebp*4]
mov edx, dword [ecx]
push 0
call dword [edx + 0x48]
call fcn.004b92b0
push 1
jmp 0x45df15
call fcn.004b92b0
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + ebp*4]
mov edx, dword [ecx]
push 1
call dword [edx + 0x48]
call fcn.004b92b0
push 0
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + ebp*4]
mov edx, dword [ecx]
call dword [edx + 0x48]
lea eax, [esp + 0x34]
xor ecx, ecx
mov edx, esi
call fcn.004c05e0
fld dword [esp + 0x34]
fmul dword [esp + 0x10]
fstp dword [esp + 0x34]
fld dword [esp + 0x38]
fmul dword [esp + 0x10]
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fmul dword [esp + 0x10]
fstp dword [esp + 0x3c]
call fcn.004b92b0
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + ebp*4]
push ecx
lea ecx, [esp + 0x38]
call fcn.004a6c90
call fcn.004b92b0
mov edx, dword [eax + 0x1c]
mov eax, dword [edx + ebp*4]
push eax
lea ecx, [esp + 0x38]
call fcn.004a6c90
jmp 0x45dfe9
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call fcn.004b92b0
mov edx, dword [eax + 0xc]
mov esi, dword [esp + 0x78]
mov eax, dword [edx + ebp*4]
push esi
call fcn.0045e9e0
lea eax, [esp + 0x34]
push eax
call fcn.004b92b0
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx + ebp*4]
push esi
call fcn.0045e9e0
call fcn.004b92b0
mov edx, dword [eax + 0xc]
mov ecx, dword [edx + ebp*4]
mov eax, dword [ecx]
push 0
call dword [eax + 0x48]
call fcn.004b92b0
mov ecx, dword [eax + 0x1c]
mov ecx, dword [ecx + ebp*4]
mov edx, dword [ecx]
push 0
call dword [edx + 0x48]
dec ebp
test ebp, ebp
mov dword [esp + 0x14], ebp
jg 0x45ddc5
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [esp + 0x14]
dec esi
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
jg 0x45dba1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8