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

Disassembly:
push 0xffffffffffffffff
push 0x68c5a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
call fcn.004031c0
or ebx, 0xffffffff
mov edi, 0x6d5600
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6d5600
lea ecx, [esp + 0x24]
call fcn.004083a0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x174], 0
push ecx
mov ecx, ebp
call fcn.00402320
add eax, 0xc4
push 1
mov dword [esp + 0x178], ebx
mov edx, dword [eax]
mov dword [esp + 0x40], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x20]
mov edx, dword [eax + 8]
mov dword [esp + 0x48], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x4c], eax
call fcn.004031c0
mov ecx, dword [0x818794]
mov eax, dword [ecx + 0x490]
dec eax
je 0x4e53cd
dec eax
jne 0x4e5917
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0xf0]
mov byte [esp + 0xf0], dl
call fcn.004031c0
mov edi, 0x6d55e8
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6d55e8
lea ecx, [esp + 0xf4]
call fcn.004083a0
lea eax, [esp + 0xec]
mov ecx, ebp
push eax
mov dword [esp + 0x178], 1
call fcn.00402320
push 1
lea ecx, [esp + 0xf0]
mov esi, eax
mov dword [esp + 0x178], ebx
call fcn.004031c0
test esi, esi
je 0x4e50ce
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x160], cl
lea ecx, [esp + 0x160]
call fcn.004031c0
mov edi, 0x6d55e8
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6d55e8
lea ecx, [esp + 0x164]
call fcn.004083a0
lea edx, [esp + 0x15c]
mov ecx, ebp
push edx
mov dword [esp + 0x178], 2
call fcn.00402320
add eax, 0xc4
push 1
mov dword [esp + 0x178], ebx
mov ecx, dword [eax]
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x54], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x160]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x5c], edx
call fcn.004031c0
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x110]
mov byte [esp + 0x110], al
call fcn.004031c0
mov edi, 0x6d5580
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6d5580
lea ecx, [esp + 0x114]
call fcn.004083a0
lea ecx, [esp + 0x10c]
mov dword [esp + 0x174], 3
push ecx
mov ecx, ebp
call fcn.00402320
push 1
lea ecx, [esp + 0x110]
mov esi, eax
mov dword [esp + 0x178], ebx
call fcn.004031c0
test esi, esi
je 0x4e51c8
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x150]
mov byte [esp + 0x150], dl
call fcn.004031c0
mov edi, 0x6d5580
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6d5580
lea ecx, [esp + 0x154]
call fcn.004083a0
lea eax, [esp + 0x14c]
mov ecx, ebp
push eax
mov dword [esp + 0x178], 4
call fcn.00402320
add eax, 0xc4
push 1
mov dword [esp + 0x178], ebx
mov ecx, dword [eax]
mov dword [esp + 0x60], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x64], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x150]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x6c], edx
call fcn.004031c0
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x130]
mov byte [esp + 0x130], al
call fcn.004031c0
mov edi, 0x6d5518
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6d5518
lea ecx, [esp + 0x134]
call fcn.004083a0
lea ecx, [esp + 0x12c]
mov dword [esp + 0x174], 5
push ecx
mov ecx, ebp
call fcn.00402320
push 1
lea ecx, [esp + 0x130]
mov esi, eax
mov dword [esp + 0x178], ebx
call fcn.004031c0
test esi, esi
je 0x4e52c2
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x100]
mov byte [esp + 0x100], dl
call fcn.004031c0
mov edi, 0x6d5518
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6d5518
lea ecx, [esp + 0x104]
call fcn.004083a0
lea eax, [esp + 0xfc]
mov ecx, ebp
push eax
mov dword [esp + 0x178], 6
call fcn.00402320
add eax, 0xc4
push 1
mov dword [esp + 0x178], ebx
mov ecx, dword [eax]
mov dword [esp + 0x70], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x74], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0x100]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x7c], edx
call fcn.004031c0
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x120]
mov byte [esp + 0x120], al
call fcn.004031c0
mov edi, 0x6d54bc
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6d54bc
lea ecx, [esp + 0x124]
call fcn.004083a0
lea ecx, [esp + 0x11c]
mov dword [esp + 0x174], 7
push ecx
mov ecx, ebp
call fcn.00402320
push 1
lea ecx, [esp + 0x120]
mov esi, eax
mov dword [esp + 0x178], ebx
call fcn.004031c0
test esi, esi
je 0x4e5917
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x140]
mov byte [esp + 0x140], dl
call fcn.004031c0
mov edi, 0x6d54bc
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6d54bc
lea ecx, [esp + 0x144]
call fcn.004083a0
lea eax, [esp + 0x13c]
mov ecx, ebp
push eax
mov dword [esp + 0x178], 8
call fcn.00402320
add eax, 0xc4
push 1
mov dword [esp + 0x178], ebx
mov ecx, dword [eax]
mov dword [esp + 0x80], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x84], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x88], ecx
lea ecx, [esp + 0x140]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x8c], edx
call fcn.004031c0
jmp 0x4e5917
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0xe0]
mov byte [esp + 0xe0], al
call fcn.004031c0
mov edi, 0x6d55b4
mov ecx, ebx
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea ecx, [esp + 0xe0]
push esi
mov dword [esp + 0x1c], esi
call fcn.00403350
test al, al
je 0x4e5438
mov edi, dword [esp + 0xe0]
mov ecx, esi
mov edx, ecx
mov esi, 0x6d55b4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xe0]
call fcn.00403330
lea ecx, [esp + 0xdc]
mov dword [esp + 0x174], 9
push ecx
mov ecx, ebp
call fcn.00402320
push 1
lea ecx, [esp + 0xe0]
mov esi, eax
mov dword [esp + 0x178], ebx
call fcn.004031c0
test esi, esi
je 0x4e552b
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0xb0]
mov byte [esp + 0xb0], dl
call fcn.004031c0
mov edi, 0x6d55b4
mov ecx, ebx
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea ecx, [esp + 0xb0]
push esi
mov dword [esp + 0x1c], esi
call fcn.00403350
test al, al
je 0x4e54dc
mov edi, dword [esp + 0xb0]
mov ecx, esi
mov eax, ecx
mov esi, 0x6d55b4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
push ecx
lea ecx, [esp + 0xb0]
call fcn.00403330
lea edx, [esp + 0xac]
mov ecx, ebp
push edx
mov dword [esp + 0x178], 0xa
call fcn.00402320
add eax, 0xc4
push 1
mov dword [esp + 0x178], ebx
mov ecx, dword [eax]
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x54], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0xb0]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x5c], edx
call fcn.004031c0
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0xc0]
mov byte [esp + 0xc0], al
call fcn.004031c0
mov edi, 0x6d554c
mov ecx, ebx
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea ecx, [esp + 0xc0]
push esi
mov dword [esp + 0x1c], esi
call fcn.00403350
test al, al
je 0x4e5596
mov edi, dword [esp + 0xc0]
mov ecx, esi
mov edx, ecx
mov esi, 0x6d554c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc0]
call fcn.00403330
lea ecx, [esp + 0xbc]
mov dword [esp + 0x174], 0xb
push ecx
mov ecx, ebp
call fcn.00402320
push 1
lea ecx, [esp + 0xc0]
mov esi, eax
mov dword [esp + 0x178], ebx
call fcn.004031c0
test esi, esi
je 0x4e5689
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x90]
mov byte [esp + 0x90], dl
call fcn.004031c0
mov edi, 0x6d554c
mov ecx, ebx
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea ecx, [esp + 0x90]
push esi
mov dword [esp + 0x1c], esi
call fcn.00403350
test al, al
je 0x4e563a
mov edi, dword [esp + 0x90]
mov ecx, esi
mov eax, ecx
mov esi, 0x6d554c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
push ecx
lea ecx, [esp + 0x90]
call fcn.00403330
lea edx, [esp + 0x8c]
mov ecx, ebp
push edx
mov dword [esp + 0x178], 0xc
call fcn.00402320
add eax, 0xc4
push 1
mov dword [esp + 0x178], ebx
mov ecx, dword [eax]
mov dword [esp + 0x60], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x64], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x90]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x6c], edx
call fcn.004031c0
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0xd0]
mov byte [esp + 0xd0], al
call fcn.004031c0
mov edi, 0x6d54e4
mov ecx, ebx
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea ecx, [esp + 0xd0]
push esi
mov dword [esp + 0x1c], esi
call fcn.00403350
test al, al
je 0x4e56f4
mov edi, dword [esp + 0xd0]
mov ecx, esi
mov edx, ecx
mov esi, 0x6d54e4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xd0]
call fcn.00403330
lea ecx, [esp + 0xcc]
mov dword [esp + 0x174], 0xd
push ecx
mov ecx, ebp
call fcn.00402320
push 1
lea ecx, [esp + 0xd0]
mov esi, eax
mov dword [esp + 0x178], ebx
call fcn.004031c0
test esi, esi
je 0x4e57e7
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0xa0]
mov byte [esp + 0xa0], dl
call fcn.004031c0
mov edi, 0x6d54e4
mov ecx, ebx
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea ecx, [esp + 0xa0]
push esi
mov dword [esp + 0x1c], esi
call fcn.00403350
test al, al
je 0x4e5798
mov edi, dword [esp + 0xa0]
mov ecx, esi
mov eax, ecx
mov esi, 0x6d54e4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
push ecx
lea ecx, [esp + 0xa0]
call fcn.00403330
lea edx, [esp + 0x9c]
mov ecx, ebp
push edx
mov dword [esp + 0x178], 0xe
call fcn.00402320
add eax, 0xc4
push 1
mov dword [esp + 0x178], ebx
mov ecx, dword [eax]
mov dword [esp + 0x70], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x74], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0xa0]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x7c], edx
call fcn.004031c0
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], al
call fcn.004031c0
mov edi, 0x6d54bc
mov ecx, ebx
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
lea ecx, [esp + 0x30]
push esi
mov dword [esp + 0x1c], esi
call fcn.00403350
test al, al
je 0x4e5845
mov edi, dword [esp + 0x30]
mov ecx, esi
mov edx, ecx
mov esi, 0x6d54bc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov byte [ecx + eax], 0
lea edx, [esp + 0x2c]
mov ecx, ebp
push edx
mov dword [esp + 0x178], 0xf
call fcn.00402320
push 1
lea ecx, [esp + 0x30]
mov edi, eax
mov dword [esp + 0x178], ebx
call fcn.004031c0
xor esi, esi
cmp edi, esi
je 0x4e5917
mov al, byte [esp + 0x13]
mov edi, 0x6d54bc
mov byte [esp + 0x1c], al
mov ecx, ebx
xor eax, eax
mov dword [esp + 0x20], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x24], esi
push ecx
push 0x6d54bc
lea ecx, [esp + 0x24]
mov dword [esp + 0x30], esi
call fcn.004083a0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x174], 0x10
push ecx
mov ecx, ebp
call fcn.00402320
add eax, 0xc4
mov dword [esp + 0x174], ebx
mov edx, dword [eax]
mov dword [esp + 0x7c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x80], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x84], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x4e5917
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4e590e
cmp al, 0xff
je 0x4e590e
dec al
mov byte [ecx], al
jmp 0x4e5917
push ecx
call fcn.006713a0
add esp, 4
mov eax, dword [0x818980]
xor edi, edi
lea esi, [esp + 0x44]
mov ebx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x18], eax
cmp dword [esi - 8], ebx
jge 0x4e594b
cmp dword [esi], ebx
jle 0x4e594b
cmp dword [esi - 4], eax
jge 0x4e594b
cmp dword [esi + 4], eax
jle 0x4e594b
push edi
mov ecx, ebp
call fcn.004e5970
mov eax, dword [esp + 0x18]
inc edi
add esi, 0x10
cmp edi, 5
jl 0x4e592c
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x168
ret