Function at 0x4027b0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51a851
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfb0
push ebx
push esi
push edi
push 0x104
lea eax, [esp + 0xbac]
mov ebx, ecx
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
lea edi, [esp + 0xba8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4027f5
mov ecx, dword [0x52af68]
mov edx, dword [0x52af6c]
mov eax, dword [0x52af70]
mov dword [edi], ecx
mov cx, word [0x52af74]
mov dword [edi + 4], edx
lea edx, [esp + 0xba8]
mov dword [edi + 8], eax
push edx
mov word [edi + 0xc], cx
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40290e
lea eax, [esp + 0xba8]
push 0x52af64
push eax
call fcn.004a25a0
mov esi, eax
push esi
push 1
lea ecx, [esp + 0x28]
push 0x40
push ecx
call fcn.004a24f8
push esi
call fcn.004a23be
mov al, byte [esp + 0x34]
add esp, 0x1c
cmp al, 0xb2
jne 0x40290e
mov al, byte [esp + 0x1a]
mov dl, 0xc7
cmp al, dl
jne 0x40290e
cmp byte [esp + 0x1c], 0x92
jne 0x40290e
cmp byte [esp + 0x1e], 0xc6
jne 0x40290e
cmp byte [esp + 0x20], 0xaf
jne 0x40290e
cmp byte [esp + 0x22], 0x82
jne 0x40290e
mov al, byte [esp + 0x24]
mov cl, 0x84
cmp al, cl
jne 0x40290e
cmp byte [esp + 0x26], 0xa0
jne 0x40290e
cmp byte [esp + 0x28], 0xb1
jne 0x40290e
cmp byte [esp + 0x2a], 0x7e
jne 0x40290e
mov al, 0x83
cmp byte [esp + 0x2c], al
jne 0x40290e
cmp byte [esp + 0x2e], cl
jne 0x40290e
cmp byte [esp + 0x30], 0xb9
jne 0x40290e
cmp byte [esp + 0x32], al
jne 0x40290e
cmp byte [esp + 0x34], 0x9e
jne 0x40290e
cmp byte [esp + 0x36], dl
jne 0x40290e
push 0
push 0x5dc
call dword [sym.imp.kernel32.dll_SleepEx]
mov eax, 1
mov ecx, dword [esp + 0xfbc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004e9960
test eax, eax
jne 0x402c85
push 0x52ae60
push 0x52ad58
push eax
call fcn.004e9b40
test eax, eax
jl 0x402a6e
push 0x52ac50
push 0x52ab48
push 1
call fcn.004e9b40
test eax, eax
jl 0x402a6e
lea edx, [esp + 0x14]
push edx
push 0x1a
push 0
call dword [sym.imp.shell32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x402a6e
mov ecx, 0x82
lea edi, [esp + 0x158]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x158]
push eax
push ecx
call dword [sym.imp.shell32.dll_SHGetPathFromIDList]
lea edi, [esp + 0x158]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402990
mov edx, dword [0x52ab34]
mov eax, dword [0x52ab38]
mov ecx, dword [0x52ab3c]
mov dword [edi], edx
mov edx, dword [0x52ab40]
mov dword [edi + 4], eax
mov ax, word [0x52ab44]
mov dword [edi + 8], ecx
lea ecx, [esp + 0x158]
mov dword [edi + 0xc], edx
push ecx
mov word [edi + 0x10], ax
call fcn.00472430
add esp, 4
xor eax, eax
jmp 0x4029e0
mov cl, byte [esp + eax + 0x158]
mov byte [esp + eax + 0xdb0], cl
inc eax
test cl, cl
jne 0x4029e0
lea edi, [esp + 0xdb0]
dec edi
jmp 0x402a00
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402a00
mov edx, dword [0x52ab24]
mov eax, dword [0x52ab28]
mov ecx, dword [0x52ab2c]
mov dword [edi], edx
mov dl, byte [0x52ab30]
mov dword [edi + 4], eax
lea eax, [esp + 0xdb0]
mov dword [edi + 8], ecx
push eax
mov byte [edi + 0xc], dl
call fcn.004e9c10
test eax, eax
jl 0x402a6e
push 0
call fcn.004ea080
test eax, eax
jne 0x402a67
call fcn.004e9ad0
mov eax, 1
mov ecx, dword [esp + 0xfbc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
test eax, eax
jne 0x402a78
call fcn.004e9ad0
jmp 0x402c85
mov esi, dword [sym.imp.winmm.dll_timeGetTime]
call esi
sub eax, dword [ebx + 0xa4]
cmp eax, 0x3e8
jae 0x402aa8
mov edi, dword [sym.imp.kernel32.dll_SleepEx]
push 0
push 0xa
call edi
call esi
sub eax, dword [ebx + 0xa4]
cmp eax, 0x3e8
jb 0x402a93
xor ebx, ebx
push ebx
lea ecx, [esp + 0x364]
call fcn.00489970
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
push 0x100
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0xfcc], ebx
call fcn.004ea180
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0xba0]
call fcn.00402680
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
push 0x100
lea eax, [esp + 0x5c]
push eax
push ebx
call fcn.004ea200
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0xb70]
call fcn.00402680
push 0x100
lea edx, [esp + 0x5c]
push edx
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x60]
push 1
rep stosd dword es:[edi], eax
call fcn.004ea200
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0xb74]
call fcn.00402680
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
push 0x100
lea ecx, [esp + 0x5c]
push ecx
push 2
call fcn.004ea200
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0xb78]
call fcn.00402680
mov edi, dword [sym.imp.user32.dll_UpdateWindow]
lea ecx, [ecx]
lea ecx, [esp + 0x360]
call fcn.004fb14d
cmp eax, 1
jne 0x402c6e
call fcn.004012a0
mov eax, dword [eax + 0x1c]
push eax
call edi
push 2
call fcn.004e9c90
push 1
call fcn.004e9cd0
mov ecx, dword [esp + 0xb9c]
push ecx
call fcn.004e9c50
mov edx, dword [esp + 0xb6c]
push edx
push 0
call fcn.004e9d10
mov eax, dword [esp + 0xb70]
push eax
push 1
call fcn.004e9d10
mov ecx, dword [esp + 0xb74]
push ecx
push 2
call fcn.004e9d10
mov edx, dword [esp + 0xba0]
mov eax, dword [esp + 0xb94]
push edx
push eax
call fcn.004e9d50
mov ecx, dword [esp + 0xb90]
push ecx
call fcn.004e9d90
push 1
call fcn.004e9dd0
push 0x50
push 0x52ab10
push 0x52aaf8
push 0
call fcn.004e9e10
lea ecx, [esp + 0x10]
call fcn.004012c0
push 0
call fcn.004e9e50
mov esi, eax
call fcn.005157bf
mov ecx, dword [eax + 4]
call fcn.004fc090
cmp esi, 0xfffffffa
jne 0x402c50
push 0xffffffffffffffff
push 0
push 0x72
jmp 0x402c5a
test esi, esi
jge 0x402c9e
push 0xffffffffffffffff
push 0
push 0x71
call fcn.005084e6
inc ebx
cmp ebx, 3
jl 0x402b80
call fcn.004e9ad0
lea ecx, [esp + 0x360]
mov dword [esp + 0xfc4], 0xffffffff
call fcn.00401bf0
xor eax, eax
mov ecx, dword [esp + 0xfbc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
call fcn.004ea080
mov esi, eax
test esi, esi
je 0x402cbd
cmp esi, 4
je 0x402cbd
push 0xffffffffffffffff
push 0
push 0x72
call fcn.005084e6
jmp 0x402c69
mov edi, dword [esp + 0x10]
push 0
mov ecx, edi
call fcn.005082c6
test esi, esi
lea ecx, [esp + 0x10]
jne 0x402cf4
push 0x73
call fcn.00402700
mov edx, dword [edi + 0x4c]
mov eax, dword [eax]
push esi
push edx
push eax
mov byte [esp + 0xfd0], 1
call fcn.004012a0
mov eax, dword [eax + 0x1c]
push eax
jmp 0x402d15
push 0x74
call fcn.00402700
mov ecx, dword [edi + 0x4c]
mov eax, dword [eax]
push 0
push ecx
push eax
mov byte [esp + 0xfd0], 2
call fcn.004012a0
mov edx, dword [eax + 0x1c]
push edx
call dword [sym.imp.user32.dll_MessageBoxA]
lea ecx, [esp + 0x10]
mov byte [esp + 0xfc4], 0
call fcn.00401a60
push 1
mov ecx, edi
call fcn.005082c6
call fcn.004e9ad0
lea ecx, [esp + 0x360]
mov dword [esp + 0xfc4], 0xffffffff
call fcn.00401bf0
mov ecx, dword [esp + 0xfbc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4