Function at 0x4027c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2115
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x4c4024]
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
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x158]
call fcn.0041ea60
cmp dword [ebp - 0x144], 0x10
lea eax, [ebp - 0x158]
cmovae eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ecx, dword [ebp - 0x144]
test eax, eax
je 0x4029a0
cmp ecx, 0x10
jb 0x402861
mov edx, dword [ebp - 0x158]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402857
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a66
push ecx
push edx
call fcn.0042cca6
add esp, 8
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
sub esp, 8
call fcn.00427130
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x402999
cmp dword [ebp + 0x34], 0x10
lea ecx, [ebp + 0x20]
cmovae ecx, dword [ebp + 0x20]
cmp dword [ebx], 1
je 0x402898
mov eax, 0x80000
jmp 0x4028e5
mov esi, dword [ebx + 4]
lea edi, [esi + 0x140]
mov edx, edi
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4028a5
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4028b7
sub ecx, edx
mov al, byte [ecx + esi + 0x13f]
cmp al, 0x5c
je 0x4028e3
cmp al, 0x2f
je 0x4028e3
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4028d0
mov ax, word [0x4ba754]
mov word [edi], ax
xor eax, eax
xor edi, edi
mov dword [0x4c6620], eax
cmp dword [ebx], 1
mov dword [ebp - 0x140], edi
mov byte [ebp - 0x13c], 0
mov dword [ebp - 0x18], edi
je 0x402908
mov eax, 0x80000
jmp 0x40291f
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x140]
push eax
push 0xffffffffffffffff
call fcn.004264b0
mov edi, dword [ebp - 0x140]
xor esi, esi
mov dword [0x4c6620], eax
test edi, edi
jle 0x402992
nop word [eax + eax]
cmp dword [ebx], 1
mov dword [ebp - 0x140], 0
mov byte [ebp - 0x13c], 0
mov dword [ebp - 0x18], 0
je 0x402954
mov eax, 0x80000
jmp 0x402964
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x140]
push eax
push esi
call fcn.004264b0
cmp dword [ebx], 1
mov dword [0x4c6620], eax
je 0x402975
mov eax, 0x80000
jmp 0x402988
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x13c]
sub esp, 8
push eax
push esi
call fcn.00426d50
inc esi
mov dword [0x4c6620], eax
cmp esi, edi
jl 0x402930
mov ecx, ebx
call fcn.00427310
mov esi, 1
jmp 0x4029d6
cmp ecx, 0x10
jb 0x4029d4
mov edx, dword [ebp - 0x158]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4029ca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a66
push ecx
push edx
call fcn.0042cca6
add esp, 8
xor esi, esi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x402a06
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4029fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a6b
push ecx
push edx
call fcn.0042cca6
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x402a48
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402a3e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a6b
push ecx
push edx
call fcn.0042cca6
add esp, 8
mov eax, esi
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.0042ca6a
mov esp, ebp
pop ebp
ret
call fcn.0047e707
call fcn.0047e707
int3