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

Disassembly:
push 0xffffffffffffffff
push 0x7bff26
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.00404e60
or ebx, 0xffffffff
mov edi, 0x82d6c8
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x82d6c8
lea ecx, [esp + 0x24]
call fcn.00404eb0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x174], 0
push ecx
mov ecx, ebp
call fcn.00403250
add eax, 0xd0
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.00404e60
mov ecx, dword [0x9ea1d4]
mov eax, dword [ecx + 0x4e4]
dec eax
je 0x513fad
dec eax
jne 0x5144f7
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0xf0]
mov byte [esp + 0xf0], dl
call fcn.00404e60
mov edi, 0x82d6b0
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x82d6b0
lea ecx, [esp + 0xf4]
call fcn.00404eb0
lea eax, [esp + 0xec]
mov ecx, ebp
push eax
mov dword [esp + 0x178], 1
call fcn.00403250
push 1
lea ecx, [esp + 0xf0]
mov esi, eax
mov dword [esp + 0x178], ebx
call fcn.00404e60
test esi, esi
je 0x513cae
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x160], cl
lea ecx, [esp + 0x160]
call fcn.00404e60
mov edi, 0x82d6b0
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x82d6b0
lea ecx, [esp + 0x164]
call fcn.00404eb0
lea edx, [esp + 0x15c]
mov ecx, ebp
push edx
mov dword [esp + 0x178], 2
call fcn.00403250
add eax, 0xd0
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.00404e60
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x110]
mov byte [esp + 0x110], al
call fcn.00404e60
mov edi, 0x82d648
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x82d648
lea ecx, [esp + 0x114]
call fcn.00404eb0
lea ecx, [esp + 0x10c]
mov dword [esp + 0x174], 3
push ecx
mov ecx, ebp
call fcn.00403250
push 1
lea ecx, [esp + 0x110]
mov esi, eax
mov dword [esp + 0x178], ebx
call fcn.00404e60
test esi, esi
je 0x513da8
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x150]
mov byte [esp + 0x150], dl
call fcn.00404e60
mov edi, 0x82d648
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x82d648
lea ecx, [esp + 0x154]
call fcn.00404eb0
lea eax, [esp + 0x14c]
mov ecx, ebp
push eax
mov dword [esp + 0x178], 4
call fcn.00403250
add eax, 0xd0
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.00404e60
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x130]
mov byte [esp + 0x130], al
call fcn.00404e60
mov edi, 0x82d5e0
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x82d5e0
lea ecx, [esp + 0x134]
call fcn.00404eb0
lea ecx, [esp + 0x12c]
mov dword [esp + 0x174], 5
push ecx
mov ecx, ebp
call fcn.00403250
push 1
lea ecx, [esp + 0x130]
mov esi, eax
mov dword [esp + 0x178], ebx
call fcn.00404e60
test esi, esi
je 0x513ea2
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x100]
mov byte [esp + 0x100], dl
call fcn.00404e60
mov edi, 0x82d5e0
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x82d5e0
lea ecx, [esp + 0x104]
call fcn.00404eb0
lea eax, [esp + 0xfc]
mov ecx, ebp
push eax
mov dword [esp + 0x178], 6
call fcn.00403250
add eax, 0xd0
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.00404e60
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x120]
mov byte [esp + 0x120], al
call fcn.00404e60
mov edi, 0x82d584
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x82d584
lea ecx, [esp + 0x124]
call fcn.00404eb0
lea ecx, [esp + 0x11c]
mov dword [esp + 0x174], 7
push ecx
mov ecx, ebp
call fcn.00403250
push 1
lea ecx, [esp + 0x120]
mov esi, eax
mov dword [esp + 0x178], ebx
call fcn.00404e60
test esi, esi
je 0x5144f7
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x140]
mov byte [esp + 0x140], dl
call fcn.00404e60
mov edi, 0x82d584
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x82d584
lea ecx, [esp + 0x144]
call fcn.00404eb0
lea eax, [esp + 0x13c]
mov ecx, ebp
push eax
mov dword [esp + 0x178], 8
call fcn.00403250
add eax, 0xd0
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.00404e60
jmp 0x5144f7
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0xe0]
mov byte [esp + 0xe0], al
call fcn.00404e60
mov edi, 0x82d67c
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.00401b40
test al, al
je 0x514018
mov edi, dword [esp + 0xe0]
mov ecx, esi
mov edx, ecx
mov esi, 0x82d67c
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.00405070
lea ecx, [esp + 0xdc]
mov dword [esp + 0x174], 9
push ecx
mov ecx, ebp
call fcn.00403250
push 1
lea ecx, [esp + 0xe0]
mov esi, eax
mov dword [esp + 0x178], ebx
call fcn.00404e60
test esi, esi
je 0x51410b
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0xb0]
mov byte [esp + 0xb0], dl
call fcn.00404e60
mov edi, 0x82d67c
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.00401b40
test al, al
je 0x5140bc
mov edi, dword [esp + 0xb0]
mov ecx, esi
mov eax, ecx
mov esi, 0x82d67c
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.00405070
lea edx, [esp + 0xac]
mov ecx, ebp
push edx
mov dword [esp + 0x178], 0xa
call fcn.00403250
add eax, 0xd0
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.00404e60
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0xc0]
mov byte [esp + 0xc0], al
call fcn.00404e60
mov edi, 0x82d614
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.00401b40
test al, al
je 0x514176
mov edi, dword [esp + 0xc0]
mov ecx, esi
mov edx, ecx
mov esi, 0x82d614
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.00405070
lea ecx, [esp + 0xbc]
mov dword [esp + 0x174], 0xb
push ecx
mov ecx, ebp
call fcn.00403250
push 1
lea ecx, [esp + 0xc0]
mov esi, eax
mov dword [esp + 0x178], ebx
call fcn.00404e60
test esi, esi
je 0x514269
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x90]
mov byte [esp + 0x90], dl
call fcn.00404e60
mov edi, 0x82d614
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.00401b40
test al, al
je 0x51421a
mov edi, dword [esp + 0x90]
mov ecx, esi
mov eax, ecx
mov esi, 0x82d614
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.00405070
lea edx, [esp + 0x8c]
mov ecx, ebp
push edx
mov dword [esp + 0x178], 0xc
call fcn.00403250
add eax, 0xd0
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.00404e60
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0xd0]
mov byte [esp + 0xd0], al
call fcn.00404e60
mov edi, 0x82d5ac
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.00401b40
test al, al
je 0x5142d4
mov edi, dword [esp + 0xd0]
mov ecx, esi
mov edx, ecx
mov esi, 0x82d5ac
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.00405070
lea ecx, [esp + 0xcc]
mov dword [esp + 0x174], 0xd
push ecx
mov ecx, ebp
call fcn.00403250
push 1
lea ecx, [esp + 0xd0]
mov esi, eax
mov dword [esp + 0x178], ebx
call fcn.00404e60
test esi, esi
je 0x5143c7
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0xa0]
mov byte [esp + 0xa0], dl
call fcn.00404e60
mov edi, 0x82d5ac
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.00401b40
test al, al
je 0x514378
mov edi, dword [esp + 0xa0]
mov ecx, esi
mov eax, ecx
mov esi, 0x82d5ac
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.00405070
lea edx, [esp + 0x9c]
mov ecx, ebp
push edx
mov dword [esp + 0x178], 0xe
call fcn.00403250
add eax, 0xd0
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.00404e60
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], al
call fcn.00404e60
mov edi, 0x82d584
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.00401b40
test al, al
je 0x514425
mov edi, dword [esp + 0x30]
mov ecx, esi
mov edx, ecx
mov esi, 0x82d584
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.00403250
push 1
lea ecx, [esp + 0x30]
mov edi, eax
mov dword [esp + 0x178], ebx
call fcn.00404e60
xor esi, esi
cmp edi, esi
je 0x5144f7
mov al, byte [esp + 0x13]
mov edi, 0x82d584
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 0x82d584
lea ecx, [esp + 0x24]
mov dword [esp + 0x30], esi
call fcn.00404eb0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x174], 0x10
push ecx
mov ecx, ebp
call fcn.00403250
add eax, 0xd0
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 0x5144f7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x5144ee
cmp al, 0xff
je 0x5144ee
dec al
mov byte [ecx], al
jmp 0x5144f7
push ecx
call fcn.007a02e0
add esp, 4
mov eax, dword [0x9eba50]
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 0x51452b
cmp dword [esi], ebx
jle 0x51452b
cmp dword [esi - 4], eax
jge 0x51452b
cmp dword [esi + 4], eax
jle 0x51452b
push edi
mov ecx, ebp
call fcn.00514550
mov eax, dword [esp + 0x18]
inc edi
add esi, 0x10
cmp edi, 5
jl 0x51450c
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x168
ret