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

Disassembly:
push 0xffffffffffffffff
push 0x5d73a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3b8
push ebx
push ebp
push esi
push edi
call fcn.004d1ce0
push 0x3fc99999
push 0x9999999a
call fcn.005787e0
mov ebp, dword [esp + 0x3e4]
add esp, 8
mov ecx, ebp
call fcn.004b7060
fsub qword [0x5e2790]
mov ecx, 0x628bd0
fstp qword [0x628be0]
call fcn.00571a60
mov ecx, 0x628bd0
call fcn.00571fb0
xor ebx, ebx
mov ecx, 0x628bd0
push ebx
call fcn.00574930
fstp qword [esp + 0x78]
mov esi, 0x5e2824
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x3d0], ebx
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x3c], 0x5f01b8
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
push 0x40000000
lea eax, [esp + 0x54]
push ebx
lea ecx, [esp + 0x6c]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
mov ecx, 0x628bd0
mov byte [esp + 0x3e4], 3
call fcn.00576c50
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], ebx
cmp eax, ebx
jle 0x5160d5
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
mov esi, dword [eax + ecx*4]
mov eax, dword [esp + 0x20]
add esi, 0x10
lea ecx, [esp + 0x18]
mov edi, eax
mov edx, dword [esi + 8]
add edx, eax
push edx
call fcn.0046d900
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x18]
mov esi, dword [esi + 4]
mov edx, eax
dec eax
lea ecx, [ecx + edi*4]
test edx, edx
je 0x5160bf
inc eax
mov edx, dword [esi]
add esi, 4
mov dword [ecx], edx
add ecx, 4
dec eax
jne 0x5160b2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x44]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x516078
mov esi, 0x5e2824
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x6c]
mov edi, eax
add eax, ecx
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x1c]
call fcn.0046d900
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x68]
lea eax, [edx + edi*4]
mov edx, dword [esp + 0x6c]
cmp edx, ebx
je 0x51610d
mov edi, dword [ecx]
add ecx, 4
mov dword [eax], edi
add eax, 4
dec edx
jne 0x516100
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x58]
mov edi, eax
add eax, ecx
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x1c]
call fcn.0046d900
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x54]
lea eax, [edx + edi*4]
mov edx, dword [esp + 0x58]
cmp edx, ebx
je 0x516145
mov edi, dword [ecx]
add ecx, 4
mov dword [eax], edi
add eax, 4
dec edx
jne 0x516138
fld qword [esp + 0x78]
fmul qword [0x5e2850]
mov ecx, 0xa2
xor eax, eax
lea edi, [esp + 0x80]
rep stosd dword es:[edi], eax
fstp qword [esp + 0x2e8]
mov eax, 3
lea ecx, [esp + 0x308]
mov dword [esp + 0x90], 4
mov dword [esp + 0x94], 2
mov dword [esp + 0xb8], eax
mov dword [esp + 0xc0], 0xcccccccd
mov dword [esp + 0xc4], 0x3ff0cccc
mov dword [esp + 0xb0], 0x66666666
mov dword [esp + 0xb4], 0x3fe66666
mov dword [esp + 0x98], 0x33333333
mov dword [esp + 0x9c], 0x3ff33333
mov dword [esp + 0xa0], 0x9999999a
mov dword [esp + 0xa4], 0x3fe99999
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], 0xe
mov dword [esp + 0xa8], 0xcccccccd
mov dword [esp + 0xac], 0x400ccccc
mov dword [esp + 0x80], ebx
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0x3fe00000
mov dword [esp + 0x2d0], ebx
mov dword [esp + 0x2e0], 0
mov dword [esp + 0x2e4], 0
mov dword [esp + 0x2f0], ebx
mov dword [esp + 0x2f4], ebx
call fcn.0050ae90
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push 1
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 4]
push ecx
mov ecx, dword [ebp]
push edx
push eax
push ecx
lea ecx, [esp + 0x32c]
mov byte [esp + 0x3f4], 4
call fcn.0050c5e0
mov edx, dword [esp + 0x380]
mov eax, dword [esp + 0x384]
mov edi, 0x5f01ec
mov dword [esp + 0x2d8], edx
mov dword [esp + 0x2dc], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3d8], 5
call fcn.0046d900
lea ecx, [esp + 0x28]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x84]
push edx
mov edx, dword [esp + 0x80]
push eax
push ecx
push edx
push ebx
call fcn.0050fdb0
fcomp qword [0x5e2858]
add esp, 0x18
fnstsw ax
test ah, 1
je 0x5163fe
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x2c]
mov byte [esp + 0x3d0], 6
cmp edi, ebx
je 0x516352
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x516349
lea ebp, [eax]
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax]
add edi, 0x220
dec ebp
jne 0x516335
mov edi, dword [esp + 0x2c]
push edi
call sub.mfc42u.dll_operatordelete
add esp, 4
mov edi, 0x5e262c
lea ecx, [esp + 0x308]
mov dword [esp + 0x28], edi
mov byte [esp + 0x3d0], 3
call fcn.0050af80
mov dword [esp + 0x3c], 0x5f01b8
mov eax, dword [esp + 0x40]
mov byte [esp + 0x3d0], 7
cmp eax, ebx
je 0x516390
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x3c], edi
mov dword [esp + 0x64], esi
mov eax, dword [esp + 0x68]
mov byte [esp + 0x3d0], 8
cmp eax, ebx
je 0x5163b1
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x64], edi
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x54]
mov byte [esp + 0x3d0], 9
cmp eax, ebx
je 0x5163d2
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x50], edi
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3d0], 0xa
cmp eax, ebx
je 0x5163f6
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
or eax, 0xffffffff
jmp 0x516530
mov ecx, dword [esp + 0x30]
mov esi, dword [sym.imp.kernel32.dll_GetCurrentThread]
mov dword [esp + 0x2d4], ecx
call esi
push eax
call dword [sym.imp.kernel32.dll_GetThreadPriority]
push 2
mov edi, eax
call esi
mov ebp, dword [sym.imp.kernel32.dll_SetThreadPriority]
push eax
call ebp
mov edx, dword [esp + 0x3f4]
mov ecx, dword [esp + 0x3f0]
lea eax, [esp + 0x80]
push edx
mov edx, dword [esp + 0x3f0]
push eax
mov eax, dword [esp + 0x3f0]
push ecx
mov ecx, dword [esp + 0x3f0]
push edx
push eax
lea edx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3f8]
lea eax, [esp + 0x2c]
push edx
push eax
mov eax, dword [esp + 0x3f8]
lea edx, [esp + 0x328]
push ecx
push edx
push eax
call fcn.00513b10
add esp, 0x2c
mov dword [esp + 0x10], eax
push edi
call esi
push eax
call ebp
call fcn.0042bd50
mov ecx, 0x628bd0
call fcn.00570ef0
mov dword [esp + 0x28], 0x5f01ec
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x3d0], 0xb
cmp eax, ebx
je 0x5164ca
mov ecx, dword [esp + 0x30]
push ecx
push eax
call fcn.00517820
mov edx, dword [esp + 0x2c]
push edx
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0x308]
mov dword [esp + 0x28], 0x5e262c
mov byte [esp + 0x3d0], 3
call fcn.0050af80
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3d0], 2
call fcn.005170e0
lea ecx, [esp + 0x64]
mov byte [esp + 0x3d0], 1
call fcn.0040bf90
lea ecx, [esp + 0x50]
mov byte [esp + 0x3d0], bl
call fcn.0040bf90
lea ecx, [esp + 0x14]
mov dword [esp + 0x3d0], 0xffffffff
call fcn.0040bf90
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c4
ret