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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov al, byte [0x683349]
test al, al
push ebx
push esi
push edi
je 0x516121
cmp word [0x7b2aa0], 1
jne 0x516121
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x18]
mov edi, dword [ebx + 0xc]
mov dword [esp + 0x14], eax
cmp byte [ebx], 0
jns 0x515a92
mov ecx, dword [0x695f18]
mov edx, dword [0x695f14]
push ecx
push edx
call fcn.00514a50
add esp, 8
mov al, byte [0x695f38]
test al, al
jne 0x515f44
mov al, byte [0x695f3a]
test al, al
jne 0x515f44
cmp dword [0x7b2a0c], 0xffff0101
jb 0x515f44
xor eax, eax
cmp eax, 0x6979e0
je 0x515f30
mov eax, dword [0x6979e0]
test eax, eax
je 0x515f30
mov esi, dword [0x70eda0]
mov eax, dword [esi]
mov edx, ebx
mov dword [esp + 0x10], eax
call fcn.00511000
movsx eax, ax
lea ecx, [eax + eax*2]
mov edx, dword [ecx*4 + 0x6db130]
mov eax, dword [esp + 0x10]
push edx
push esi
call dword [eax + 0x15c]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
xor edx, edx
mov dx, word [edi + 0x28]
not edx
and edx, 2
or edx, 1
push edx
push 0x16
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 7
push 0xa8
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 1
push 7
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 1
push 0xe
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 4
push 0x17
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0
push 0x1c
push eax
call dword [ecx + 0xe4]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 0
push 0x1b
push eax
call dword [edx + 0xe4]
mov eax, dword [0x70ed94]
mov eax, dword [eax + 0x5c]
push 0
push 0
call fcn.00514280
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
add esp, 8
push 3
push 1
push 0
push eax
call dword [ecx + 0x114]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 3
push 2
push 0
push eax
call dword [edx + 0x114]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 3
push 3
push 0
push eax
call dword [ecx + 0x114]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 2
push 5
push 0
push eax
call dword [edx + 0x114]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 2
push 6
push 0
push eax
call dword [ecx + 0x114]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 2
push 7
push 0
push eax
call dword [edx + 0x114]
mov edx, dword [0x696c40]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push edx
push 2
push eax
call dword [ecx + 0x104]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 3
push 1
push 2
push eax
call dword [ecx + 0x114]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 3
push 2
push 2
push eax
call dword [edx + 0x114]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 2
push 5
push 2
push eax
call dword [ecx + 0x114]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 2
push 6
push 2
push eax
call dword [edx + 0x114]
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 1
push 7
push 2
push eax
call dword [ecx + 0x114]
mov ecx, dword [0x697cf0]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x170]
movsx edx, word [0x7b2ad4]
movsx eax, word [0x7b2ad8]
sub eax, edx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x66c630]
fstp dword [esp + 0x18]
mov eax, dword [0x70ed94]
fld dword [0x66c410]
fsub dword [ebx + 0x1c]
fst dword [esp + 0x10]
fmul dword [eax + 0x17c]
fld dword [eax + 0x190]
fmul dword [ebx + 0x1c]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [eax + 0x180]
fld dword [eax + 0x194]
fmul dword [ebx + 0x1c]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [eax + 0x184]
fld dword [eax + 0x198]
fmul dword [ebx + 0x1c]
faddp st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x10]
fmul dword [eax + 0x174]
fld dword [eax + 0x188]
fmul dword [ebx + 0x1c]
faddp st(1)
fdivr dword [0x66c410]
fmul dword [esp + 0x14]
fstp dword [esp + 0x1c]
fld dword [esp + 0x10]
fmul dword [eax + 0x178]
fld dword [eax + 0x18c]
mov al, byte [0x70edb8]
test al, al
fmul dword [ebx + 0x1c]
faddp st(1)
fstp dword [esp + 0x20]
je 0x515d90
movsx ecx, word [0x7b2ad6]
movsx edx, word [0x7b2ada]
mov eax, dword [esp + 0x18]
sub edx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], eax
fild dword [esp + 0x10]
fmul qword [0x66c630]
fstp dword [esp + 0x24]
jmp 0x515da0
mov dword [esp + 0x24], 0x3f800000
mov dword [esp + 0x28], 0x3f800000
mov ecx, dword [esp + 0x54]
fxch st(1)
mov eax, dword [0x70eda0]
fstp dword [esp + 0x3c]
mov dword [esp + 0x44], ecx
push 3
fstp dword [esp + 0x44]
lea ecx, [esp + 0x20]
push ecx
push 0xa
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x54], 0
mov edx, dword [eax]
push eax
call dword [edx + 0x178]
mov ecx, dword [0x7b2b4c]
mov eax, dword [0x7b2b48]
mov edx, dword [0x7b2b44]
mov dword [esp + 0x54], ecx
mov ecx, dword [0x7b2b58]
mov dword [esp + 0x50], eax
mov eax, dword [0x7b2b54]
mov dword [esp + 0x64], ecx
mov ecx, dword [0x7b2ab0]
mov dword [esp + 0x4c], edx
mov edx, dword [0x7b2b50]
mov dword [esp + 0x60], eax
mov eax, dword [0x7b2aac]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x7b2abc]
mov dword [esp + 0x5c], edx
mov edx, dword [0x7b2aa8]
mov dword [esp + 0x20], eax
mov eax, dword [0x7b2ab8]
mov dword [esp + 0x34], ecx
push 2
lea ecx, [esp + 0x50]
mov dword [esp + 0x20], edx
mov edx, dword [0x7b2ab4]
push ecx
mov dword [esp + 0x38], eax
mov eax, dword [0x70eda0]
push 0x1b
mov dword [esp + 0x64], 0x3f800000
mov dword [esp + 0x74], 0x40400000
mov dword [esp + 0x34], 0x40000000
mov dword [esp + 0x38], edx
mov dword [esp + 0x44], 0x3f000000
mov edx, dword [eax]
push eax
call dword [edx + 0x178]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 2
lea ecx, [esp + 0x20]
push ecx
push 4
push eax
call dword [edx + 0x178]
mov edx, dword [esp + 0x14]
mov eax, edx
mov ecx, edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x58], edx
push 1
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x58], eax
mov eax, dword [0x70eda0]
push 0
mov dword [esp + 0x60], ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1b4]
mov eax, dword [0x6979e0]
mov ecx, dword [eax]
push 3
lea edx, [esp + 0x70]
push edx
push eax
call dword [ecx + 0x100]
mov edx, dword [0x70ed94]
movzx edx, byte [edx + 0x170]
mov eax, dword [0x6979e0]
mov ecx, dword [eax]
and edx, 1
push edx
push eax
call dword [ecx + 0x104]
push 0
mov ecx, ebx
call fcn.0052eef0
mov eax, dword [0x6979e0]
mov ecx, dword [eax]
add esp, 4
push eax
call dword [ecx + 0x108]
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 3
push 0x17
push eax
call dword [edx + 0xe4]
jmp 0x515f6f
fld dword [esp + 0x14]
fcomp dword [0x66c6fc]
fnstsw ax
test ah, 0x41
jne 0x515f5d
mov dword [esp + 0x14], 0x3f666666
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 3
push 0x17
push eax
call dword [ecx + 0xe4]
fld dword [esp + 0x14]
fcomp dword [0x66c410]
fnstsw ax
test ah, 5
jp 0x516110
mov edx, dword [ebx]
mov eax, dword [ebx + 0x60]
mov cx, word [ebx + 0x64]
mov esi, dword [ebx + 0x70]
and edx, 0x180
mov dword [esp + 0x78], eax
mov dword [esp + 0x70], edx
lea edx, [ebx + 0x7c]
mov eax, dword [edx]
mov dword [esp + 0x124], eax
xor eax, eax
test esi, esi
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], eax
mov word [esp + 0x7c], cx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x128], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 0x118], eax
mov dword [esp + 0x12c], edx
mov edx, dword [ebx + 0x40]
mov dword [esp + 0x11c], eax
mov dword [esp + 0x134], ecx
mov dword [esp + 0x120], eax
mov dword [esp + 0x138], edx
mov ecx, 0x1d
je 0x516033
lea edi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
jmp 0x51603e
xor eax, eax
lea edi, [esp + 0x80]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x74]
test eax, eax
je 0x51605a
mov ecx, dword [eax]
mov dword [esp + 0xf4], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xf8], edx
jmp 0x51606a
xor eax, eax
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov eax, dword [0x70eda0]
mov ecx, dword [eax]
push 0
push 0xe
push eax
call dword [ecx + 0xe4]
fld dword [0x66c410]
fsub dword [esp + 0x14]
mov al, byte [0x683314]
test al, al
mov byte [0x70ee2a], 1
fstp dword [0x70ee2c]
je 0x5160cb
cmp dword [0x7b2a0c], 0xffff0101
mov byte [0x695ffc], 1
mov byte [0x70ee26], 0
jae 0x5160cb
mov eax, dword [0x70eda0]
mov edx, dword [eax]
push 1
push 0x89
push eax
call dword [edx + 0xe4]
push 1
lea esi, [esp + 0x74]
call fcn.00522800
mov eax, dword [ebx + 0x58]
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x44]
push eax
mov eax, dword [ebx + 0x48]
push ecx
xor ecx, ecx
mov cx, word [ebx + 0x10]
push edx
mov edx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x54]
push eax
push ecx
push edx
call fcn.00526900
add esp, 0x1c
call fcn.00526de0
call fcn.0050daf0
mov ebx, dword [ebp + 8]
mov byte [0x70ee2a], 0
cmp byte [ebx], 0
jns 0x516121
push 0
push 0
call fcn.00514a50
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret