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

Disassembly:
mov ecx, dword [0x6b21fc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0xb8]
cmp eax, dword [ecx + 8]
jbe 0x501dfd
sub esp, 0x138
lea edi, [esp + 0x140]
xor eax, eax
call fcn.00468a94
lea edi, [esp + 0xc8]
call fcn.00468a94
mov ecx, dword [esp + 0x13c]
lea esi, [ecx + 8]
mov edx, dword [ecx]
mov ebx, dword [ecx + 4]
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], ebx
lea edi, [esp + 0xe4]
call fcn.00468eee
mov ecx, dword [esp + 0x13c]
mov edx, dword [ecx + 0x74]
mov dword [esp], edx
call fcn.004fa7e0
mov ecx, dword [esp + 0x13c]
mov edx, dword [ecx + 0x1034]
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 4]
mov dword [esp + 0x6c], ebp
mov eax, dword [esp + 8]
mov dword [esp + 0x4c], eax
mov esi, dword [esp + 0xc]
mov dword [esp + 0x50], esi
test edx, edx
jne 0x50149e
mov dword [esp + 0x64], ebx
xor edx, edx
jmp 0x501d56
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], esi
mov byte [esp + 0x10], 0
call fcn.004fa9d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
test eax, eax
jne 0x5018c9
mov edx, dword [esp + 0x13c]
movzx ebx, byte [edx + 0x18]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x60], ebp
test bl, bl
je 0x50171b
mov eax, dword [esp + 0x18]
mov dword [esp + 0x68], eax
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov ecx, dword [esp + 0x6c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 8], ecx
call fcn.00409c90
mov eax, dword [esp + 0xc]
lea ecx, [0x5269e0]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
lea edi, [esp + 0xb0]
xor eax, eax
call fcn.00468aaa
lea ecx, [0x501f90]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb8], 0x12
lea ecx, [0x54958c]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xc0], 1
mov dword [esp + 0xc4], 1
lea ecx, [esp + 0x90]
mov dword [esp + 0xbc], ecx
mov ecx, dword [0x68b9c4]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea ecx, [esp + 0xb0]
mov dword [esp + 0xc], ecx
call fcn.004b1180
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
lea eax, [0x538380]
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x8c], ecx
lea edi, [esp + 0xb0]
xor eax, eax
call fcn.00468aaa
lea ecx, [0x501f10]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb8], 0x10
lea ecx, [0x548bf1]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xc0], 1
mov dword [esp + 0xc4], 1
lea ecx, [esp + 0x88]
mov dword [esp + 0xbc], ecx
mov ecx, dword [0x68b9c4]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea ecx, [esp + 0xb0]
mov dword [esp + 0xc], ecx
call fcn.004b1180
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea eax, [0x52bea0]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x84], eax
lea edi, [esp + 0xb0]
xor eax, eax
call fcn.00468aaa
lea ecx, [0x501e90]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb8], 0x15
lea ecx, [0x54aa1d]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xc0], 1
mov dword [esp + 0xc4], 1
lea ecx, [esp + 0x80]
mov dword [esp + 0xbc], ecx
mov ecx, dword [0x68b9c4]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea ecx, [esp + 0xb0]
mov dword [esp + 0xc], ecx
call fcn.004b1180
mov edx, dword [esp + 0x13c]
mov ebp, dword [esp + 0x60]
mov ebx, dword [edx + 0x1034]
cmp ebx, 3
jle 0x501739
mov ebx, dword [edx + 0x1030]
movzx ebx, byte [ebx + 3]
mov byte [esp + 0xdf], bl
jmp 0x50173e
cmp ebx, 2
jle 0x501760
mov ecx, dword [edx + 0x1034]
cmp ecx, 2
jbe 0x501d33
mov ebx, dword [edx + 0x1030]
movzx ebx, byte [ebx + 2]
mov byte [esp + 0xdc], bl
jmp 0x501765
cmp ebx, 1
jle 0x501787
mov ecx, dword [edx + 0x1034]
cmp ecx, 1
jbe 0x501d29
mov ebx, dword [edx + 0x1030]
movzx ebx, byte [ebx + 1]
mov byte [esp + 0xde], bl
jmp 0x50178b
test ebx, ebx
je 0x5017a9
mov ebx, dword [edx + 0x1034]
test ebx, ebx
jbe 0x501d20
mov ecx, dword [edx + 0x1030]
movzx ecx, byte [ecx]
mov byte [esp + 0xdd], cl
mov ecx, dword [edx + 0x6c]
mov ebx, ecx
sar ecx, 0x1f
mov eax, 0xaaaaaaab
mov esi, edx
imul ebx
add edx, ebx
sar edx, 4
sub edx, ecx
mov byte [esp + 0xe0], dl
mov ecx, dword [esi + 0x70]
mov ebx, ecx
sar ecx, 0x1f
mov eax, 0x61861862
mov edi, edx
imul ebx
sar edx, 3
sub edx, ecx
mov byte [esp + 0xe1], dl
xchg edi, eax
test al, al
xchg edi, eax
je 0x5017f6
test dl, dl
je 0x5017f6
xor eax, eax
jmp 0x501962
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
movzx eax, byte [esp + 0xe0]
lea ecx, [0x52abc0]
mov dword [esp + 0xa0], ecx
lea edx, [0x684860]
lea eax, [edx + eax*8]
mov dword [esp + 0xa4], eax
movzx eax, byte [esp + 0xe1]
mov dword [esp + 0xa8], ecx
lea eax, [edx + eax*8]
mov dword [esp + 0xac], eax
lea eax, [0x552a95]
mov dword [esp], eax
mov dword [esp + 4], 0x2e
lea eax, [esp + 0xa0]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004a1ec0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x6c], ecx
lea edi, [esp + 0x140]
lea esi, [esp + 0xc8]
call fcn.00468ea8
mov dword [esp + 0x1b0], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x1b4], eax
add esp, 0x138
ret
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
test eax, eax
je 0x5018ea
mov eax, dword [eax + 4]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
lea eax, [0x54da8b]
mov dword [esp], eax
mov dword [esp + 4], 0x1c
lea eax, [esp + 0x98]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004a1ec0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x6c], ecx
lea edi, [esp + 0x140]
lea esi, [esp + 0xc8]
call fcn.00468ea8
mov dword [esp + 0x1b0], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x1b4], eax
add esp, 0x138
ret
inc eax
movzx ecx, byte [esp + 0xe1]
movzx edx, cl
cmp eax, edx
jge 0x50197c
mov dword [esp + 0x40], eax
xor ecx, ecx
jmp 0x501a38
movzx eax, byte [esi + 0x1a]
test al, al
jne 0x5019fb
movzx eax, byte [esp + 0xe0]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
lea edx, [0x52abc0]
mov dword [esp + 0x70], edx
imul eax, ecx
movzx eax, al
lea ecx, [0x684860]
lea eax, [ecx + eax*8]
mov dword [esp + 0x74], eax
mov eax, dword [0x68b9cc]
lea ecx, [0x5d4354]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [0x54aa32]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x15
lea eax, [esp + 0x70]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
call fcn.004a48b0
lea edi, [esp + 0x140]
lea esi, [esp + 0xc8]
call fcn.00468ea8
mov dword [esp + 0x1b0], 0
mov dword [esp + 0x1b4], 0
add esp, 0x138
ret
mov dword [esp + 0xd4], ebx
mov byte [ebx + edi - 1], 0
inc ecx
movzx edx, byte [esp + 0xe0]
cmp ecx, edx
jge 0x501961
mov dword [esp + 0x44], ecx
xor edx, edx
jmp 0x501abf
mov edx, dword [esp + 0xd8]
mov ebx, dword [esp + 0xd4]
inc ebx
mov edi, dword [esp + 0xd0]
cmp edx, ebx
jae 0x501a2b
mov dword [esp], edi
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x52abc0]
mov dword [esp + 0x10], eax
call fcn.0044f350
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0xd8], eax
mov dword [esp + 0xd0], edi
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x13c]
jmp 0x501a2b
inc edx
cmp edx, 0x15
jge 0x501a50
mov dword [esp + 0x34], edx
lea ebx, [eax + eax*4]
lea ebx, [eax + ebx*4]
add ebx, edx
mov dword [esp + 0x30], ebx
xor edi, edi
jmp 0x501af5
mov dword [esp + 0xd4], edx
movzx eax, byte [esp + 0x2b]
mov byte [edx + ebp - 1], al
inc edi
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x60]
cmp edi, 3
jge 0x501abe
mov dword [esp + 0x3c], edi
lea eax, [ecx + ecx*2]
shl eax, 3
lea eax, [eax + edi*8]
mov dword [esp + 0x38], eax
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x48], eax
xor eax, eax
mov byte [esp + 0x2b], al
mov eax, dword [esp + 0x58]
jmp 0x501bbc
mov eax, dword [esp + 0xd8]
mov edx, dword [esp + 0xd4]
inc edx
mov ebp, dword [esp + 0xd0]
cmp eax, edx
jae 0x501ad8
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x52abc0]
mov dword [esp + 0x10], eax
call fcn.0044f350
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0xd8], eax
mov dword [esp + 0xd0], ebp
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x13c]
mov edi, dword [esp + 0x3c]
jmp 0x501ad8
lea eax, [edx + 2]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x13c]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x48], eax
mov byte [esp + 0x2b], bl
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x48]
cmp edx, 8
jge 0x501b24
mov dword [esp], esi
lea ecx, [edx + eax]
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.004f2650
movzx eax, byte [esp + 0xc]
movzx ecx, byte [esp + 0xd]
movzx edx, byte [esp + 0xe]
mov byte [esp + 0x2d], al
mov byte [esp + 0x2e], cl
mov byte [esp + 0x2f], dl
lea eax, [0x538380]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
lea edx, [esp + 0x2d]
mov dword [esp + 8], edx
call fcn.0040d3f0
movzx eax, byte [esp + 0x10]
test al, al
je 0x501c43
mov eax, dword [esp + 0xc]
movzx eax, byte [eax]
mov edx, dword [esp + 0x48]
lea ecx, [edx - 6]
neg ecx
shl eax, cl
cmp cl, 0x20
sbb ebx, ebx
and eax, ebx
movzx ebx, byte [esp + 0x2b]
or ebx, eax
jmp 0x501b92
mov eax, dword [esp + 0x13c]
movzx ecx, byte [eax + 0x18]
test cl, cl
je 0x501d12
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
lea eax, [0x53ae00]
mov dword [esp], eax
lea ecx, [esp + 0x2d]
mov dword [esp + 4], ecx
call fcn.00409a30
mov eax, dword [esp + 8]
lea ecx, [0x53ae00]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], eax
lea edi, [esp + 0xb0]
xor eax, eax
call fcn.00468aaa
lea ecx, [0x501e10]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb8], 0x11
lea edx, [0x549110]
mov dword [esp + 0xb4], edx
mov dword [esp + 0xc0], 1
mov dword [esp + 0xc4], 1
lea ebx, [esp + 0x78]
mov dword [esp + 0xbc], ebx
mov ebx, dword [0x68b9c4]
mov dword [esp], ebx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea ebx, [esp + 0xb0]
mov dword [esp + 0xc], ebx
call fcn.004b1180
mov eax, dword [esp + 0x13c]
mov edx, dword [esp + 0x48]
movzx ebx, byte [esp + 0x2b]
jmp 0x501b92
xor eax, eax
mov ecx, eax
call fcn.004688d0
mov eax, 1
call fcn.004688d0
mov eax, 2
call fcn.004688d0
mov dword [ecx + 0x1034], esi
xchg edi, eax
mov byte [esi + ebx - 1], al
xchg edi, eax
inc edx
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x6c]
mov esi, dword [esp + 0x50]
cmp edx, eax
jge 0x50149e
lea edi, [ebx + edx*4]
mov ebp, dword [ecx + 0x1038]
mov esi, dword [ecx + 0x1034]
inc esi
movzx edi, byte [edi]
mov ebx, dword [ecx + 0x1030]
cmp ebp, esi
jae 0x501d3d
mov dword [esp + 0x54], edx
xchg edi, eax
mov byte [esp + 0x2c], al
xchg edi, eax
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x52abc0]
mov dword [esp + 0x10], eax
call fcn.0044f350
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x13c]
mov dword [ebx + 0x1038], eax
mov eax, dword [0x6b2320]
test eax, eax
je 0x501dda
call fcn.00468870
mov dword [edi], ecx
mov eax, dword [ebx + 0x1030]
mov dword [edi + 4], eax
mov dword [ebx + 0x1030], ecx
mov eax, dword [esp + 0x4c]
movzx edi, byte [esp + 0x2c]
mov esi, edx
mov ebx, ecx
mov ecx, dword [esp + 0x13c]
mov edx, dword [esp + 0x54]
jmp 0x501d3d
call fcn.00467460
jmp fcn.005013f0