Function at 0x469c20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c581
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 0x469c6b
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46a245
cmp dword [edi + 0x10], 0
lea eax, [edi + 0x10]
mov dword [ebp - 0x184], eax
je 0x46a245
push 0xff
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.0051e890
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x469cab
mov esi, dword [esi]
push 0xff
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.0050ffc0
add esp, 0xc
cmp eax, 1
jne 0x46a245
push 0xfde9
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.00489010
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 0x469f0c
mov edi, dword [ebp - 0x128]
xor esi, esi
movzx eax, word [eax]
push eax
call fcn.00530a91
add esp, 4
movzx ecx, ax
mov dword [ebp - 0x168], ecx
cmp esi, ebx
jae 0x469dbd
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 0x469ee9
mov ecx, esi
mov eax, SysReAllocString
sub eax, ecx
mov dword [ebp - 0x164], ecx
cmp eax, 1
jb 0x46a267
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 0x469dfa
mov ebx, SysReAllocString
jmp 0x469e18
mov ecx, esi
mov eax, SysReAllocString
shr ecx, 1
sub eax, ecx
cmp esi, eax
jbe 0x469e10
mov ebx, SysReAllocString
jmp 0x469e18
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.0041c650
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 0x469eb1
add esi, esi
push esi
push edi
push eax
call fcn.0051f2c0
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 0x469e9f
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46a26c
push ecx
push edi
call fcn.004747df
mov edi, dword [ebp - 0x16c]
add esp, 8
jmp 0x469edd
add esi, esi
lea ecx, [ebp - 0x128]
push esi
push ecx
push eax
call fcn.0051f2c0
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 0x469d61
jmp 0x469f18
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 0x469f5c
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 0x46a112
nop dword [eax + eax]
movzx eax, word [ecx]
push eax
call fcn.00530a91
add esp, 4
movzx ecx, ax
mov dword [ebp - 0x180], ecx
cmp esi, edi
jae 0x469fd6
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 0x46a0f7
mov ecx, esi
mov eax, SysReAllocString
sub eax, ecx
mov dword [ebp - 0x17c], ecx
cmp eax, 1
jb 0x46a267
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 0x46a013
mov edi, SysReAllocString
jmp 0x46a031
mov ecx, edx
mov eax, SysReAllocString
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x46a029
mov edi, SysReAllocString
jmp 0x46a031
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x140]
call fcn.0041c650
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 0x46a0c2
push ebx
push eax
call fcn.0051f2c0
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 0x46a0b0
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46a26c
push ecx
push ebx
call fcn.004747df
mov ebx, dword [ebp - 0x160]
add esp, 8
jmp 0x46a0eb
lea ecx, [ebp - 0x140]
push ecx
push eax
call fcn.0051f2c0
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 0x469f80
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 0x46a19f
test edx, edx
je 0x46a18f
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 0x46a19f
mov eax, dword [ebp - 0x160]
add eax, 2
mov dword [ebp - 0x160], eax
sub edx, 1
jne 0x46a160
cmp dword [ebp - 0x170], 0
je 0x46a19f
mov byte [ebp - 0x159], 1
cmp edi, 8
jb 0x46a1d9
lea edi, [edi*2 + 2]
mov eax, ebx
cmp edi, 0x1000
jb 0x46a1c9
mov ebx, dword [ebx - 4]
add edi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46a26c
push edi
push ebx
call fcn.004747df
mov ecx, dword [ebp - 0x168]
add esp, 8
cmp esi, 8
jb 0x46a209
lea esi, [esi*2 + 2]
mov eax, ecx
cmp esi, 0x1000
jb 0x46a1ff
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46a271
push esi
push ecx
call fcn.004747df
add esp, 8
mov esi, dword [ebp - 0x144]
cmp esi, 8
jb 0x46a245
mov edx, dword [ebp - 0x158]
lea esi, [esi*2 + 2]
mov eax, edx
cmp esi, 0x1000
jb 0x46a23b
mov edx, dword [edx - 4]
add esi, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46a276
push esi
push edx
call fcn.004747df
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.0047467d
mov esp, ebp
pop ebp
ret
call fcn.0041c5c0
call fcn.00522e79
call fcn.00522e79
call fcn.00522e79
int3