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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x104]
cmp eax, dword [ecx + 8]
jbe 0x50277b
sub esp, 0x184
lea edi, [esp + 0xc4]
xor eax, eax
call fcn.0044ccf0
mov ecx, dword [0xbae7a0]
mov edx, dword [0xbae7a4]
mov ebx, dword [0xbae7a8]
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], ebx
mov ecx, dword [esp + 0x194]
mov dword [esp + 0xd0], ecx
mov edx, dword [esp + 0x198]
mov dword [esp + 0xd4], edx
mov ebx, dword [esp + 0x19c]
mov dword [esp + 0xd8], ebx
mov eax, 2
xor ebp, ebp
xor esi, esi
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x58], ebp
xor ebp, ebp
mov dword [esp + 0x54], ebp
xor ebp, ebp
mov dword [esp + 0xc0], ebp
xor ebp, ebp
jmp 0x50213b
mov dword [esp + 0x7c], edx
lea ecx, [esp + 0xc4]
mov ebx, dword [ecx + edx*4]
mov ebp, dword [esp + edx*4 + 0xc8]
mov esi, dword [esp + edx*4 + 0xcc]
mov edi, dword [esp + eax*4 + 0xc8]
mov edx, dword [esp + eax*4 + 0xcc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edx
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call fcn.004fe3c0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x7c]
lea ebp, [esp + 0xc4]
mov dword [ebp + ebx*4 + 4], ecx
mov dword [ebp + ebx*4 + 8], edx
mov dword [ebp + ebx*4], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1ac]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x1b0]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1b4]
mov dword [esp + 0x2c], edx
call fcn.004fef60
mov eax, dword [esp + 0x30]
mov dword [esp + 0xa8], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x48], ecx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x4c], edx
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x7c]
lea edx, [esp + 0xc4]
mov ecx, dword [edx + edi*4]
mov dword [esp + 0xac], ecx
mov ecx, dword [esp + edi*4 + 0xc8]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + edi*4 + 0xcc]
mov dword [esp + 0x58], ecx
mov dword [edx + edi*4 + 4], ebp
mov dword [edx + edi*4 + 8], esi
mov dword [edx + edi*4], ebx
mov edx, dword [esp + edi*4 + 0xd0]
mov ecx, dword [esp + edi*4 + 0xd4]
mov eax, dword [esp + edi*4 + 0xd8]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x194]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x198]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x19c]
mov dword [esp + 0x20], edx
call fcn.004fd450
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x7c]
mov dword [esp + ebx*4 + 0xd0], eax
mov dword [esp + ebx*4 + 0xd4], ecx
mov dword [esp + ebx*4 + 0xd8], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0xa8]
mov dword [esp], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1ac]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x1b0]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1b4]
mov dword [esp + 0x2c], edx
call fcn.004fef60
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x48], ebp
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + ebx*4 + 0xd0]
mov dword [esp + 0xac], ebp
mov ebp, dword [esp + ebx*4 + 0xd4]
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + ebx*4 + 0xd8]
mov dword [esp + ebx*4 + 0xd0], eax
mov dword [esp + ebx*4 + 0xd4], ecx
mov dword [esp + ebx*4 + 0xd8], edx
mov eax, dword [esp + 0x64]
add eax, 2
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x194]
mov edx, dword [esp + 0x198]
mov ebx, dword [esp + 0x19c]
mov dword [esp + 0x58], ebp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0xc0], eax
mov ebp, dword [esp + 0x48]
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x48], ebp
mov dword [esp + 0xbc], esi
mov dword [esp + 0x4c], edi
cmp eax, 0x10
jge 0x502188
mov dword [esp + 0x64], eax
sar eax, 0x1f
shr eax, 0x1f
mov ebx, dword [esp + 0x64]
add eax, ebx
sar eax, 1
cmp eax, 0x10
jae 0x502774
lea eax, [eax + eax*2]
cmp ebx, 0x10
jae 0x502774
lea edx, [ebx + ebx*2]
inc ebx
cmp ebx, 0x10
jb 0x501e89
jmp 0x502774
mov eax, dword [esp + 0x190]
cmp eax, 1
jl 0x502728
mov ecx, 1
mov edx, dword [esp + 0x188]
test ecx, ecx
jbe 0x50276d
mov dword [edx], 1
mov ebx, dword [esp + 0x1a4]
dec ebx
mov dword [esp + 0x60], ebx
jmp 0x5026af
mov dword [esp + 0xc0], ebx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x190], esi
mov dword [esp + 0xbc], edi
mov edi, dword [esp + 0x50]
shr edi, 0x1c
lea edi, [edi + edi*2]
mov esi, dword [esp + edi*4 + 0xc4]
mov ebp, dword [esp + edi*4 + 0xc8]
mov edi, dword [esp + edi*4 + 0xcc]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], edi
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x190]
mov dword [esp + 0x14], ecx
call fcn.004fd450
mov eax, dword [esp + 0x24]
mov dword [esp + 0x188], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x70], edx
mov ebx, dword [esp + 0xc0]
mov dword [esp], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x190]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xbc]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x1ac]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1b0]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1b4]
mov dword [esp + 0x2c], esi
call fcn.004fef60
mov eax, dword [esp + 0x5c]
add eax, 4
mov dword [esp + 0x5c], eax
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x50]
shl eax, 4
mov dword [esp + 0x190], ebx
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x58], eax
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x188]
mov dword [esp + 0xc0], edx
mov ebx, dword [esp + 0x7c]
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x5c]
cmp eax, 0x20
jge 0x5026a3
mov dword [esp + 0x18c], ecx
mov ecx, dword [esp + 0x60]
cmp ebx, ecx
je 0x502679
mov dword [esp + 0xb8], edx
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x18c]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x190]
mov dword [esp + 0x14], ecx
call fcn.004fe3c0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x188], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x74], edx
mov ebx, dword [esp + 0xb8]
mov dword [esp], ebx
mov ebx, dword [esp + 0x18c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x190]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xc0]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x1ac]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1b0]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1b4]
mov dword [esp + 0x2c], esi
call fcn.004fef60
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0xb4], ebx
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x70], ebp
mov esi, dword [esp + 0x44]
mov dword [esp + 0x190], esi
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
call fcn.004fe3c0
mov eax, dword [esp + 0x18]
mov dword [esp + 0xb0], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x6c], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x68], edx
mov ebx, dword [esp + 0xb4]
mov dword [esp], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x190]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x188]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x1ac]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1b0]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1b4]
mov dword [esp + 0x2c], esi
call fcn.004fef60
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x188], ebx
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x78], ebp
mov esi, dword [esp + 0x44]
mov dword [esp + 0x190], esi
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
call fcn.004fe3c0
mov eax, dword [esp + 0x18]
mov dword [esp + 0xb4], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x70], edx
mov ebx, dword [esp + 0x188]
mov dword [esp], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x190]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xb0]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x1ac]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1b0]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1b4]
mov dword [esp + 0x2c], esi
call fcn.004fef60
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x188], ebx
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x78], ebp
mov esi, dword [esp + 0x44]
mov dword [esp + 0x190], esi
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
call fcn.004fe3c0
mov eax, dword [esp + 0x18]
mov dword [esp + 0xb0], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x6c], ecx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x68], edx
mov ebx, dword [esp + 0x188]
mov dword [esp], ebx
mov ebx, dword [esp + 0x78]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x190]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0xb4]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x1ac]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1b0]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1b4]
mov dword [esp + 0x2c], esi
call fcn.004fef60
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0xb0]
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x54], edi
mov edi, dword [esp + 0x68]
mov dword [esp + 0x58], edi
mov edi, dword [esp + 0xb0]
jmp 0x5021c3
test eax, eax
jne 0x502354
mov ecx, ebp
mov eax, esi
mov ebx, edx
mov ebp, dword [esp + 0x18c]
mov esi, dword [esp + 0x190]
mov edx, edi
mov edi, dword [esp + 0xc0]
jmp 0x5021c3
dec ebx
mov eax, dword [esp + 0x60]
mov eax, dword [esp + 0x190]
test ebx, ebx
jl 0x5026f0
mov dword [esp + 0x190], eax
mov eax, dword [esp + 0x1a4]
cmp ebx, eax
jae 0x502766
mov dword [esp + 0x7c], ebx
mov eax, dword [esp + 0x1a0]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x98], eax
xor eax, eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x98]
jmp 0x502330
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004fbcd0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1b8], eax
mov dword [esp + 0x1bc], ecx
mov dword [esp + 0x1c0], edx
add esp, 0x184
ret
lea eax, [0x7715e0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 5
call fcn.00438c00
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0xbc]
mov edi, dword [esp + 0x4c]
jmp 0x5021a4
call fcn.00426630
ud2
call fcn.00426630
ud2
call fcn.00426630
ud2
call fcn.0044b4c0
jmp fcn.00501de0