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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5f4
mov ecx, dword [ebp + 0xc]
xor eax, eax
push ebx
push esi
cmp word [ecx], ax
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x44], 0
sete al
test esi, esi
mov dword [esp + 0x6c], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
je 0x50a052
mov ecx, dword [esi]
mov eax, dword [esi + 0x34]
test ch, 2
mov dword [esp + 0x9c], eax
je 0x50a044
mov edx, dword [esi + 0x3c]
xor eax, eax
mov ax, word [esi + 0x88]
mov ebx, ecx
and bh, 0xfd
push eax
mov dword [esi], ebx
mov dword [esp + 0x50], edx
call fcn.004d1c40
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0xa4]
add esp, 4
test eax, eax
je 0x509566
fld qword [eax + 0x10]
fchs
fstp qword [esp + 0xd0]
fld qword [eax + 0x30]
fchs
fstp qword [esp + 0xd8]
fld qword [eax + 0x50]
fchs
fstp qword [esp + 0xe0]
jmp 0x5095a8
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0xbff00000
xor eax, eax
mov ax, word [esi + 0x6c]
test eax, eax
mov dword [esp + 0x54], eax
jg 0x5095bf
mov eax, 1
mov dword [esp + 0x54], eax
fld dword [esi + 0x64]
fsub dword [esi + 0x68]
fidiv dword [esp + 0x54]
mov dword [esp + 0x40], eax
fstp qword [esp + 0x120]
mov edx, dword [esp + 0xc]
mov ecx, 0x14
lea edi, [esp + 0x190]
lea esi, [edx + 0x40]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x190]
and eax, 0x1f
cmp al, 0x16
je 0x50a089
mov esi, edx
mov ebx, dword [esp + 0x190]
and ebx, 0xffffffdf
mov word [esp + 0x1bc], 1
fld dword [esi + 0x64]
fild dword [esp + 0x40]
mov dword [esp + 0x190], ebx
fmul qword [esp + 0x120]
fsubp st(1)
fst dword [esp + 0x1b8]
fstp qword [esp + 0x78]
call fcn.004ebe50
push esi
xor ebx, ebx
call fcn.00463830
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x50a028
mov esi, eax
mov dword [esp + 0x1c], ebx
mov edi, dword [esi]
shr edi, 0x15
and edi, 1
push esi
call fcn.00481650
fst qword [esp + 0x24]
fcomp qword [0x550f20]
add esp, 4
fnstsw ax
test ah, 0x41
je 0x509683
test dword [esi], 0x200000
je 0x509e20
mov eax, dword [esi]
test ah, 0x10
jne 0x509e20
test eax, 0x200000
je 0x50969d
fld qword [0x550f30]
jmp 0x5096c5
and eax, 0xe00
cmp eax, 0x600
jne 0x5096bf
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x40]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
call fcn.0049c3c0
add esp, 0xc
jmp 0x5096c5
mov ecx, dword [ebp + 0xc]
fld dword [ecx + 4]
test dword [esi], 0x200000
je 0x5096d7
fstp st(0)
fld qword [0x550f30]
jmp 0x5096e1
fdivr qword [esp + 0x20]
fadd qword [0x556000]
call fcn.00547c92
cmp edi, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], edi
jg 0x509e1b
mov edi, dword [esp + 0x1c]
jmp 0x509704
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
test byte [esi + 4], 0x80
jne 0x509809
test ebx, ebx
jne 0x509809
cmp edi, 2
jle 0x509809
mov ecx, 6
lea esi, [esp + 0x438]
lea edi, [esp + 0x28]
mov dword [esp + 0x68], ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
push eax
lea edx, [esp + 0xf4]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
call fcn.00418e80
mov edi, dword [esp + 0x24]
add esp, 0x10
test byte [edi + 4], 0x80
jne 0x509cf8
test ebx, ebx
jne 0x509bc4
push 0xc0
push 1
call fcn.00547150
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x50a089
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x10]
fld dword [esp + 0x1b0]
fsub qword [esp + 0x78]
mov esi, dword [ebx]
push ecx
push edx
lea eax, [esp + 0x64]
sub esp, 8
lea ecx, [esp + 0x38]
lea edx, [esp + 0x100]
or esi, 0x140
fstp qword [esp]
push eax
push ecx
push 0
push edx
push ebx
mov dword [ebx], esi
call fcn.00500010
add esp, 0x24
test eax, eax
jne 0x50a089
fld dword [esp + 0x1ac]
fmul qword [esp + 0x100]
mov eax, dword [esp + 0x6c]
test eax, eax
fadd qword [esp + 0x448]
jne 0x509b7b
fst qword [esp + 0x80]
fstp qword [esp + 0x88]
mov dword [esp + 0x6c], 1
jmp 0x509cc2
fild dword [esp + 0x48]
fidiv dword [esp + 0x20]
lea edx, [esp + 0x28]
mov dword [esp + 0x68], 1
push edx
sub esp, 8
fstp qword [esp]
push esi
call fcn.0043ff80
mov eax, dword [esi]
add esp, 0x10
test ah, 0x20
je 0x509844
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc0], edx
mov edx, dword [esp + 0x34]
inc edi
cmp edi, 2
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], edx
mov dword [esp + 0x1c], edi
jle 0x50991d
lea eax, [esp + 0x33c]
lea ecx, [esp + 0x208]
push eax
lea edx, [esp + 0xa4]
push ecx
push edx
call fcn.00508880
add esp, 0xc
test eax, eax
jne 0x50a07c
push 0xbff00000
push eax
mov ecx, 6
lea esi, [esp + 0x36c]
lea edi, [esp + 0x110]
lea eax, [esp + 0x110]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00418fa0
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x434]
push ecx
push edx
push 1
lea ecx, [esp + 0x120]
push eax
lea edx, [esp + 0x254]
push ecx
push edx
call fcn.004fe990
add esp, 0x24
test eax, eax
jne 0x50a089
mov eax, dword [esp + 0x18]
push 2
lea ecx, [esp + 0x42c]
push eax
push ecx
call fcn.004beb30
add esp, 0xc
jmp 0x509acc
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
call fcn.004465c0
add esp, 0xc
cmp edi, 1
jne 0x50994e
call fcn.004ebe50
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x18]
lea eax, [esp + 0x428]
push edx
push eax
push 1
lea edx, [esp + 0xdc]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
call fcn.004fe990
add esp, 0x18
cmp eax, 0xffffffff
je 0x50a07c
mov ecx, dword [esp + 0x18]
push 2
lea edx, [esp + 0x42c]
push ecx
push edx
call fcn.004beb30
add esp, 0xc
cmp edi, 2
jne 0x509acc
lea eax, [esp + 0xb0]
lea ecx, [esp + 0xc0]
push eax
lea edx, [esp + 0x1fc]
push ecx
push edx
call fcn.00418960
lea eax, [esp + 0x358]
lea ecx, [esp + 0x444]
push eax
lea edx, [esp + 0x1f0]
push ecx
push edx
call fcn.00418e20
lea eax, [esp + 0x210]
push eax
call fcn.004189c0
fstp qword [esp + 0x104]
lea ecx, [esp + 0x1fc]
push ecx
call fcn.00418eb0
fstp qword [esp + 0x90]
fld qword [esp + 0x108]
fcomp qword [0x550f20]
add esp, 0x20
fnstsw ax
test ah, 0x41
jne 0x509acc
fld qword [esp + 0x70]
fcomp qword [0x550f20]
fnstsw ax
test ah, 0x41
jne 0x509acc
fld qword [esp + 0xe8]
fdiv qword [esp + 0x70]
fst qword [esp + 0x70]
fcomp qword [0x550f30]
fnstsw ax
test ah, 1
je 0x509acc
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov ecx, 6
lea esi, [esp + 0x34c]
lea edi, [esp + 0x28]
push edx
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1e4]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.00418e80
mov ecx, 6
lea esi, [esp + 0x460]
lea edi, [esp + 0x118]
push 0xbff00000
lea eax, [esp + 0x11c]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00418fa0
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x444]
push ecx
push edx
push 1
lea ecx, [esp + 0x130]
push eax
lea edx, [esp + 0x54]
push ecx
push edx
call fcn.004fe990
add esp, 0x34
mov ecx, 6
lea esi, [esp + 0x438]
lea edi, [esp + 0x28]
mov eax, dword [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, 6
lea esi, [esp + 0x438]
lea edi, [esp + 0x238]
push 2
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3b
lea esi, [esp + 0x42c]
lea edi, [esp + 0x518]
push eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x51c]
push ecx
call fcn.004beb30
mov ecx, 6
lea esi, [esp + 0x548]
lea edi, [esp + 0x45c]
lea edx, [esp + 0xfc]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xdc]
push edx
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x260]
push eax
push ecx
push edx
call fcn.004f0900
fld qword [esp + 0x10c]
add esp, 0x1c
fstp dword [esp + 0x5c]
fld qword [esp + 0xf8]
fstp dword [esp + 0x60]
fld qword [esp + 0x100]
fstp dword [esp + 0x64]
jmp 0x509735
fcom qword [esp + 0x88]
fnstsw ax
test ah, 0x41
jne 0x509b9c
fst qword [esp + 0x80]
fstp qword [esp + 0x88]
jmp 0x509cc2
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
fstp qword [esp + 0x88]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
jmp 0x509cc2
mov eax, dword [esp + 0x10]
push ebx
test eax, eax
je 0x509bee
lea edx, [esp + 0x2c]
lea eax, [esp + 0x12c]
push edx
push eax
call fcn.00440210
mov esi, eax
add esp, 0xc
test esi, esi
je 0x50a089
jmp 0x509c1e
push 0
lea ecx, [esp + 0x64]
push 0
lea edx, [esp + 0x9c]
push ecx
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x13c]
push eax
push ecx
call fcn.00440350
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x50a089
mov ecx, dword [esi]
mov eax, dword [edi]
xor eax, ecx
and eax, 0x40
xor eax, ecx
mov dword [esi], eax
mov edx, dword [edi]
xor edx, eax
and edx, 0x80
xor edx, eax
mov eax, dword [esp + 0x58]
push eax
mov dword [esi], edx
call fcn.004b2890
mov eax, dword [0x584ce8]
add esp, 4
test eax, eax
je 0x509c5c
mov eax, dword [0x5838d8]
or ah, 4
mov dword [0x5838d8], eax
push esi
call fcn.0048e930
add esp, 4
call fcn.004b2a10
mov ecx, dword [0x5838d8]
mov eax, dword [0x584fa0]
and ch, 0xfb
test eax, eax
mov dword [0x5838d8], ecx
je 0x509cb5
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
neg ecx
sbb ecx, ecx
lea edx, [esp + 0x90]
not ecx
and ecx, edx
mov dword [esp + 0x50], 2
push ecx
push 2
lea ecx, [esp + 0x130]
push eax
push ecx
call fcn.00438390
add esp, 0x10
call fcn.00458de0
test eax, eax
jne 0x50a06d
mov eax, dword [0x584fa0]
test eax, eax
je 0x509cf8
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x4c]
neg edx
sbb edx, edx
lea eax, [esp + 0x5c]
not edx
and edx, eax
mov dword [esp + 0x50], 1
push edx
push 1
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.00438390
add esp, 0x10
mov eax, dword [esp + 0x68]
test eax, eax
je 0x509e02
cmp dword [esp + 0x1c], 1
jle 0x509d6d
mov ecx, dword [esp + 0xb4]
mov eax, dword [esp + 0xb0]
mov edx, dword [esp + 0xb8]
mov dword [esp + 0xa4], ecx
mov ecx, 6
lea esi, [esp + 0x220]
lea edi, [esp + 0x208]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xa8], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3b
lea esi, [esp + 0x33c]
lea edi, [esp + 0x250]
mov dword [esp + 0xac], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc0]
lea esi, [esp + 0x238]
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0xbc], ecx
mov ecx, 6
lea edi, [esp + 0x220]
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc8]
mov dword [esp + 0xb4], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3b
lea esi, [esp + 0x428]
lea edi, [esp + 0x33c]
mov edx, dword [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov ecx, 6
lea esi, [esp + 0x28]
lea edi, [esp + 0x128]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x90], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x48], eax
jle 0x5096fc
mov esi, dword [esp + 0x14]
mov edi, 1
mov edx, dword [esp + 0xc]
mov esi, dword [esi + 0xc]
mov dword [esp + 0x14], esi
cmp esi, dword [edx + 0xc]
je 0x509e38
test esi, esi
jne 0x50965d
test ebx, ebx
je 0x50a028
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x10]
fld dword [esp + 0x1b0]
fsub dword [esp + 0x1b8]
push eax
push ecx
sub esp, 8
lea edx, [esp + 0x6c]
lea eax, [esp + 0x38]
mov dword [esp + 0x30], 1
fstp qword [esp]
push edx
push eax
push 0
push ebx
call fcn.00500140
add esp, 0x20
test eax, eax
jne 0x50a089
fld qword [0x583c88]
fmul qword [0x550fd8]
push 0x3fefae14
push 0x7ae147ae
sub esp, 8
fstp qword [esp]
push ebx
call fcn.0049e1e0
push ebx
push 0x585054
call fcn.004894b0
add esp, 0x1c
mov ecx, 0x14
lea esi, [esp + 0x190]
lea edi, [esp + 0x140]
mov eax, dword [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0xc]
test eax, eax
fld dword [ecx + 0x40]
fst dword [esp + 0x168]
fst dword [esp + 0x160]
fstp dword [esp + 0x164]
jne 0x509efa
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x509efa
mov edx, dword [ebx + 0x10]
fld dword [edx + 0x44]
jmp 0x509f01
fld qword [esp + 0x80]
fstp dword [esp + 0x15c]
mov edx, dword [ebx + 0x34]
mov ecx, dword [esp + 0x140]
xor eax, eax
mov dword [esp + 0x20], 0
test edx, edx
mov edx, dword [esp + 0xc]
setne al
and eax, 1
and ch, 0xf7
shl eax, 0xb
or eax, ecx
mov dword [esp + 0x140], eax
mov eax, dword [edx]
test eax, 0x2000000
je 0x509f64
mov eax, dword [esp + 0x150]
mov dword [esp + 0x174], 0
mov dword [esp + 0x154], eax
mov dword [esp + 0x170], 0
mov esi, dword [esp + 0x4c]
push 0
lea ecx, [esp + 0x144]
push esi
push ecx
push 2
push ebx
call fcn.004893a0
push ebx
call fcn.00441c50
mov edx, dword [esp + 0x24]
mov eax, dword [ebx]
mov ecx, eax
push 3
mov edi, dword [edx]
push ebx
xor ecx, edi
and ecx, 8
xor ecx, eax
mov dword [ebx], ecx
mov ecx, dword [ebx + 8]
mov edi, dword [edx + 8]
mov eax, ecx
xor eax, edi
and eax, 1
xor eax, ecx
mov dword [ebx + 8], eax
mov edi, dword [edx + 8]
mov ecx, eax
xor ecx, edi
and ecx, 2
xor ecx, eax
mov eax, dword [ebx]
mov dword [ebx + 8], ecx
mov edi, dword [edx]
mov ecx, eax
xor ecx, edi
and ecx, 0x100
xor ecx, eax
mov dword [ebx], ecx
call fcn.004ac0f0
mov eax, dword [esp + 0x64]
add esp, 0x20
test eax, eax
jne 0x509fde
mov dword [esp + 0x44], ebx
mov ebx, dword [ebx + 0x34]
test ebx, ebx
jne 0x509eb3
mov eax, dword [0x584fa0]
test eax, eax
je 0x50a028
cmp dword [esp + 0x50], 1
jne 0x50a028
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x90]
neg edx
sbb edx, edx
lea ecx, [esp + 0x128]
not edx
and edx, eax
mov dword [esp + 0x50], 2
push edx
push 2
push esi
push ecx
call fcn.00438390
add esp, 0x10
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x54]
inc eax
cmp eax, ecx
mov dword [esp + 0x40], eax
jle 0x5095d4
mov eax, dword [esp + 0x9c]
mov esi, eax
test eax, eax
mov dword [esp + 0xc], esi
jne 0x5094fd
mov eax, dword [esp + 0x44]
push eax
call fcn.005090d0
add esp, 4
call fcn.004a0ba0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x5832c8]
push edx
call fcn.0054715c
add esp, 4
test ebx, ebx
je 0x50a089
push ebx
call fcn.004888a0
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret