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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x1016a000]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x40]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x44]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x48]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x4c]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x50]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x54]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x58]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x5c]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x60]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0xa0]
mov esi, dword [ebp + 0x24]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0xa4]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0xa8]
push 0x238
mov dword [esp + 0x48], eax
call fcn.0060c415
add esp, 4
mov edi, eax
push 0x238
push 0
push edi
call fcn.0060e171
mov ecx, dword [esp + 0x18]
lea edx, [edi + 0x14]
add esp, 0xc
mov dword [esp + 0x10], edx
cmp ecx, 0xffffffff
jne 0x501039
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
mov dword [eax], edi
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov ecx, dword [ecx + 0xc]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0xc]
jmp 0x50103d
mov dword [esp + 0x10], edx
test ecx, ecx
mov dword [edi + 0x24], 0xce4
mov eax, 0x1004f8a0
mov dword [edi + 0x44], 0x1001b970
cmovne eax, ecx
mov dword [edi + 0x40], eax
test esi, esi
je 0x501713
mov eax, dword [esi]
push edi
push 0x1014d1bc
push eax
mov dword [edi + 0x10], eax
call dword [0x10147214]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
lea ecx, [edi + 0x15c]
mov edx, dword [esi + 0x10]
test edx, edx
je 0x50140d
movzx eax, byte [edx + 8]
mov byte [edi + 0x14c], al
movzx eax, byte [edx + 9]
mov byte [edi + 0x14d], al
mov eax, dword [edx + 0xa]
mov dword [edi + 0x150], eax
mov eax, dword [edx + 0xe]
mov dword [edi + 0x154], eax
mov eax, dword [edx + 0x12]
mov dword [edi + 0x158], eax
lea eax, [edx + 0x16]
mov edx, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
call fcn.005d7781
mov ecx, dword [esp + 8]
lea edx, [edi + 0x164]
mov eax, dword [ecx]
add ecx, 4
mov dword [esp + 8], ecx
lea ecx, [esp + 8]
mov dword [edi + 0x160], eax
call fcn.005d7781
lea edx, [edi + 0x168]
lea ecx, [esp + 8]
call fcn.005d7701
lea edx, [edi + 0x16c]
lea ecx, [esp + 8]
call fcn.005d7701
lea edx, [edi + 0x170]
lea ecx, [esp + 8]
call fcn.005d7701
mov eax, dword [esi + 0x10]
cmp dword [eax], 6
jle 0x501255
lea edx, [edi + 0x174]
lea ecx, [esp + 8]
call fcn.005d7781
lea edx, [edi + 0x178]
lea ecx, [esp + 8]
call fcn.005d7781
lea edx, [edi + 0x17c]
lea ecx, [esp + 8]
call fcn.005d7781
lea edx, [edi + 0x180]
lea ecx, [esp + 8]
call fcn.005d7781
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
lea edx, [ecx + 0x21]
mov dword [edi + 0x184], eax
mov eax, dword [ecx + 4]
mov dword [edi + 0x188], eax
mov eax, dword [ecx + 8]
mov dword [edi + 0x18c], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0x190], eax
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x194], eax
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x198], eax
mov eax, dword [ecx + 0x18]
mov dword [edi + 0x19c], eax
mov al, byte [ecx + 0x1c]
mov byte [edi + 0x1a0], al
mov eax, dword [ecx + 0x1d]
mov ecx, esi
mov dword [edi + 0x1a4], eax
mov eax, dword [ecx + 0x10]
cmp dword [eax], 0xe
jle 0x5011d6
mov al, byte [edx]
inc edx
jmp 0x5011d8
mov al, 1
mov byte [edi + 0x1a8], al
mov esi, edx
mov eax, dword [edx]
mov dword [edi + 0x1ac], eax
mov eax, dword [esi + 4]
mov dword [edi + 0x1b0], eax
mov eax, dword [esi + 8]
mov dword [edi + 0x1b4], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0x1b8], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x1bc], eax
lea eax, [esi + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x10]
mov eax, dword [eax]
cmp eax, 9
jle 0x50189a
cmp eax, 0xd
jle 0x501235
lea edx, [edi + 0x1c0]
lea ecx, [esp + 8]
call fcn.005d7781
lea edx, [edi + 0xe8]
lea ecx, [esp + 8]
call fcn.005d7781
lea edx, [edi + 0x38]
lea ecx, [esp + 8]
call fcn.005d7781
jmp 0x50189a
mov ecx, dword [edi + 0x170]
test ecx, ecx
je 0x501281
mov eax, dword [ecx]
test eax, eax
jns 0x501281
inc eax
mov dword [ecx], eax
mov eax, dword [edi + 0x170]
cmp dword [eax], 0
jne 0x501281
push 0xac
push eax
call fcn.0060c445
add esp, 8
push 0x10
call fcn.0060c453
mov dword [edi + 0x170], eax
add esp, 4
mov dword [eax], 0xffffffff
mov eax, dword [edi + 0x170]
mov dword [eax + 4], 8
mov eax, dword [edi + 0x170]
mov ecx, dword [0x1014e234]
mov edx, dword [0x1014e238]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, dword [edi + 0x174]
test ecx, ecx
je 0x5012eb
inc dword [ecx]
mov eax, dword [edi + 0x174]
cmp dword [eax], 0
jne 0x5012e1
push 0xac
push eax
call fcn.0060c445
add esp, 8
mov dword [edi + 0x174], 0
mov ecx, dword [edi + 0x178]
test ecx, ecx
je 0x50131a
inc dword [ecx]
mov eax, dword [edi + 0x178]
cmp dword [eax], 0
jne 0x501310
push 0xac
push eax
call fcn.0060c445
add esp, 8
mov dword [edi + 0x178], 0
mov ecx, dword [edi + 0x17c]
test ecx, ecx
je 0x501349
inc dword [ecx]
mov eax, dword [edi + 0x17c]
cmp dword [eax], 0
jne 0x50133f
push 0xac
push eax
call fcn.0060c445
add esp, 8
mov dword [edi + 0x17c], 0
mov ecx, dword [edi + 0x180]
test ecx, ecx
je 0x501378
inc dword [ecx]
mov eax, dword [edi + 0x180]
cmp dword [eax], 0
jne 0x50136e
push 0xac
push eax
call fcn.0060c445
add esp, 8
mov dword [edi + 0x180], 0
mov dword [edi + 0x184], 0xfe000000
mov dword [edi + 0x188], 0xfe000000
mov dword [edi + 0x18c], 0xfffd3a00
mov dword [edi + 0x190], 0xfe000000
mov dword [edi + 0x19c], 0xfe000000
mov dword [edi + 0x194], 0xfffd3a00
mov dword [edi + 0x198], 0xff4d6082
mov byte [edi + 0x1a0], 0
mov dword [edi + 0x1a4], 0
mov dword [edi + 0x1ac], 0x1e
mov dword [edi + 0x1b0], 0x1e
mov byte [edi + 0x1a8], 1
mov dword [edi + 0x1b4], 0x1a
mov dword [edi + 0x1b8], 0
mov dword [edi + 0x1bc], 0
jmp 0x50189a
mov word [edi + 0x14c], 1
mov dword [edi + 0x150], 0xff
mov dword [edi + 0x154], 0
mov dword [edi + 0x158], 0
mov edx, dword [ecx]
test edx, edx
je 0x50145d
inc dword [edx]
mov eax, dword [ecx]
cmp dword [eax], 0
jne 0x501457
push 0xac
push eax
call fcn.0060c445
add esp, 8
lea ecx, [edi + 0x15c]
mov dword [ecx], 0
lea ecx, [edi + 0x164]
mov dword [edi + 0x160], 0
mov edx, 0xce4
call fcn.005d7c81
mov ecx, dword [edi + 0x168]
test ecx, ecx
je 0x5014a3
mov eax, dword [ecx]
test eax, eax
jns 0x5014a3
inc eax
mov dword [ecx], eax
mov eax, dword [edi + 0x168]
cmp dword [eax], 0
jne 0x5014a3
push 0xac
push eax
call fcn.0060c445
add esp, 8
push 0x1e
call fcn.0060c453
mov dword [edi + 0x168], eax
add esp, 4
mov dword [eax], 0xffffffff
mov eax, dword [edi + 0x168]
mov dword [eax + 4], 0x16
mov ecx, dword [edi + 0x168]
movups xmm0, xmmword [0x1014e23c]
movups xmmword [ecx + 8], xmm0
mov eax, dword [0x1014e24c]
mov dword [ecx + 0x18], eax
mov ax, word [0x1014e250]
mov word [ecx + 0x1c], ax
mov ecx, dword [edi + 0x16c]
test ecx, ecx
je 0x501515
mov eax, dword [ecx]
test eax, eax
jns 0x501515
inc eax
mov dword [ecx], eax
mov eax, dword [edi + 0x16c]
cmp dword [eax], 0
jne 0x501515
push 0xac
push eax
call fcn.0060c445
add esp, 8
push 0x1e
call fcn.0060c453
mov dword [edi + 0x16c], eax
add esp, 4
mov dword [eax], 0xffffffff
mov eax, dword [edi + 0x16c]
mov dword [eax + 4], 0x16
mov ecx, dword [edi + 0x16c]
movups xmm0, xmmword [0x1014e254]
movups xmmword [ecx + 8], xmm0
mov eax, dword [0x1014e264]
mov dword [ecx + 0x18], eax
mov ax, word [0x1014e268]
mov word [ecx + 0x1c], ax
mov ecx, dword [edi + 0x170]
test ecx, ecx
je 0x501587
mov eax, dword [ecx]
test eax, eax
jns 0x501587
inc eax
mov dword [ecx], eax
mov eax, dword [edi + 0x170]
cmp dword [eax], 0
jne 0x501587
push 0xac
push eax
call fcn.0060c445
add esp, 8
push 0x10
call fcn.0060c453
mov dword [edi + 0x170], eax
add esp, 4
mov dword [eax], 0xffffffff
mov eax, dword [edi + 0x170]
mov dword [eax + 4], 8
mov eax, dword [edi + 0x170]
mov ecx, dword [0x1014e234]
mov edx, dword [0x1014e238]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, dword [edi + 0x174]
test ecx, ecx
je 0x5015f1
inc dword [ecx]
mov eax, dword [edi + 0x174]
cmp dword [eax], 0
jne 0x5015e7
push 0xac
push eax
call fcn.0060c445
add esp, 8
mov dword [edi + 0x174], 0
mov ecx, dword [edi + 0x178]
test ecx, ecx
je 0x501620
inc dword [ecx]
mov eax, dword [edi + 0x178]
cmp dword [eax], 0
jne 0x501616
push 0xac
push eax
call fcn.0060c445
add esp, 8
mov dword [edi + 0x178], 0
mov ecx, dword [edi + 0x17c]
test ecx, ecx
je 0x50164f
inc dword [ecx]
mov eax, dword [edi + 0x17c]
cmp dword [eax], 0
jne 0x501645
push 0xac
push eax
call fcn.0060c445
add esp, 8
mov dword [edi + 0x17c], 0
mov ecx, dword [edi + 0x180]
test ecx, ecx
je 0x50167e
inc dword [ecx]
mov eax, dword [edi + 0x180]
cmp dword [eax], 0
jne 0x501674
push 0xac
push eax
call fcn.0060c445
add esp, 8
mov dword [edi + 0x180], 0
mov dword [edi + 0x184], 0xfe000000
mov dword [edi + 0x188], 0xfe000000
mov dword [edi + 0x18c], 0xfffd3a00
mov dword [edi + 0x190], 0xfe000000
mov dword [edi + 0x19c], 0xfe000000
mov dword [edi + 0x194], 0xfffd3a00
mov dword [edi + 0x198], 0xff4d6082
mov byte [edi + 0x1a0], 0
mov byte [edi + 0x1a8], 1
mov dword [edi + 0x1a4], 0
mov dword [edi + 0x1ac], 0x1e
mov dword [edi + 0x1b0], 0x1e
mov dword [edi + 0x1b4], 0x1a
mov dword [edi + 0x1b8], 0
mov dword [edi + 0x1bc], 0
jmp 0x50189a
mov al, byte [ebp + 0x28]
lea ecx, [edi + 0x15c]
mov edx, dword [esp + 0x18]
mov byte [edi + 0x14c], al
mov al, byte [ebp + 0x2c]
mov byte [edi + 0x14d], al
mov eax, dword [ebp + 0x30]
mov dword [edi + 0x150], eax
mov eax, dword [ebp + 0x34]
mov dword [edi + 0x154], eax
mov eax, dword [ebp + 0x38]
mov dword [edi + 0x158], eax
call fcn.005d7bf1
mov eax, dword [esp + 8]
lea ecx, [edi + 0x164]
mov edx, dword [esp + 0x1c]
mov dword [edi + 0x160], eax
call fcn.005d7bf1
mov edx, dword [esp + 0x20]
lea ecx, [edi + 0x168]
call fcn.005d8921
mov edx, dword [esp + 0x24]
lea ecx, [edi + 0x16c]
call fcn.005d8921
mov edx, dword [esp + 0x28]
lea ecx, [edi + 0x170]
call fcn.005d8921
mov edx, dword [esp + 0x2c]
lea ecx, [edi + 0x174]
call fcn.005d7bf1
mov edx, dword [esp + 0x30]
lea ecx, [edi + 0x178]
call fcn.005d7bf1
mov edx, dword [esp + 0x34]
lea ecx, [edi + 0x17c]
call fcn.005d7bf1
mov edx, dword [esp + 0x38]
lea ecx, [edi + 0x180]
call fcn.005d7bf1
mov eax, dword [ebp + 0x7c]
lea ecx, [edi + 0x1c0]
mov dword [edi + 0x19c], eax
mov eax, dword [ebp + 0x84]
mov dword [edi + 0x1a4], eax
mov al, byte [ebp + 0x88]
mov byte [edi + 0x1a8], al
mov eax, dword [ebp + 0x94]
mov dword [edi + 0x1b4], eax
mov eax, dword [ebp + 0x64]
mov edx, dword [esp + 0x3c]
mov dword [edi + 0x184], eax
mov eax, dword [ebp + 0x68]
mov dword [edi + 0x188], eax
mov eax, dword [ebp + 0x6c]
mov dword [edi + 0x18c], eax
mov eax, dword [ebp + 0x70]
mov dword [edi + 0x190], eax
mov eax, dword [ebp + 0x74]
mov dword [edi + 0x194], eax
mov eax, dword [ebp + 0x78]
mov dword [edi + 0x198], eax
mov al, byte [ebp + 0x80]
mov byte [edi + 0x1a0], al
mov eax, dword [ebp + 0x8c]
mov dword [edi + 0x1ac], eax
mov eax, dword [ebp + 0x90]
mov dword [edi + 0x1b0], eax
mov eax, dword [ebp + 0x98]
mov dword [edi + 0x1b8], eax
mov eax, dword [ebp + 0x9c]
mov dword [edi + 0x1bc], eax
call fcn.005d7bf1
mov edx, dword [esp + 0x40]
lea ecx, [edi + 0xe8]
call fcn.005d7bf1
mov edx, dword [esp + 0x44]
lea ecx, [edi + 0x38]
call fcn.005d7bf1
push 0x10
call fcn.0060c415
add esp, 4
xorps xmm0, xmm0
movups xmmword [eax], xmm0
push 0x10
mov dword [edi + 0x1dc], eax
call fcn.0060c415
add esp, 4
xorps xmm0, xmm0
movups xmmword [eax], xmm0
push 0x14
mov dword [edi + 0x1d8], eax
call fcn.0060c415
add esp, 4
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
push dword [edi + 0x164]
mov dword [edi + 0x1c4], eax
push eax
call fcn.005cb891
push 0x5c
call fcn.0060c415
add esp, 4
mov esi, eax
push 0x5c
push 0
push esi
call fcn.0060e171
add esp, 0xc
mov dword [edi + 0x1c8], esi
push dword [edi + 0x174]
push esi
call fcn.0056fde1
push 0x5c
call fcn.0060c415
add esp, 4
mov esi, eax
push 0x5c
push 0
push esi
call fcn.0060e171
add esp, 0xc
mov dword [edi + 0x1cc], esi
push dword [edi + 0x178]
push esi
call fcn.0056fde1
push 0x5c
call fcn.0060c415
add esp, 4
mov esi, eax
push 0x5c
push 0
push esi
call fcn.0060e171
add esp, 0xc
mov dword [edi + 0x1d0], esi
push dword [edi + 0x17c]
push esi
call fcn.0056fde1
push 0x5c
call fcn.0060c415
add esp, 4
mov esi, eax
push 0x5c
push 0
push esi
call fcn.0060e171
add esp, 0xc
mov dword [edi + 0x1d4], esi
push dword [edi + 0x180]
push esi
call fcn.0056fde1
mov dword [edi + 0x1e8], 0xffffffff
xorps xmm0, xmm0
mov dword [edi + 0x1ec], 0xffffffff
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x60], xmm0
mov dword [esp + 0x70], 0
push 0
call fcn.00619b83
mov dword [edi + 0x228], eax
add esp, 4
mov eax, dword [edi + 0x168]
mov dword [edi + 0x22c], edx
mov dword [edi + 0x218], 0
mov dword [edi + 0x21c], 0
mov dword [edi + 0x220], 0xe44cb3ff
mov dword [edi + 0x224], 0x11efa
test eax, eax
je 0x501a9b
lea ecx, [eax + 8]
test ecx, ecx
je 0x501a9b
cmp dword [eax + 4], 2
jle 0x501a9b
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x78]
push eax
push 0x1014e26c
push ecx
call fcn.00500d41
sub dword [esp + 0x84], 0x76c
lea eax, [esp + 0x70]
dec dword [esp + 0x80]
push eax
mov dword [esp + 0x94], 0
call fcn.00619af1
mov dword [edi + 0x218], eax
add esp, 0x24
and eax, edx
mov dword [edi + 0x21c], edx
cmp eax, 0xffffffff
jne 0x501a9b
mov dword [edi + 0x218], 0
mov dword [edi + 0x21c], 0
mov eax, dword [edi + 0x16c]
test eax, eax
je 0x501b34
lea ecx, [eax + 8]
test ecx, ecx
je 0x501b34
cmp dword [eax + 4], 2
jle 0x501b34
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x78]
push eax
push 0x1014e26c
push ecx
call fcn.00500d41
sub dword [esp + 0x84], 0x76c
lea eax, [esp + 0x70]
dec dword [esp + 0x80]
push eax
mov dword [esp + 0x94], 0
call fcn.00619af1
mov dword [edi + 0x220], eax
add esp, 0x24
and eax, edx
mov dword [edi + 0x224], edx
cmp eax, 0xffffffff
jne 0x501b34
mov dword [edi + 0x220], 0xe44cb3ff
mov dword [edi + 0x224], 0x11efa
mov eax, dword [edi + 0x170]
test eax, eax
je 0x501bcf
lea ecx, [eax + 8]
test ecx, ecx
je 0x501bcf
cmp dword [eax + 4], 2
jle 0x501bcf
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x78]
push eax
push 0x1014e26c
push ecx
call fcn.00500d41
sub dword [esp + 0x84], 0x76c
lea eax, [esp + 0x70]
dec dword [esp + 0x80]
push eax
mov dword [esp + 0x94], 0
call fcn.00619af1
mov dword [edi + 0x228], eax
add esp, 0x24
and eax, edx
mov dword [edi + 0x22c], edx
cmp eax, 0xffffffff
jne 0x501bcf
push 0
call fcn.00619b83
add esp, 4
mov dword [edi + 0x228], eax
mov dword [edi + 0x22c], edx
mov ecx, dword [edi + 0x22c]
mov esi, dword [edi + 0x21c]
mov eax, dword [edi + 0x228]
mov edx, dword [edi + 0x218]
cmp ecx, esi
jg 0x501c01
jl 0x501bf1
cmp eax, edx
jae 0x501c01
mov dword [edi + 0x228], edx
mov eax, edx
mov dword [edi + 0x22c], esi
mov ecx, esi
mov esi, dword [edi + 0x224]
mov edx, dword [edi + 0x220]
cmp ecx, esi
jl 0x501c27
jg 0x501c17
cmp eax, edx
jbe 0x501c27
mov dword [edi + 0x228], edx
mov eax, edx
mov dword [edi + 0x22c], esi
mov ecx, esi
push ecx
push eax
mov ecx, edi
call fcn.00500e21
mov ecx, edi
call fcn.005099f1
push dword [edi + 0x38]
movzx eax, byte [edi + 0x14d]
push dword [edi + 0x160]
push dword [edi + 0x158]
push dword [edi + 0x15c]
push dword [edi + 0x154]
push 0xce4
push dword [esp + 0x24]
push 0x1001b970
push dword [edi + 0x150]
push eax
movzx eax, byte [edi + 0x14c]
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [esp + 0x84]
push dword [esp + 0x8c]
push edi
call fcn.00533d61
mov ecx, dword [esp + 0x8c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0060c402
mov esp, ebp
pop ebp
ret 0xa4