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

Disassembly:
push 0xffffffffffffffff
push 0x674298
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7289f4]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0x70]
mov ebp, dword [0x68a1d8]
test ecx, ecx
jne 0x50efd8
cmp dword [esp + 0x80], 0
jne 0x50efd8
mov ebx, dword [esp + 0x78]
test ebx, ebx
jle 0x50efde
mov ecx, dword [edi + 4]
lea eax, [esp + 0x24]
push eax
push 0x18
push ecx
call ebp
mov eax, dword [esp + 0x28]
cdq
idiv ebx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x80], edx
mov ecx, eax
mov dword [esp + 0x7c], ecx
jmp 0x50efdc
mov ebx, dword [esp + 0x78]
test ebx, ebx
jne 0x50f002
test ecx, ecx
jle 0x50f004
mov eax, dword [edi + 4]
lea edx, [esp + 0x24]
push edx
push 0x18
push eax
call ebp
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x7c]
cdq
idiv ecx
mov dword [esp + 0x78], eax
mov ebx, eax
test ecx, ecx
je 0x50f111
cmp dword [esp + 0x88], 0
je 0x50f1e6
mov ecx, esi
call fcn.0053dd20
test eax, eax
jne 0x50f0ba
cmp dword [0x744f60], eax
je 0x50f0ba
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x50f040
mov eax, 0xff00
test edi, edi
je 0x50f047
mov edi, dword [edi + 4]
push eax
push edi
call fcn.0050a9c0
xor ebp, ebp
add esp, 8
cmp eax, ebp
je 0x50f111
mov edi, 0x68b2a4
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], edi
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x6c], ebp
call fcn.004a58ef
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
push ebp
push ecx
mov ecx, dword [esp + 0x7c]
push edx
push eax
push ebx
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.0050ef60
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0x68], 0xffffffff
mov dword [esp + 0x14], edi
call fcn.004037e0
jmp 0x50f2b0
mov ecx, dword [edi + 4]
lea eax, [esp + 0x24]
push eax
push 0x18
push ecx
call ebp
mov eax, dword [esp + 0x28]
cdq
idiv dword [esp + 0x7c]
mov ebp, eax
test edx, edx
jne 0x50f111
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a1ce6
mov edi, dword [edi + 4]
mov ecx, dword [esp + 0x18]
add esp, 4
mov esi, eax
push esi
push ebp
push edi
mov dword [esp + 0x7c], esi
call fcn.0050a720
test eax, eax
jne 0x50f118
push esi
call fcn.004a1cdb
add esp, 4
xor eax, eax
jmp 0x50f2b2
xor eax, eax
cmp ebp, ebx
sete al
xor esi, esi
xor ebx, ebx
cmp dword [esp + 0x78], esi
mov dword [esp + 0x88], eax
jle 0x50f1ad
mov eax, dword [esp + 0x74]
test eax, eax
je 0x50f148
cmp dword [esp + 0x88], 0
jne 0x50f148
cmp dword [eax + esi*4], 0
je 0x50f1a6
cmp ebx, ebp
jge 0x50f1a6
test eax, eax
je 0x50f155
mov edi, dword [eax + esi*4]
jmp 0x50f157
mov edi, esi
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + ebx*4]
push edx
lea ecx, [esp + 0x40]
call fcn.0050c270
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push edi
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x7c], 1
call fcn.0050e4a0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x68], 0xffffffff
call fcn.0050c380
inc ebx
inc esi
cmp esi, dword [esp + 0x78]
jl 0x50f130
xor esi, esi
test ebp, ebp
jle 0x50f1cf
mov edi, dword [0x68a240]
lea esp, [esp]
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + esi*4]
push edx
call edi
inc esi
cmp esi, ebp
jl 0x50f1c0
mov eax, dword [esp + 0x70]
push eax
call fcn.004a1cdb
add esp, 4
mov eax, 1
jmp 0x50f2b2
lea ecx, [esp + 0x1c]
call fcn.004beda4
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
push 1
push 0
push 0x19
push ecx
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x7c], 2
call fcn.004bf2d5
test eax, eax
jne 0x50f22f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x68], 0xffffffff
call fcn.004bf43d
xor eax, eax
jmp 0x50f2b2
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x50f259
sub esp, 8
mov eax, esp
mov dword [esp + 0x80], esp
push edi
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.0050a980
add esp, 0xc
test edi, edi
je 0x50f260
mov edi, dword [edi + 4]
push eax
mov eax, dword [esp + 0x24]
push edi
push eax
call fcn.004a4b4e
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00417600
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x78]
push eax
push ecx
push ebx
push edx
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.0050e920
lea ecx, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x68], 0xffffffff
call fcn.004bf43d
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x1c