Function at 0x411fe0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a055e
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4c9860]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x7c], ebx
call fcn.0043ad40
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], ebx
je 0x41224b
cmp dword [ebp - 0x18], 8
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call edi
cmp eax, 1
sete al
test al, al
je 0x41224b
lea ecx, [ebp - 0x88]
call fcn.00442630
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x88]
cmp esi, dword [ebp - 0x84]
je 0x4121db
mov byte [ebp - 0x76], bl
jmp 0x412080
push dword [ebp - 0x8c]
mov edx, esi
lea ecx, [ebp - 0x44]
call fcn.00421140
add esp, 4
mov byte [ebp - 4], 2
or ebx, 1
cmp dword [eax + 0x10], 0
mov dword [ebp - 0x7c], ebx
je 0x4120b8
cmp dword [eax + 0x14], 8
jb 0x4120ab
mov eax, dword [eax]
push eax
call edi
cmp eax, 1
sete al
test al, al
jne 0x412112
push str._staged
mov edx, esi
lea ecx, [ebp - 0x5c]
call fcn.00421050
add esp, 4
push dword [ebp - 0x8c]
mov dword [ebp - 4], 3
or ebx, 2
mov edx, eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x7c], ebx
call fcn.00403c70
add esp, 4
mov dword [ebp - 4], 4
or ebx, 4
cmp dword [eax + 0x10], 0
mov dword [ebp - 0x7c], ebx
je 0x412118
cmp dword [eax + 0x14], 8
jb 0x412105
mov eax, dword [eax]
push eax
call edi
cmp eax, 1
sete al
test al, al
je 0x412118
mov byte [ebp - 0x75], 1
jmp 0x41211c
mov byte [ebp - 0x75], 0
mov dword [ebp - 4], 3
test bl, 4
je 0x412153
and ebx, 0xfffffffb
cmp dword [ebp - 0x60], 8
mov dword [ebp - 0x7c], ebx
jb 0x41213f
push dword [ebp - 0x74]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
mov dword [ebp - 4], 2
test bl, 2
je 0x41218a
and ebx, 0xfffffffd
cmp dword [ebp - 0x48], 8
mov dword [ebp - 0x7c], ebx
jb 0x412176
push dword [ebp - 0x5c]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
mov dword [ebp - 4], 1
test bl, 1
je 0x4121c1
and ebx, 0xfffffffe
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x7c], ebx
jb 0x4121ad
push dword [ebp - 0x44]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
cmp byte [ebp - 0x75], 0
jne 0x4121db
add esi, 0x18
cmp esi, dword [ebp - 0x84]
jne 0x412080
mov bl, byte [ebp - 0x76]
jmp 0x4121dd
mov bl, 1
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x88]
test esi, esi
je 0x41224d
mov edi, dword [ebp - 0x84]
cmp esi, edi
je 0x412225
cmp dword [esi + 0x14], 8
jb 0x412205
push dword [esi]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x4121f5
mov esi, dword [ebp - 0x88]
push esi
call fcn.0047cf40
add esp, 4
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
jmp 0x41224d
mov bl, 1
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x412265
push dword [ebp - 0x2c]
call fcn.0047cf40
add esp, 4
xor eax, eax
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047cf45
mov esp, ebp
pop ebp
ret 4