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

Disassembly:
push 0xffffffffffffffff
push 0x660331
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x705e7c]
xor eax, esp
mov dword [esp + 0x164], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x705e7c]
xor eax, esp
push eax
lea eax, [esp + 0x17c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18c]
mov ebp, ecx
mov ecx, dword [ebp + 0x3f8]
lea eax, [esp + 0x14]
push eax
mov dword [ebp + 0x3fc], esi
push ecx
mov ecx, dword [0x70df68]
mov dword [esp + 0x20], ebp
call fcn.00522e90
test eax, eax
je 0x50a706
mov ecx, dword [esp + 0x14]
push esi
call fcn.00523af0
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x50a627
mov edi, dword [0x70df64]
cmp dword [ebx + 0x14], esi
jne 0x50a3b9
mov ecx, dword [esp + 0x14]
call fcn.005234f0
jmp 0x50a3cf
cmp dword [ebx + 0x18], 0x10
jb 0x50a3c4
mov eax, dword [ebx + 4]
jmp 0x50a3c7
lea eax, [ebx + 4]
push eax
mov ecx, edi
call fcn.0055c9c0
push eax
push esi
mov ecx, ebp
call fcn.005b2498
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], esi
mov byte [esp + 0x60], 0
mov dword [esp + 0x184], esi
mov esi, 1
push esi
lea edx, [esp + 0x7c]
push 0x687650
push edx
call fcn.0061186b
lea eax, [esp + 0x4c]
push ebx
push eax
call fcn.0050a030
lea ecx, [esp + 0x8c]
push ecx
push eax
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x1a4], 1
call fcn.00417ae0
add esp, 0x20
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x190], 2
call fcn.00418140
cmp dword [esp + 0x3c], 0x10
jb 0x50a458
mov eax, dword [esp + 0x28]
push eax
call fcn.00611358
add esp, 4
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
mov byte [esp + 0x184], 0
jb 0x50a489
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00611358
add esp, 4
cmp dword [esp + 0x74], 0x10
mov eax, dword [esp + 0x60]
jae 0x50a498
lea eax, [esp + 0x60]
push eax
mov ecx, edi
call fcn.0055c0e0
test al, al
je 0x50a4d3
cmp dword [esp + 0x74], 0x10
mov eax, dword [esp + 0x60]
jae 0x50a4b3
lea eax, [esp + 0x60]
push eax
mov ecx, edi
call fcn.0055c9c0
test eax, eax
je 0x50a4d3
push eax
push 0
mov ecx, ebp
call fcn.005b2351
inc esi
cmp esi, 3
jbe 0x50a3f5
cmp dword [esp + 0x74], 0x10
mov dword [esp + 0x184], 0xffffffff
jb 0x50a4f2
mov edx, dword [esp + 0x60]
push edx
call fcn.00611358
add esp, 4
push 0xffffffffffffffff
push 0
push 0
push 0
mov ecx, ebp
call fcn.005afa56
mov esi, dword [ebx + 0x28]
cmp esi, dword [ebx + 0x2c]
jbe 0x50a50e
call fcn.006121a6
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 0x1c], ecx
mov ebp, esi
lea edi, [esi + 0x24]
lea ebx, [ebx]
mov esi, dword [ebx + 0x2c]
cmp dword [ebx + 0x28], esi
jbe 0x50a531
call fcn.006121a6
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x1c]
test ecx, ecx
je 0x50a53c
cmp ecx, eax
je 0x50a545
call fcn.006121a6
mov ecx, dword [esp + 0x1c]
cmp ebp, esi
je 0x50a675
test ecx, ecx
jne 0x50a56c
call fcn.006121a6
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x50a562
call fcn.006121a6
cmp dword [edi + 0x14], 0x10
jb 0x50a570
mov eax, dword [edi]
jmp 0x50a572
mov eax, dword [ecx]
jmp 0x50a558
mov eax, edi
mov ecx, dword [0x70df64]
push eax
call fcn.0055c9c0
mov esi, eax
test esi, esi
je 0x50a5fb
fldz
fld dword [esp + 0x190]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x50a5dc
cmp dword [edi - 8], 0x10
fstp dword [esp + 0x60]
mov edx, 1
mov byte [esp + 0x68], 0
jb 0x50a5b1
mov ecx, dword [edi - 0x1c]
jmp 0x50a5b4
lea ecx, [edi - 0x1c]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x70]
mov dword [eax + 4], esi
mov dword [eax + 8], edx
mov edx, dword [esp + 0x78]
mov dword [eax + 0xc], edx
mov eax, dword [ebp]
push ecx
mov ecx, dword [esp + 0x2c]
push eax
call fcn.005afb50
jmp 0x50a5fb
cmp dword [edi - 8], 0x10
fstp st(0)
jb 0x50a5e9
mov eax, dword [edi - 0x1c]
jmp 0x50a5ec
lea eax, [edi - 0x1c]
mov ecx, dword [ebp]
push esi
push eax
push ecx
mov ecx, dword [esp + 0x24]
call fcn.005b024a
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x50a623
call fcn.006121a6
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x50a614
call fcn.006121a6
mov ecx, dword [esp + 0x1c]
add ebp, 0x3c
add edi, 0x3c
jmp 0x50a520
mov eax, dword [eax]
jmp 0x50a60a
mov ecx, dword [esp + 0x14]
call fcn.00523180
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x50a647
call fcn.00523590
push eax
mov ecx, ebp
call fcn.00503140
jmp 0x50a679
call fcn.005234f0
push eax
push esi
mov ecx, ebp
call fcn.005b2498
mov ecx, dword [esp + 0x14]
call fcn.005244d0
push eax
push esi
mov ecx, ebp
call fcn.005b2351
push 0xffffffffffffffff
push esi
push esi
push esi
mov ecx, ebp
call fcn.005afa56
jmp 0x50a679
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
xor esi, esi
call fcn.00523100
test eax, eax
jbe 0x50a706
jmp 0x50a690
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push esi
call fcn.00523120
test eax, eax
je 0x50a6f8
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
sub eax, 2
jne 0x50a6f8
mov eax, dword [ecx + 0x2c]
add eax, 4
cmp dword [ecx + 4], 0
je 0x50a6de
mov edx, 0x10
cmp dword [eax + 0x18], edx
jb 0x50a6c9
mov eax, dword [eax + 4]
jmp 0x50a6cc
add eax, 4
cmp dword [ecx + 0x24], edx
jb 0x50a6d8
mov ecx, dword [ecx + 0x10]
push eax
push ecx
jmp 0x50a6ef
add ecx, edx
push eax
push ecx
jmp 0x50a6ef
cmp dword [eax + 0x18], 0x10
jb 0x50a6e9
mov eax, dword [eax + 4]
jmp 0x50a6ec
add eax, 4
push eax
push 0
push 0
mov ecx, ebp
call fcn.005066b0
mov ecx, dword [esp + 0x14]
inc esi
call fcn.00523100
cmp esi, eax
jb 0x50a690
mov ecx, dword [esp + 0x17c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.006117ae
add esp, 0x174
ret 8