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

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x6c]
push esi
mov esi, dword [esp + 0x74]
mov dword [esp + 0x30], 0
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x4cc]
mov dword [esp + 0x2c], edx
test eax, eax
jle 0x545c2e
mov eax, dword [esp + 0x88]
push ebx
push ebp
push edi
mov edi, eax
lea ebp, [esi + 0x8d0]
shl edi, 4
add edi, eax
mov dword [esp + 0x1c], ebp
lea ecx, [ecx + edi*8]
mov dword [esp + 0x20], ecx
jmp 0x545993
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x764]
mov ecx, dword [ecx + 0x768]
mov edi, dword [esp + 0x90]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp - 0x400]
mov dword [esp + 0x28], eax
shl ecx, 2
cmp dword [ecx + edi], 0
jne 0x5459ca
mov eax, dword [ebp]
cmp dword [edi + eax*4], 0
je 0x545c06
mov esi, dword [esp + 0x84]
mov eax, dword [ebp]
shl eax, 2
mov ebx, dword [ecx + esi]
mov dword [esp + 0x44], ebx
mov esi, dword [eax + esi]
lea ebx, [ebx + edx*4]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x88]
mov ebp, dword [ecx + ebx]
mov ebx, dword [eax + ebx]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0x48], ebp
mov ebp, dword [ecx + ebx]
mov eax, dword [eax + ebx]
mov dword [esp + 0x50], ebp
mov ebp, dword [esp + 0x1c]
mov dword [ecx + edi], 1
mov dword [esp + 0x54], eax
mov ecx, dword [ebp]
xor eax, eax
test edx, edx
mov dword [edi + ecx*4], 1
mov dword [esp + 0x18], eax
jle 0x545c06
mov ecx, dword [esp + 0x20]
add ecx, 0x76c
mov dword [esp + 0x94], ecx
mov edi, dword [ecx + 8]
mov dword [esp + 0x34], edi
mov edi, dword [ecx + 4]
mov dword [esp + 0x6c], edi
mov edi, dword [ecx]
cmp eax, edi
jge 0x545bf0
lea ecx, [esi + edx*4]
mov edx, dword [esp + 0x40]
sub ecx, edx
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x68], ecx
mov ecx, edx
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x54]
sub ecx, esi
sub edx, esi
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x4c]
sub ecx, esi
sub edx, esi
sub ebx, esi
lea edi, [esi + eax*4]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x74], edx
sub ebp, esi
jmp 0x545aaa
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x7c]
cmp eax, dword [edx]
jge 0x545be5
fld dword [ecx + edi]
mov eax, dword [edi]
fst dword [esp + 0x14]
fabs
mov dword [esp + 0x10], eax
fld dword [esp + 0x10]
fabs
fstp qword [esp + 0x60]
fcom qword [esp + 0x60]
fnstsw ax
test ah, 0x41
jne 0x545ae3
fld dword [ecx + edi]
fstp dword [esp + 0x14]
jmp 0x545aef
mov ecx, dword [edi]
fstp st(0)
fld qword [esp + 0x60]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x94]
fst dword [esp + 0x60]
fcomp dword [edx + 0xc]
fnstsw ax
test ah, 1
je 0x545b42
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x78]
add eax, edi
push ecx
mov ecx, dword [eax + edx]
mov edx, dword [eax]
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
call fcn.00545d40
add esp, 0x24
jmp 0x545b6d
mov edx, dword [esp + 0x6c]
lea eax, [esp + 0x30]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.00545c40
add esp, 0x1c
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
fld dword [esp + 0x2c]
fsub dword [eax + edi]
fstp dword [ebx + edi]
fld dword [esp + 0x30]
fsub dword [ecx + edi]
fst dword [esp + 0x14]
fstp dword [edi + ebp]
fld dword [esp + 0x34]
fchs
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 0x41
je 0x545bad
fld dword [esp + 0x14]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 0x41
jne 0x545bbb
mov dword [ebx + edi], 0
mov dword [edi + ebp], 0
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x18]
inc eax
add edi, 4
mov ecx, dword [edx]
mov dword [esp + 0x18], eax
cmp eax, ecx
jl 0x545aa2
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x94]
jmp 0x545bf0
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x94]
add ecx, 0x10
cmp eax, edx
mov dword [esp + 0x94], ecx
jl 0x545a46
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x3c]
inc eax
add ebp, 4
mov esi, dword [ecx + 0x4cc]
mov dword [esp + 0x3c], eax
cmp eax, esi
mov dword [esp + 0x1c], ebp
jl 0x54598f
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x68
ret