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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e654c
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x638190]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov eax, dword [0x638190]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x30]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x28], edx
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 0x28]
mov dword [esp + 0x40], edx
mov dword [esp + 0x78], eax
mov eax, dword [edi + 0x24]
lea edx, [esp + 0xac]
mov dword [esp + 0x38], ecx
push edx
mov ecx, edi
mov dword [esp + 0x38], eax
call fcn.004f2ea0
fild dword [esp + 0x34]
fld qword [0x5f3df0]
mov ax, word [edi + 0x20]
and ax, 0xfff9
fmul st(1), st(0)
movzx ecx, ax
fild dword [esp + 0x38]
mov dword [esp + 0x14], ecx
fmul st(1)
fxch st(2)
fadd st(1)
call fcn.005c3ce0
faddp st(1)
mov dword [esp + 0x70], eax
call fcn.005c3ce0
lea ecx, [esp + 0x104]
mov dword [esp + 0x2c], eax
call fcn.004f1250
lea ecx, [esp + 0xbc]
mov dword [esp + 0x138], 0
call fcn.004f1250
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
xor eax, eax
mov dword [esp + 0x60], edx
mov edx, dword [edi + 4]
mov dword [esp + 0x64], ecx
mov ecx, dword [edi + 8]
mov byte [esp + 0x138], 1
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], ecx
cmp dword [ebp + 0x2c], eax
je 0x51d0cb
cmp word [esp + 0x14], 1
jne 0x51cde8
mov edi, dword [esp + 0x5c]
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x48]
neg edx
neg eax
push ecx
lea ecx, [esp + 0x18]
mov dword [edi], edx
mov dword [edi + 4], eax
call fcn.00508610
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
neg eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
neg edx
cmp eax, ecx
mov dword [esp + 0x14], edx
jge 0x51cc7b
mov ecx, dword [esp + 0x28]
add ecx, 0x24
push ecx
lea ecx, [esp + 0x108]
call fcn.004f2e40
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0xc0]
call fcn.004f2e40
lea ecx, [esp + 0xbc]
call fcn.004f4030
mov eax, dword [esp + 0x78]
push eax
lea ecx, [esp + 0x30]
call fcn.005bf120
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x44]
call fcn.005bf120
mov edx, dword [esp + 0x70]
push 1
push edx
lea eax, [esp + 0x34]
push eax
push edi
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0xf4]
call fcn.004f3630
push eax
mov ecx, esi
mov byte [esp + 0x13c], 2
call fcn.0056fa50
lea ecx, [esp + 0xe0]
mov byte [esp + 0x138], 1
call fcn.004f1b60
mov edi, dword [esp + 0x3c]
lea edx, [esp + 0xc0]
push edx
mov ecx, edi
call fcn.004f4410
push edi
lea ecx, [esi + 0x30]
call fcn.0056fa50
lea eax, [esp + 0xbc]
push eax
lea ecx, [esi + 0x60]
call fcn.0056fa50
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x30]
call fcn.005bf120
push 1
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0xd4]
push ecx
lea ecx, [esp + 0xf0]
call fcn.004f16b0
push eax
lea ecx, [esi + 0x90]
mov byte [esp + 0x13c], 3
call fcn.0056fa50
lea ecx, [esp + 0xe0]
mov byte [esp + 0x138], 1
call fcn.004f1b60
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x108]
push ebx
push eax
call fcn.00503420
add esp, 0xc
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x108]
call fcn.004f4410
lea edx, [esp + 0x4c]
push edx
mov ecx, ebx
call fcn.004f42e0
lea eax, [esp + 0x104]
push eax
jmp 0x51d0aa
jle 0x51d0c1
mov ecx, dword [esp + 0x28]
add ecx, 0x24
push ecx
lea ecx, [esp + 0x108]
call fcn.004f2e40
lea ecx, [esp + 0x104]
call fcn.004f4030
mov edx, dword [esp + 0x24]
add edx, 0x24
push edx
lea ecx, [esp + 0xc0]
call fcn.004f2e40
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x74]
call fcn.005bf120
push 1
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0xf0]
call fcn.004f16b0
push eax
mov ecx, esi
mov byte [esp + 0x13c], 4
call fcn.0056fa50
lea ecx, [esp + 0xe0]
mov byte [esp + 0x138], 1
call fcn.004f1b60
mov edi, dword [esp + 0x3c]
lea ecx, [esp + 0xc8]
push ecx
mov ecx, edi
call fcn.004f42e0
lea edx, [esp + 0xbc]
push edx
lea ecx, [esi + 0x30]
call fcn.0056fa50
push edi
lea ecx, [esi + 0x60]
call fcn.0056fa50
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x74]
call fcn.005bf120
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x7c]
call fcn.005bf120
mov edx, dword [esp + 0x2c]
push 1
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x88]
push edx
lea ecx, [esp + 0xf4]
call fcn.004f3630
push eax
lea ecx, [esi + 0x90]
mov byte [esp + 0x13c], 5
call fcn.0056fa50
lea ecx, [esp + 0xe0]
mov byte [esp + 0x138], 1
call fcn.004f1b60
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x108]
push ecx
push ebx
call fcn.00503420
add esp, 0xc
lea edx, [esp + 0x4c]
push edx
mov ecx, ebx
call fcn.004f4410
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x108]
call fcn.004f42e0
push ebx
lea ecx, [esi + 0xc0]
call fcn.0056fa50
lea ecx, [esp + 0x104]
push ecx
jmp 0x51d0b6
mov edx, dword [esp + 0x38]
cmp dword [esp + 0x34], edx
jge 0x51cf5a
mov eax, dword [esp + 0x28]
add eax, 0x24
push eax
lea ecx, [esp + 0x108]
call fcn.004f2e40
lea ecx, [esp + 0x104]
call fcn.004f4030
mov ecx, dword [esp + 0x24]
add ecx, 0x24
push ecx
lea ecx, [esp + 0xc0]
call fcn.004f2e40
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
call fcn.005bf120
push 1
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0xf0]
call fcn.004f16b0
push eax
mov ecx, esi
mov byte [esp + 0x13c], 6
call fcn.0056fa50
lea ecx, [esp + 0xe0]
mov byte [esp + 0x138], 1
call fcn.004f1b60
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0xc8]
push eax
mov ecx, edi
call fcn.004f42e0
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esi + 0x30]
call fcn.0056fa50
push edi
lea ecx, [esi + 0x60]
call fcn.0056fa50
mov edx, dword [esp + 0x20]
push edx
lea ecx, [esp + 0x18]
call fcn.005bf120
mov eax, dword [esp + 0x78]
push eax
lea ecx, [esp + 0x30]
call fcn.005bf120
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x5c]
push 1
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0xf4]
call fcn.004f3630
push eax
lea ecx, [esi + 0x90]
mov byte [esp + 0x13c], 7
call fcn.0056fa50
lea ecx, [esp + 0xe0]
mov byte [esp + 0x138], 1
call fcn.004f1b60
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x108]
push eax
push ebx
call fcn.00503420
add esp, 0xc
lea ecx, [esp + 0x4c]
push ecx
mov ecx, ebx
call fcn.004f4410
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x108]
call fcn.004f42e0
push ebx
lea ecx, [esi + 0xc0]
call fcn.0056fa50
lea eax, [esp + 0x104]
push eax
jmp 0x51d0b6
mov ecx, dword [esp + 0x28]
add ecx, 0x24
push ecx
lea ecx, [esp + 0x108]
call fcn.004f2e40
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0xc0]
call fcn.004f2e40
lea ecx, [esp + 0xbc]
call fcn.004f4030
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x18]
call fcn.005bf120
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x44]
call fcn.005bf120
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
push 1
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0xf4]
call fcn.004f3630
push eax
mov ecx, esi
mov byte [esp + 0x13c], 8
call fcn.0056fa50
lea ecx, [esp + 0xe0]
mov byte [esp + 0x138], 1
call fcn.004f1b60
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0xc0]
push eax
mov ecx, edi
call fcn.004f4410
push edi
lea ecx, [esi + 0x30]
call fcn.0056fa50
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esi + 0x60]
call fcn.0056fa50
mov edx, dword [esp + 0x20]
push edx
lea ecx, [esp + 0x18]
call fcn.005bf120
push 1
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0xd4]
push edx
lea ecx, [esp + 0xf0]
call fcn.004f16b0
push eax
lea ecx, [esi + 0x90]
mov byte [esp + 0x13c], 9
call fcn.0056fa50
lea ecx, [esp + 0xe0]
mov byte [esp + 0x138], 1
call fcn.004f1b60
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x108]
push ebx
push ecx
call fcn.00503420
add esp, 0xc
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x108]
call fcn.004f4410
lea eax, [esp + 0x4c]
push eax
mov ecx, ebx
call fcn.004f42e0
lea ecx, [esp + 0x104]
push ecx
lea ecx, [esi + 0xc0]
call fcn.0056fa50
push ebx
lea ecx, [esi + 0xf0]
call fcn.0056fa50
mov esi, 0x12
jmp 0x51d4e6
cmp word [esp + 0x14], 1
jne 0x51d2cc
mov eax, dword [esp + 0x5c]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
neg edx
neg ecx
mov dword [eax], edx
mov edx, dword [esp + 0x48]
mov dword [eax + 4], ecx
push edx
lea ecx, [esp + 0x18]
call fcn.00508610
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
neg eax
neg ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x38]
cmp eax, ecx
jge 0x51d1e1
mov edx, dword [esp + 0x28]
add edx, 0x24
push edx
lea ecx, [esp + 0x108]
call fcn.004f2e40
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0xc0]
call fcn.004f2e40
lea ecx, [esp + 0xbc]
call fcn.004f4030
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x30]
call fcn.005bf120
push 1
lea edx, [esp + 0xc4]
push edx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0xf0]
call fcn.004f16b0
lea edx, [esp + 0x110]
mov bl, 0xa
push edx
lea ecx, [esp + 0xe4]
mov byte [esp + 0x13c], bl
call fcn.004f42e0
lea eax, [esp + 0xe0]
push eax
mov ecx, esi
call fcn.0056fa50
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x44]
call fcn.005bf120
push 1
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0xd4]
push ecx
lea ecx, [esp + 0x98]
call fcn.004f16b0
mov byte [esp + 0x138], 0xb
jmp 0x51d48e
jle 0x51d4be
mov edx, dword [esp + 0x28]
add edx, 0x24
push edx
lea ecx, [esp + 0x108]
call fcn.004f2e40
lea ecx, [esp + 0x104]
call fcn.004f4030
mov eax, dword [esp + 0x24]
add eax, 0x24
push eax
lea ecx, [esp + 0xc0]
call fcn.004f2e40
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x30]
call fcn.005bf120
push 1
lea edx, [esp + 0xc4]
push edx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x98]
call fcn.004f16b0
push eax
mov ecx, esi
mov byte [esp + 0x13c], 0xc
call fcn.0056fa50
lea ecx, [esp + 0x88]
mov byte [esp + 0x138], 1
call fcn.004f1b60
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x30]
call fcn.005bf120
push 1
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0xd4]
push edx
lea ecx, [esp + 0xf0]
call fcn.004f16b0
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x13c], 0xd
call fcn.004f4410
lea ecx, [esp + 0xe0]
push ecx
lea ecx, [esi + 0x60]
call fcn.0056fa50
jmp 0x51d4aa
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
cmp eax, ecx
jge 0x51d3c1
mov edx, dword [esp + 0x28]
add edx, 0x24
push edx
lea ecx, [esp + 0x108]
call fcn.004f2e40
lea ecx, [esp + 0x104]
call fcn.004f4030
mov eax, dword [esp + 0x24]
add eax, 0x24
push eax
lea ecx, [esp + 0xc0]
call fcn.004f2e40
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.005bf120
push 1
lea edx, [esp + 0xc4]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x98]
call fcn.004f16b0
push eax
mov ecx, esi
mov byte [esp + 0x13c], 0xe
call fcn.0056fa50
lea ecx, [esp + 0x88]
mov byte [esp + 0x138], 1
call fcn.004f1b60
mov edx, dword [esp + 0x20]
push edx
lea ecx, [esp + 0x18]
call fcn.005bf120
push 1
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0xd4]
push edx
lea ecx, [esp + 0xf0]
call fcn.004f16b0
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0xe4]
mov byte [esp + 0x13c], 0xf
call fcn.004f4410
lea ecx, [esp + 0xe0]
push ecx
lea ecx, [esi + 0x60]
call fcn.0056fa50
jmp 0x51d4aa
jle 0x51d4be
mov edx, dword [esp + 0x28]
add edx, 0x24
push edx
lea ecx, [esp + 0x108]
call fcn.004f2e40
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0xc0]
call fcn.004f2e40
lea ecx, [esp + 0xbc]
call fcn.004f4030
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.005bf120
push 1
lea edx, [esp + 0xc4]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xf0]
call fcn.004f16b0
lea edx, [esp + 0x110]
mov bl, 0x10
push edx
lea ecx, [esp + 0xe4]
mov byte [esp + 0x13c], bl
call fcn.004f42e0
lea eax, [esp + 0xe0]
push eax
mov ecx, esi
call fcn.0056fa50
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x84]
call fcn.005bf120
push 1
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0xd4]
push ecx
lea ecx, [esp + 0x98]
call fcn.004f16b0
mov byte [esp + 0x138], 0x11
push eax
lea ecx, [esi + 0x60]
call fcn.0056fa50
lea ecx, [esp + 0x88]
mov byte [esp + 0x138], bl
call fcn.004f1b60
lea ecx, [esp + 0xe0]
mov byte [esp + 0x138], 1
call fcn.004f1b60
lea edx, [esp + 0xbc]
push edx
lea ecx, [esi + 0x30]
call fcn.0056fa50
lea eax, [esp + 0x104]
push eax
lea ecx, [esi + 0x90]
call fcn.0056fa50
mov esi, 0xc
lea ecx, [esp + 0xbc]
mov byte [esp + 0x138], 0
call fcn.004f1b60
lea ecx, [esp + 0x104]
mov dword [esp + 0x138], 0xffffffff
call fcn.004f1b60
mov eax, esi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.005c3bb6
mov esp, ebp
pop ebp
ret