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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5df123
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0x2f0], eax
push ebx
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x338]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
lea ecx, [edi + 4]
push ecx
lea ecx, [esp + 0xf8]
mov dword [esp + 0x44], edi
mov dword [esp + 0x24], eax
call fcn.005b98d0
lea edx, [edi + 0xc]
push edx
lea ecx, [esp + 0xd8]
call fcn.005b98d0
lea eax, [esp + 0xe4]
push eax
mov ecx, edi
call fcn.004efe90
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x28]
cmp eax, ecx
mov dword [esp + 0xc4], eax
fild dword [esp + 0xc4]
fld qword [0x5ecc78]
mov dword [esp + 0xc4], ecx
fmul st(1), st(0)
fxch st(1)
fst qword [esp + 0x24]
fild dword [esp + 0xc4]
fmulp st(2)
fxch st(1)
fst qword [esp + 0x2c]
jge 0x51a95c
fstp st(0)
jmp 0x51a95e
fstp st(1)
mov ecx, edi
fstp qword [esp + 0x4c]
call fcn.004f10c0
fld st(0)
fld qword [0x5ecc70]
fsub st(1), st(0)
fxch st(1)
fcom qword [0x5fb4c0]
fnstsw ax
test ah, 1
jne 0x51a997
fcomp qword [0x5fb4b8]
fnstsw ax
test ah, 0x41
jp 0x51a999
fstp st(1)
xor eax, eax
fstp st(0)
jmp 0x51a9ac
fstp st(0)
fcompp
fnstsw ax
test ah, 5
jp 0x51a9a9
mov eax, 1
jmp 0x51a9ac
or eax, 0xffffffff
mov dx, word [edi + 0x20]
fld qword [esp + 0x24]
fld qword [0x5ecc78]
xor ecx, ecx
cmp eax, 1
fadd st(1), st(0)
sete cl
fxch st(1)
and dx, 0xfff9
movzx eax, dx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], ecx
call fcn.005bd3f0
fadd qword [esp + 0x2c]
mov esi, eax
mov dword [esp + 0xc4], esi
call fcn.005bd3f0
mov ecx, dword [edi + 0x24]
cmp ecx, dword [edi + 0x28]
mov dword [esp + 0x44], esi
jl 0x51a9fc
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x7c]
call fcn.004f2bb0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x340], 0
call fcn.004f2bb0
fldz
mov edx, dword [edi + 0x24]
fst qword [esp + 0x24]
fstp qword [esp + 0x2c]
mov byte [esp + 0x340], 1
cmp edx, dword [edi + 0x28]
je 0x51aad2
mov eax, dword [0x62d2b4]
cmp eax, 1
jne 0x51aa53
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
mov ecx, edi
call fcn.00514fc0
jmp 0x51aa9b
cmp eax, 2
jne 0x51aa6f
mov eax, dword [esp + 0x40]
lea esi, [esp + 0x2c]
lea edi, [esp + 0x24]
call fcn.005150a0
mov edi, dword [esp + 0x40]
jmp 0x51aa9e
cmp eax, 3
jne 0x51aa86
lea ecx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x28]
mov ecx, edi
call fcn.00515100
jmp 0x51aa9b
cmp eax, 4
jne 0x51aa9e
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
mov ecx, edi
call fcn.005151e0
add esp, 4
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0xe8]
push ecx
lea edx, [esp + 0xdc]
push edx
lea eax, [esp + 0x100]
push eax
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x90]
push edx
mov ecx, edi
call fcn.00519660
add esp, 0x18
fld qword [0x5faa68]
lea ecx, [esp + 0x34]
fst qword [esp + 0x74]
fst qword [esp + 0x6c]
fst qword [esp + 0xac]
fst qword [esp + 0xa4]
fst qword [esp + 0x94]
fst qword [esp + 0x8c]
fst qword [esp + 0xbc]
fstp qword [esp + 0xb4]
call fcn.004fd440
lea ecx, [esp + 0x54]
call fcn.004fd440
fld qword [esp + 0x4c]
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x90]
push ecx
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x78]
push eax
mov eax, dword [edi + 0x1c]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x48]
push edx
push eax
sub esp, 8
lea esi, [esp + 0x108]
fstp qword [esp]
lea ebx, [esp + 0xf8]
lea eax, [esp + 0x118]
call fcn.00519200
add esp, 0x24
lea ecx, [esp + 0x104]
call fcn.004ee1e0
mov ecx, dword [edi + 0x1c]
mov esi, dword [esp + 0x44]
sub ecx, esi
mov byte [esp + 0x340], 2
test ecx, ecx
jg 0x51ac06
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x48]
call fcn.00505d10
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
neg ecx
lea edx, [esp + 0x8c]
neg eax
mov dword [esp + 0x48], ecx
push edx
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], eax
call fcn.005b88c0
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0xa0]
call fcn.005b88c0
mov ecx, dword [esp + 0x1c]
push ecx
mov edx, esi
sub edx, dword [edi + 0x1c]
lea eax, [esp + 0x50]
push edx
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0xac]
push edx
lea ecx, [esp + 0x13c]
call fcn.004f0530
mov byte [esp + 0x340], 3
jmp 0x51ac59
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0xa0]
call fcn.005b88c0
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x50]
call fcn.005b88c0
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 0x1c]
push edx
sub eax, esi
push eax
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x13c]
call fcn.004f0530
mov byte [esp + 0x340], 4
push eax
lea ecx, [esp + 0x108]
call fcn.004efe30
lea ecx, [esp + 0x128]
mov byte [esp + 0x340], 2
call fcn.004eeaf0
lea ecx, [esp + 0xb4]
push ecx
lea ecx, [esp + 0xa0]
call fcn.005b88c0
lea edx, [esp + 0xa4]
push edx
lea ecx, [esp + 0x50]
call fcn.005b88c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 0x1c]
push eax
add ecx, esi
push ecx
lea edx, [esp + 0xa4]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x160]
call fcn.004f0530
mov edx, dword [esp + 0x110]
mov bl, 5
mov byte [esp + 0x340], bl
cmp edx, dword [esp + 0x108]
jne 0x51acf9
mov eax, dword [esp + 0x114]
cmp eax, dword [esp + 0x10c]
jne 0x51acf9
mov dword [esp + 0x3c], 0
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x104]
cmp si, 1
je 0x51ad11
lea ecx, [esp + 0x14c]
call fcn.004f0f30
mov ecx, dword [edi + 0x24]
mov dword [esp + 0x1c], 0
cmp ecx, dword [edi + 0x28]
jne 0x51af8e
test si, si
jne 0x51ae07
lea edx, [esp + 0xb4]
push edx
lea ecx, [esp + 0x28]
call fcn.005b88c0
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x30]
call fcn.005b88c0
mov edi, dword [esp + 0xc4]
push 1
push edi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x13c]
call fcn.004f0530
mov esi, dword [esp + 0x20]
push eax
mov ecx, esi
mov byte [esp + 0x344], 6
call fcn.00568bc0
lea ecx, [esp + 0x128]
mov byte [esp + 0x340], bl
call fcn.004eeaf0
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x28]
call fcn.005b88c0
lea edx, [esp + 0xa4]
push edx
lea ecx, [esp + 0x30]
call fcn.005b88c0
push 1
push edi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x13c]
call fcn.004f0530
push eax
lea ecx, [esi + 0x60]
mov byte [esp + 0x344], 7
call fcn.00568bc0
lea ecx, [esp + 0x128]
mov byte [esp + 0x340], bl
call fcn.004eeaf0
jmp 0x51af14
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
neg ecx
lea edx, [esp + 0x54]
neg eax
mov dword [esp + 0x38], ecx
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x38], eax
call fcn.00505d10
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
neg ecx
lea edx, [esp + 0xa4]
neg eax
mov dword [esp + 0x28], ecx
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], eax
call fcn.005b88c0
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x48]
call fcn.005b88c0
mov esi, dword [esp + 0xc4]
push 1
push esi
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x13c]
call fcn.004f0530
mov edi, dword [esp + 0x20]
push eax
mov ecx, edi
mov byte [esp + 0x344], 8
call fcn.00568bc0
lea ecx, [esp + 0x128]
mov byte [esp + 0x340], bl
call fcn.004eeaf0
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x30]
call fcn.005b88c0
lea edx, [esp + 0xb4]
push edx
lea ecx, [esp + 0xc8]
call fcn.005b88c0
push 1
push esi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0xd4]
push edx
lea ecx, [esp + 0x13c]
call fcn.004f0530
push eax
lea ecx, [edi + 0x60]
mov byte [esp + 0x344], 9
call fcn.00568bc0
lea ecx, [esp + 0x128]
mov byte [esp + 0x340], bl
call fcn.004eeaf0
mov esi, edi
lea eax, [esp + 0x14c]
push eax
lea ecx, [esi + 0x30]
call fcn.00568bc0
lea ecx, [esp + 0x104]
push ecx
lea ecx, [esi + 0x90]
call fcn.00568bc0
lea ecx, [esp + 0x14c]
mov byte [esp + 0x340], 2
call fcn.004eeaf0
lea ecx, [esp + 0x104]
mov byte [esp + 0x340], 1
call fcn.004eeaf0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x340], 0
call fcn.004f2cc0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x340], 0xffffffff
call fcn.004f2cc0
mov eax, 0xc
jmp 0x51b5f5
push fcn.004eeaf0
push fcn.004ee1e0
push 4
push 0x24
lea edx, [esp + 0x1a4]
push edx
call fcn.005bd55c
push fcn.004eeaf0
push fcn.004ee1e0
push 4
push 0x24
lea eax, [esp + 0x234]
push eax
mov byte [esp + 0x354], 0xa
call fcn.005bd55c
mov eax, dword [0x62d2b4]
mov byte [esp + 0x340], 0xb
cmp eax, 1
jne 0x51b0b3
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x230]
push ecx
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x1a4]
push edx
lea eax, [esp + 0x90]
push eax
lea edi, [esp + 0x74]
call fcn.005152f0
add esp, 0x18
test eax, eax
jne 0x51b28a
push fcn.004eeaf0
push 4
push 0x24
lea ecx, [esp + 0x230]
push ecx
mov byte [esp + 0x350], 0xa
call fcn.005bd4f9
push fcn.004eeaf0
push 4
push 0x24
lea edx, [esp + 0x1a0]
push edx
mov byte [esp + 0x350], bl
call fcn.005bd4f9
lea ecx, [esp + 0x14c]
mov byte [esp + 0x340], 2
call fcn.004eeaf0
lea ecx, [esp + 0x104]
mov byte [esp + 0x340], 1
call fcn.004eeaf0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x340], 0
call fcn.004f2cc0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x340], 0xffffffff
call fcn.004f2cc0
mov eax, 3
jmp 0x51b5f5
cmp eax, 2
jne 0x51b19a
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x238]
push edx
lea eax, [esp + 0x94]
push eax
lea edx, [esp + 0x1b0]
lea ecx, [esp + 0x78]
mov esi, edi
call fcn.00519980
add esp, 0x1c
test eax, eax
jne 0x51b28e
push fcn.004eeaf0
push 4
push 0x24
lea ecx, [esp + 0x230]
push ecx
mov byte [esp + 0x350], 0xa
call fcn.005bd4f9
push fcn.004eeaf0
push 4
push 0x24
lea edx, [esp + 0x1a0]
push edx
mov byte [esp + 0x350], bl
call fcn.005bd4f9
lea ecx, [esp + 0x14c]
mov byte [esp + 0x340], 2
call fcn.004eeaf0
lea ecx, [esp + 0x104]
mov byte [esp + 0x340], 1
call fcn.004eeaf0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x340], 0
call fcn.004f2cc0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x340], 0xffffffff
call fcn.004f2cc0
xor eax, eax
jmp 0x51b5f5
cmp eax, 3
jne 0x51b216
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x90]
push edx
push edi
lea edx, [esp + 0x1b0]
lea ecx, [esp + 0x78]
call fcn.00515480
add esp, 0x1c
test eax, eax
jne 0x51b28e
push fcn.004eeaf0
push 4
push 0x24
lea eax, [esp + 0x230]
push eax
mov byte [esp + 0x350], 0xa
call fcn.005bd4f9
push fcn.004eeaf0
push 4
push 0x24
lea ecx, [esp + 0x1a0]
push ecx
jmp 0x51b13a
cmp eax, 4
jne 0x51b28e
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x230]
push edx
lea eax, [esp + 0x1a4]
push eax
lea ecx, [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x58]
lea edi, [esp + 0x74]
call fcn.005152f0
add esp, 0x18
test eax, eax
jne 0x51b28a
push fcn.004eeaf0
push 4
push 0x24
lea edx, [esp + 0x230]
push edx
mov byte [esp + 0x350], 0xa
call fcn.005bd4f9
push fcn.004eeaf0
push 4
push 0x24
lea eax, [esp + 0x1a0]
push eax
jmp 0x51b050
mov edi, dword [esp + 0x40]
lea ecx, [esp + 0x2b8]
call fcn.004ee1e0
lea ecx, [esp + 0x2dc]
mov byte [esp + 0x340], 0xc
call fcn.004ee1e0
push fcn.004801a0
push 2
push 8
lea ecx, [esp + 0xd0]
push ecx
mov byte [esp + 0x350], 0xd
call fcn.00416d10
mov eax, dword [0x62d2b4]
cmp eax, 1
jne 0x51b31a
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
push edx
push eax
lea ecx, [esp + 0xbc]
push ecx
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x164]
push edx
lea eax, [esp + 0x240]
push eax
lea ecx, [esp + 0x54]
push ecx
jmp 0x51b42b
cmp eax, 2
jne 0x51b382
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
push edx
push eax
lea ecx, [esp + 0xbc]
push ecx
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x164]
push edx
lea eax, [esp + 0x120]
push eax
lea ecx, [esp + 0x244]
push ecx
lea edx, [esp + 0x58]
push edx
push edi
lea edx, [esp + 0x1c0]
lea ecx, [esp + 0x80]
call fcn.005164e0
add esp, 0x2c
jmp 0x51b448
cmp eax, 3
jne 0x51b3e7
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
lea edx, [esp + 0xbc]
push edx
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0xb4]
push ecx
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x164]
push eax
lea ecx, [esp + 0x120]
push ecx
lea edx, [esp + 0x244]
push edx
lea eax, [esp + 0x58]
push eax
push edi
lea edx, [esp + 0x1c0]
lea ecx, [esp + 0x80]
call fcn.00517020
add esp, 0x2c
jmp 0x51b448
cmp eax, 4
jne 0x51b44c
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
push ecx
push edx
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0xb4]
push edx
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x164]
push ecx
lea edx, [esp + 0x240]
push edx
lea eax, [esp + 0x54]
push eax
push edi
lea ebx, [esp + 0x12c]
lea edx, [esp + 0x1bc]
lea ecx, [esp + 0x7c]
call fcn.00515a90
mov bl, 5
add esp, 0x28
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x2dc]
mov byte [esp + 0x340], 0xc
call fcn.004eeaf0
lea ecx, [esp + 0x2b8]
mov byte [esp + 0x340], 0xb
call fcn.004eeaf0
push fcn.004eeaf0
push 4
push 0x24
lea ecx, [esp + 0x230]
push ecx
mov byte [esp + 0x350], 0xa
call fcn.005bd4f9
push fcn.004eeaf0
push 4
push 0x24
lea edx, [esp + 0x1a0]
push edx
mov byte [esp + 0x350], bl
call fcn.005bd4f9
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x28]
cmp eax, ecx
je 0x51b5a4
test eax, eax
je 0x51b4c9
test ecx, ecx
jne 0x51b5a4
push edi
lea ecx, [esp + 0x12c]
call fcn.004f0c50
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x174]
mov byte [esp + 0x344], 0xe
call fcn.004f0c50
lea ecx, [esp + 0x170]
mov byte [esp + 0x340], 0xf
call fcn.004f0f30
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x128]
push ecx
mov ecx, esi
call fcn.00568bc0
lea edx, [esp + 0x170]
push edx
lea ecx, [esi + 0x30]
call fcn.00568bc0
lea ecx, [esp + 0x170]
mov byte [esp + 0x340], 0xe
call fcn.004eeaf0
lea ecx, [esp + 0x128]
mov byte [esp + 0x340], bl
call fcn.004eeaf0
lea ecx, [esp + 0x14c]
mov byte [esp + 0x340], 2
call fcn.004eeaf0
lea ecx, [esp + 0x104]
mov byte [esp + 0x340], 1
call fcn.004eeaf0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x340], 0
call fcn.004f2cc0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x340], 0xffffffff
call fcn.004f2cc0
mov eax, 6
jmp 0x51b5f5
lea ecx, [esp + 0x14c]
mov byte [esp + 0x340], 2
call fcn.004eeaf0
lea ecx, [esp + 0x104]
mov byte [esp + 0x340], 1
call fcn.004eeaf0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x340], 0
call fcn.004f2cc0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x340], 0xffffffff
call fcn.004f2cc0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x338]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2f0]
xor ecx, esp
call fcn.005bd2c6
mov esp, ebp
pop ebp
ret 4