Function at 0x459670
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4d85a6
mov eax, dword fs:[0]
push eax
mov eax, 0x1038
call fcn.004c4260
mov eax, dword [0x513330]
xor eax, esp
mov dword [esp + 0x1034], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x104c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x105c]
xor ebx, ebx
mov dword [esp + 0x1054], ebx
mov dword [esp + 0x34], ebx
mov eax, dword [0x51856c]
mov edx, dword [eax + 0xc]
mov edi, ecx
mov ecx, 0x51856c
mov dword [esp + 0x24], edi
mov dword [esp + 0x3c], ebp
call edx
add eax, 0x10
mov dword [ebp], eax
push 0x800
lea ecx, [esp + 0x46]
mov dword [esp + 0x1058], ebx
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x40], 1
mov word [esp + 0x4c], ax
call fcn.004ab3f0
lea edx, [esp + 0x20]
push edx
call fcn.0046b420
mov eax, dword [eax]
add esp, 0x10
push 0x400
lea ecx, [esp + 0x44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x459748
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x40]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x459750
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x44]
push ecx
push ebp
call fcn.0040e720
push 0xd
push str.manual.bat__
push ebp
call fcn.0040e720
lea eax, [esp + 0x40]
lea ecx, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x459780
sub eax, ecx
sar eax, 1
push eax
lea edx, [esp + 0x44]
push edx
push ebp
call fcn.0040e720
push 1
push 0x4efc7c
push ebp
call fcn.0040e720
mov eax, dword [edi + 0xc4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push ebp
call fcn.0040e720
push 1
push 0x4eceb4
push ebp
call fcn.0040e720
push str.__y__i
push 0x4f1944
push ebp
call fcn.00451ab0
lea esi, [esp + 0x14]
mov eax, edi
call fcn.00474c60
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
jge 0x4597f1
or eax, 0xffffffff
jmp 0x45980c
push 0x4e9034
push eax
call fcn.004a59da
add esp, 8
cmp eax, ebx
jne 0x459808
or eax, 0xffffffff
jmp 0x45980c
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
mov eax, dword [esp + 0x14]
setne byte [esp + 0x1f]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459834
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1f], bl
je 0x459c3e
push 0x800
lea edx, [esp + 0x84a]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x850], cx
call fcn.004ab3f0
add esp, 0xc
lea esi, [esp + 0x14]
mov eax, edi
call fcn.00474c60
mov eax, dword [eax]
push 0x400
lea ecx, [esp + 0x848]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45989f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x844]
push ecx
push 0x4f0420
push ebp
call fcn.00451ab0
mov eax, dword [ebp]
cmp dword [eax - 0xc], ebx
jl 0x459cd4
push 0x4f1950
push eax
call fcn.004a59da
add esp, 8
cmp eax, ebx
je 0x459cd4
sub eax, dword [ebp]
sar eax, 1
cmp eax, 0xffffffff
je 0x459cd4
push 0x4e9034
push 0x4f1958
lea edx, [esp + 0x30]
push ebp
push edx
xor bl, bl
call fcn.00478330
add esp, 0x10
mov dword [esp + 0x1054], 1
mov eax, dword [esp + 0x28]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x459967
push 0x4e7868
push 0x4f1958
lea ecx, [esp + 0x20]
push ebp
push ecx
call fcn.00478330
add esp, 0x10
lea edi, [esp + 0x28]
mov byte [esp + 0x1054], 2
call fcn.004082a0
mov byte [esp + 0x1054], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x459963
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x24]
push 0x4e7868
push 0x4eceb4
lea ecx, [esp + 0x30]
push ecx
call fcn.00451ab0
lea esi, [esp + 0x38]
mov eax, edi
call fcn.00474c60
mov byte [esp + 0x1054], 3
mov eax, dword [eax]
lea edx, [esp + 0x14]
push edx
mov ecx, eax
call fcn.00405a00
mov byte [esp + 0x1054], 5
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4599c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x14]
call fcn.0043a0e0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.00408230
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
push 0x5c
mov bl, 6
push esi
mov byte [esp + 0x105c], bl
call fcn.004a651b
add esp, 8
test eax, eax
je 0x459a4a
sub eax, esi
sar eax, 1
js 0x459a4a
lea ecx, [eax + 1]
lea esi, [esp + 0x20]
lea edx, [esp + 0x18]
call fcn.0040b850
lea edi, [esp + 0x18]
mov byte [esp + 0x1054], 7
call fcn.004082a0
mov byte [esp + 0x1054], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459a46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x24]
push 1
push 0x4e9038
lea ecx, [esp + 0x20]
push ecx
call fcn.0040e720
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.0040e720
add edi, 0xb8
lea eax, [esp + 0x24]
push edi
push eax
mov ebx, 0x4efc7c
call fcn.00439b90
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ebx, eax
mov byte [esp + 0x1064], 8
call fcn.00439ad0
add esp, 0x10
lea edi, [esp + 0x18]
mov byte [esp + 0x1054], 9
call fcn.004082a0
mov byte [esp + 0x1054], 8
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459ad9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1054], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459b01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.00405a00
mov bl, 0xa
mov byte [esp + 0x1054], bl
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x459b4b
push eax
push 0x80
push 2
push eax
push 3
push 0x1f01ff
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x459b4b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2c]
push 0x400
lea eax, [esp + 0x848]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x848]
call fcn.00405a00
lea esi, [esp + 0x30]
mov byte [esp + 0x1054], 0xb
call fcn.0043a0e0
mov eax, dword [esp + 0x30]
push eax
push 0x4f1950
push ebp
call fcn.00451ab0
mov byte [esp + 0x1054], bl
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459bbc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1054], 6
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459be4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x1054], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459c08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1054], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459c30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1054], 0
mov eax, dword [esp + 0x28]
jmp 0x459cb8
lea esi, [esp + 0x20]
mov eax, edi
call fcn.00474c60
mov dword [esp + 0x1054], 0xc
mov eax, dword [eax]
push eax
push 0x4f0420
push ebp
call fcn.00451ab0
mov byte [esp + 0x1054], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459c89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x20]
mov eax, edi
call fcn.00474c60
mov dword [esp + 0x1054], 0xd
mov eax, dword [eax]
push eax
push 0x4f1950
push ebp
call fcn.00451ab0
mov byte [esp + 0x1054], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459cd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x104c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1034]
xor ecx, esp
call fcn.004a52a5
add esp, 0x1044
ret 4