Function at 0x467cf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56bf01
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x5c524c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x178], edi
mov byte [ebp - 0x159], 0
cmp dword [esi + 0x14], 8
jb 0x467d3b
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x468315
cmp dword [edi + 0x10], 0
lea eax, [edi + 0x10]
mov dword [ebp - 0x184], eax
je 0x468315
push 0xff
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.0051e3d0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x467d7b
mov esi, dword [esi]
push 0xff
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.0050faf0
add esp, 0xc
cmp eax, 1
jne 0x468315
push 0xfde9
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.00488ba0
add esp, 0xc
xor eax, eax
mov dword [ebp - 4], 0
mov ebx, 7
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x114], ebx
mov word [ebp - 0x128], ax
cmp dword [ebp - 0x144], 8
lea eax, [ebp - 0x158]
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x158]
cmovae ecx, dword [ebp - 0x158]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x148]
lea ecx, [ecx + eax*2]
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x17c], ecx
cmp eax, ecx
je 0x467fdc
mov edi, dword [ebp - 0x128]
xor esi, esi
movzx eax, word [eax]
push eax
call fcn.005305d1
add esp, 4
movzx ecx, ax
mov dword [ebp - 0x168], ecx
cmp esi, ebx
jae 0x467e8d
lea eax, [esi + 1]
cmp ebx, 8
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x128]
cmovae eax, edi
mov word [eax + esi*2], cx
xor ecx, ecx
mov word [eax + esi*2 + 2], cx
mov ebx, dword [ebp - 0x114]
mov esi, dword [ebp - 0x118]
mov edi, dword [ebp - 0x128]
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x170], esi
jmp 0x467fb9
mov ecx, esi
mov eax, SysReAllocString
sub eax, ecx
mov dword [ebp - 0x164], ecx
cmp eax, 1
jb 0x468337
lea eax, [ecx + 1]
mov esi, ebx
mov ebx, eax
mov dword [ebp - 0x170], eax
or ebx, 7
mov dword [ebp - 0x180], esi
cmp ebx, 0x7ffffffe
jbe 0x467eca
mov ebx, SysReAllocString
jmp 0x467ee8
mov ecx, esi
mov eax, SysReAllocString
shr ecx, 1
sub eax, ecx
cmp esi, eax
jbe 0x467ee0
mov ebx, SysReAllocString
jmp 0x467ee8
lea eax, [ecx + esi]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
mov dword [ebp - 0x174], ebx
push eax
lea ecx, [ebp - 0x128]
call fcn.0041c530
mov ecx, dword [ebp - 0x170]
cmp esi, 8
mov esi, dword [ebp - 0x164]
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x114], ebx
jb 0x467f81
add esi, esi
push esi
push edi
push eax
call fcn.0051ee00
mov eax, dword [ebp - 0x16c]
add esp, 0xc
mov ecx, dword [ebp - 0x168]
mov word [esi + eax], cx
xor ecx, ecx
mov word [esi + eax + 2], cx
mov eax, dword [ebp - 0x180]
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x467f6f
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46833c
push ecx
push edi
call fcn.004727ef
mov edi, dword [ebp - 0x16c]
add esp, 8
jmp 0x467fad
add esi, esi
lea ecx, [ebp - 0x128]
push esi
push ecx
push eax
call fcn.0051ee00
mov eax, dword [ebp - 0x16c]
add esp, 0xc
mov ecx, dword [ebp - 0x168]
mov edi, eax
mov word [esi + eax], cx
xor ecx, ecx
mov word [esi + eax + 2], cx
mov esi, dword [ebp - 0x170]
mov dword [ebp - 0x128], edi
mov eax, dword [ebp - 0x160]
add eax, 2
mov dword [ebp - 0x168], edi
mov dword [ebp - 0x160], eax
cmp eax, dword [ebp - 0x17c]
jne 0x467e31
jmp 0x467fe8
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x168], eax
xor esi, esi
mov edi, 7
xor eax, eax
mov dword [ebp - 0x16c], esi
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x12c], edi
mov word [ebp - 0x140], ax
mov edx, dword [ebp - 0x178]
mov ecx, edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x164], edx
cmp dword [edx + 0x14], 8
jb 0x46802c
mov ecx, dword [edx]
mov edx, ecx
mov dword [ebp - 0x164], ecx
mov eax, dword [ebp - 0x184]
mov ebx, dword [ebp - 0x140]
mov eax, dword [eax]
lea eax, [edx + eax*2]
mov dword [ebp - 0x184], eax
cmp ecx, eax
je 0x4681e2
nop dword [eax + eax]
movzx eax, word [ecx]
push eax
call fcn.005305d1
add esp, 4
movzx ecx, ax
mov dword [ebp - 0x180], ecx
cmp esi, edi
jae 0x4680a6
lea eax, [esi + 1]
cmp edi, 8
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x140]
cmovae eax, ebx
mov word [eax + esi*2], cx
xor ecx, ecx
mov word [eax + esi*2 + 2], cx
mov esi, dword [ebp - 0x130]
mov edi, dword [ebp - 0x12c]
mov ebx, dword [ebp - 0x140]
mov dword [ebp - 0x16c], esi
jmp 0x4681c7
mov ecx, esi
mov eax, SysReAllocString
sub eax, ecx
mov dword [ebp - 0x17c], ecx
cmp eax, 1
jb 0x468337
lea esi, [ecx + 1]
mov edx, edi
mov edi, esi
mov dword [ebp - 0x16c], esi
or edi, 7
mov dword [ebp - 0x178], edx
cmp edi, 0x7ffffffe
jbe 0x4680e3
mov edi, SysReAllocString
jmp 0x468101
mov ecx, edx
mov eax, SysReAllocString
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x4680f9
mov edi, SysReAllocString
jmp 0x468101
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x140]
call fcn.0041c530
mov dword [ebp - 0x130], esi
mov esi, dword [ebp - 0x17c]
add esi, esi
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x178], 8
mov dword [ebp - 0x12c], edi
push esi
jb 0x468192
push ebx
push eax
call fcn.0051ee00
mov eax, dword [ebp - 0x160]
add esp, 0xc
mov ecx, dword [ebp - 0x180]
mov word [esi + eax], cx
xor ecx, ecx
mov word [esi + eax + 2], cx
mov eax, dword [ebp - 0x178]
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x468180
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46833c
push ecx
push ebx
call fcn.004727ef
mov ebx, dword [ebp - 0x160]
add esp, 8
jmp 0x4681bb
lea ecx, [ebp - 0x140]
push ecx
push eax
call fcn.0051ee00
mov eax, dword [ebp - 0x160]
add esp, 0xc
mov ecx, dword [ebp - 0x180]
mov ebx, eax
mov word [esi + eax], cx
xor ecx, ecx
mov word [esi + eax + 2], cx
mov esi, dword [ebp - 0x16c]
mov dword [ebp - 0x140], ebx
mov ecx, dword [ebp - 0x164]
add ecx, 2
mov dword [ebp - 0x164], ecx
cmp ecx, dword [ebp - 0x184]
jne 0x468050
mov esi, dword [ebp - 0x174]
lea eax, [ebp - 0x128]
mov ecx, dword [ebp - 0x168]
lea edx, [ebp - 0x140]
cmp esi, 8
cmovae eax, ecx
cmp edi, 8
mov dword [ebp - 0x160], eax
cmovae edx, ebx
mov dword [ebp - 0x164], edx
mov edx, dword [ebp - 0x16c]
cmp edx, dword [ebp - 0x170]
jne 0x46826f
test edx, edx
je 0x46825f
sub dword [ebp - 0x164], eax
nop word [eax + eax]
mov esi, dword [ebp - 0x164]
mov ax, word [eax + esi]
mov esi, dword [ebp - 0x160]
cmp ax, word [esi]
mov esi, dword [ebp - 0x174]
jne 0x46826f
mov eax, dword [ebp - 0x160]
add eax, 2
mov dword [ebp - 0x160], eax
sub edx, 1
jne 0x468230
cmp dword [ebp - 0x170], 0
je 0x46826f
mov byte [ebp - 0x159], 1
cmp edi, 8
jb 0x4682a9
lea edi, [edi*2 + 2]
mov eax, ebx
cmp edi, 0x1000
jb 0x468299
mov ebx, dword [ebx - 4]
add edi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46833c
push edi
push ebx
call fcn.004727ef
mov ecx, dword [ebp - 0x168]
add esp, 8
cmp esi, 8
jb 0x4682d9
lea esi, [esi*2 + 2]
mov eax, ecx
cmp esi, 0x1000
jb 0x4682cf
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x468341
push esi
push ecx
call fcn.004727ef
add esp, 8
mov esi, dword [ebp - 0x144]
cmp esi, 8
jb 0x468315
mov edx, dword [ebp - 0x158]
lea esi, [esi*2 + 2]
mov eax, edx
cmp esi, 0x1000
jb 0x46830b
mov edx, dword [edx - 4]
add esi, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x468346
push esi
push edx
call fcn.004727ef
add esp, 8
mov al, byte [ebp - 0x159]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047268d
mov esp, ebp
pop ebp
ret
call fcn.0041c4a0
call fcn.005229b9
call fcn.005229b9
call fcn.005229b9
int3