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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514c80
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x3740
call fcn.00428230
mov eax, dword [0x5522f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x3718], edi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x36f4], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3714], 0
mov dword [ebp - 0x371c], 0
mov dword [ebp - 4], 0
lea esi, [eax + 0x40]
push eax
call fcn.00502c40
wait
push esi
mov ecx, edi
call fcn.00502b50
wait
xor esi, esi
mov dword [ebp - 0x36fc], esi
mov eax, dword [ebx + 0x1c]
shr eax, 3
mov dword [ebp - 0x3730], eax
mov eax, dword [ebx + 0x14]
lea ecx, [eax*4]
mov dword [ebp - 0x3708], ecx
mov ecx, dword [ebx + 0x18]
mov edx, ecx
lea ebx, [eax*4]
imul edx, ebx
mov dword [ebp - 0x3710], edx
lea edx, [eax + 7]
and edx, 0xfffffff8
mov dword [ebp - 0x373c], edx
lea eax, [ecx + 7]
and eax, 0xfffffff8
mov ecx, eax
imul ecx, edx
mov dword [ebp - 0x3734], ecx
mov ecx, edx
shr ecx, 3
mov dword [ebp - 0x372c], ecx
shr eax, 3
mov dword [ebp - 0x3700], eax
lea eax, [ecx + 7]
shr eax, 3
mov dword [ebp - 0x3704], eax
xor ebx, ebx
mov dword [ebp - 0x36f8], ebx
cmp ebx, 0x10
jae 0x501130
lea eax, [ebp - 0x36e8]
push eax
mov eax, dword [ebp + 0x14]
add eax, esi
push eax
call fcn.004ff5c0
mov dword [ebp + ebx*4 - 0x54], eax
add esi, dword [ebp - 0x36e8]
mov dword [ebp - 0x36fc], esi
inc ebx
jmp 0x501100
xor ebx, ebx
mov dword [ebp - 0x36f8], ebx
cmp ebx, 0xb0
jae 0x501168
lea eax, [ebp - 0x36e8]
push eax
mov eax, dword [ebp + 0x14]
add eax, esi
push eax
call fcn.004ff5c0
mov dword [ebp + ebx*4 - 0x5fc], eax
add esi, dword [ebp - 0x36e8]
mov dword [ebp - 0x36fc], esi
inc ebx
jmp 0x501132
push 0x10
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x33c]
push eax
call fcn.004feb30
mov ebx, eax
mov dword [ebp - 0x3740], ebx
push 0xb0
lea eax, [ebp - 0x5fc]
push eax
lea eax, [ebp - 0x36e4]
push eax
call fcn.004feb30
mov dword [ebp - 0x3728], eax
push 0x10
push ebx
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x11fc]
push eax
lea eax, [ebp - 0x15fc]
push eax
mov ecx, edi
call fcn.004fee20
wait
push 0xb0
push dword [ebp - 0x3728]
lea eax, [ebp - 0x36e4]
push eax
lea eax, [ebp - 0x9fc]
push eax
lea eax, [ebp - 0xdfc]
push eax
mov ecx, edi
call fcn.004fee20
wait
mov eax, dword [ebp - 0x3700]
inc eax
mov dword [edi + 0x18], eax
mov ebx, dword [ebp + 0x14]
add ebx, esi
mov dword [ebp - 0x36ec], ebx
lea eax, [esi + eax*4]
mov dword [ebp - 0x36fc], eax
push 0x10
mov eax, dword [ebp - 0x3734]
lea eax, [eax + eax*2]
add eax, eax
push eax
call fcn.004397ff
add esp, 8
wait
mov esi, eax
mov dword [ebp - 0x371c], esi
test esi, esi
je 0x501657
xor ecx, ecx
mov eax, dword [edi + 0x18]
mov edx, 0x84
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00427619
add esp, 4
wait
mov dword [edi + 0x14], eax
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov dword [ebp - 0x36f0], ecx
mov dword [ebp - 0x3720], ecx
mov dword [ebp - 0x370c], esi
mov dword [eax], 2
mov eax, dword [edi + 0x14]
mov dword [eax + 8], 0xffffffff
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0x3710]
mov dword [eax + 0x10], ecx
mov esi, dword [ebp - 0x36f4]
mov edx, dword [ebp + 0x14]
cmp dword [esi + 0x1c], 0x20
jne 0x50129c
mov eax, dword [ebp - 0x3700]
mov ecx, dword [ebx + eax*4]
add ecx, edx
jmp 0x50129e
xor ecx, ecx
mov eax, dword [edi + 0x14]
mov dword [eax + 4], ecx
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0x36f0]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
mov dword [eax + 0x18], 0
mov eax, dword [edi + 0x14]
mov dword [eax + 0x1c], 0
mov ecx, dword [esi + 0x14]
mov eax, dword [edi + 0x14]
mov dword [eax + 0x34], ecx
mov ecx, dword [esi + 0x18]
mov eax, dword [edi + 0x14]
mov dword [eax + 0x38], ecx
mov eax, dword [edi + 0x14]
mov ebx, dword [ebp - 0x3708]
mov dword [eax + 0x3c], ebx
mov ecx, dword [esi + 0x14]
mov eax, dword [edi + 0x14]
mov dword [eax + 0x40], ecx
mov ecx, dword [esi + 0x18]
mov eax, dword [edi + 0x14]
mov dword [eax + 0x44], ecx
mov eax, dword [edi + 0x14]
mov dword [eax + 0x48], ebx
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0x3730]
mov dword [eax + 0x4c], ecx
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0x372c]
mov dword [eax + 0x50], ecx
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0x3700]
mov dword [eax + 0x54], ecx
mov eax, 1
mov dword [ebp - 0x3724], eax
xor ebx, ebx
mov dword [ebp - 0x3744], ebx
cmp eax, dword [edi + 0x18]
jge 0x501547
imul esi, eax, 0x84
mov eax, dword [edi + 0x14]
mov dword [esi + eax], 0
lea eax, [ebx + 1]
mov dword [ebp - 0x3710], eax
cmp eax, dword [edi + 0x18]
jge 0x50136d
mov eax, dword [ebp - 0x36ec]
mov ecx, dword [eax + ebx*4 + 4]
sub ecx, dword [eax + ebx*4]
sub ecx, dword [ebp - 0x3704]
jmp 0x501370
or ecx, 0xffffffff
mov eax, dword [edi + 0x14]
mov dword [esi + eax + 8], ecx
lea eax, [ebp - 0x36e8]
push eax
mov eax, dword [ebp - 0x36ec]
mov eax, dword [eax + ebx*4]
add eax, dword [ebp - 0x3704]
add eax, edx
push eax
call fcn.004ff5c0
mov ecx, dword [edi + 0x14]
mov dword [esi + ecx + 0x10], eax
mov eax, dword [ebp - 0x36ec]
mov ecx, dword [eax + ebx*4]
add ecx, dword [ebp - 0x36e8]
add ecx, dword [ebp - 0x3704]
mov edx, dword [ebp + 0x14]
add ecx, edx
mov eax, dword [edi + 0x14]
mov dword [esi + eax + 4], ecx
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0x36f0]
mov dword [esi + eax + 0xc], ecx
mov eax, dword [ebp - 0x36ec]
mov ecx, dword [eax + ebx*4]
add ecx, edx
mov eax, dword [edi + 0x14]
mov dword [esi + eax + 0x14], ecx
mov eax, dword [edi + 0x14]
mov dword [esi + eax + 0x18], 0
mov eax, dword [edi + 0x14]
mov dword [esi + eax + 0x1c], 0
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0x370c]
mov dword [esi + eax + 0x20], ecx
mov ecx, dword [ebp - 0x36f4]
mov ecx, dword [ecx + 0x14]
mov eax, dword [edi + 0x14]
mov dword [esi + eax + 0x34], ecx
shl ebx, 3
mov eax, dword [ebp - 0x36f4]
mov ecx, dword [eax + 0x18]
lea eax, [ebx + 8]
cmp eax, ecx
jbe 0x501426
sub ecx, ebx
jmp 0x50142b
mov ecx, 8
mov eax, dword [edi + 0x14]
mov dword [esi + eax + 0x38], ecx
mov eax, dword [edi + 0x14]
mov ebx, dword [ebp - 0x3708]
mov dword [esi + eax + 0x3c], ebx
mov eax, dword [edi + 0x14]
mov ebx, dword [ebp - 0x373c]
mov dword [esi + eax + 0x40], ebx
mov eax, dword [edi + 0x14]
mov dword [esi + eax + 0x44], 8
mov eax, dword [edi + 0x14]
lea ecx, [ebx*4]
mov dword [esi + eax + 0x48], ecx
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0x3730]
mov dword [esi + eax + 0x4c], ecx
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0x372c]
mov dword [esi + eax + 0x50], ecx
mov eax, dword [edi + 0x14]
mov dword [esi + eax + 0x54], 1
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0x3740]
mov dword [esi + eax + 0x5c], ecx
mov eax, dword [edi + 0x14]
lea ecx, [ebp - 0x33c]
mov dword [esi + eax + 0x58], ecx
mov eax, dword [edi + 0x14]
lea ecx, [ebp - 0x15fc]
mov dword [esi + eax + 0x60], ecx
mov eax, dword [edi + 0x14]
lea ecx, [ebp - 0x11fc]
mov dword [esi + eax + 0x64], ecx
mov ecx, dword [edi + 0x14]
mov eax, dword [esi + ecx + 8]
mov dword [esi + ecx + 0x68], eax
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 0x3728]
mov dword [esi + eax + 0x70], ecx
mov eax, dword [edi + 0x14]
lea ecx, [ebp - 0x36e4]
mov dword [esi + eax + 0x6c], ecx
mov eax, dword [edi + 0x14]
lea ecx, [ebp - 0xdfc]
mov dword [esi + eax + 0x74], ecx
mov eax, dword [edi + 0x14]
lea ecx, [ebp - 0x9fc]
mov dword [esi + eax + 0x78], ecx
mov ecx, dword [edi + 0x14]
mov eax, dword [esi + ecx + 8]
mov dword [esi + ecx + 0x7c], eax
mov eax, dword [ebp - 0x36f0]
mov ecx, dword [ebp - 0x3708]
lea eax, [eax + ecx*8]
mov dword [ebp - 0x36f0], eax
mov dword [ebp - 0x3720], eax
lea eax, [ebx + ebx*2]
shl eax, 4
add dword [ebp - 0x370c], eax
mov eax, dword [ebp - 0x3724]
inc eax
mov dword [ebp - 0x3724], eax
mov ebx, dword [ebp - 0x3710]
jmp 0x50132b
mov esi, dword [ebp - 0x36f4]
cmp dword [esi + 0x1c], 0x20
jne 0x5015be
mov eax, dword [esi + 0x10]
sub eax, 0x10000
je 0x50157c
sub eax, 1
jne 0x501673
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x3720], eax
mov esi, dword [eax]
add eax, 4
mov dword [ecx + 4], eax
jmp 0x501581
mov esi, 1
mov eax, esi
sub eax, 1
je 0x5015a9
sub eax, 1
jne 0x50168f
mov eax, dword [ebp - 0x3734]
add eax, eax
push eax
call fcn.00427619
add esp, 4
wait
mov dword [ebp - 0x3714], eax
mov ecx, dword [edi + 0x14]
mov eax, dword [ebp - 0x3714]
mov dword [ecx + 0x20], eax
mov eax, dword [edi + 0x14]
mov dword [eax + 0x80], esi
push 0
mov ecx, edi
call fcn.00500060
push edi
push 0x500070
mov ecx, dword [edi + 0x10]
call fcn.0049af50
push 1
mov ecx, dword [edi + 0x10]
call fcn.0049ae40
wait
push 0
push 0
mov ecx, dword [edi + 0x10]
call fcn.0049af50
mov dword [ebp - 4], 0xffffffff
jmp 0x501608
push dword [edi + 0x14]
call fcn.004275d6
push dword [ebp - 0x3714]
call fcn.004275d6
push dword [ebp - 0x371c]
call fcn.004397e5
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004275c5
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebp - 0x3738], 0xb
push 0x54a268
lea eax, [ebp - 0x3738]
push eax
call fcn.004325a7
wait
mov dword [ebp - 0x3748], 9
push 0x54a268
lea eax, [ebp - 0x3748]
push eax
call fcn.004325a7
wait
mov dword [ebp - 0x374c], 9
push 0x54a268
lea eax, [ebp - 0x374c]
push eax
call fcn.004325a7
wait
int3