Function at 0x4028c0
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c539e
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x506550]
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 dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor edi, edi
push 0xffffffffffffffff
mov esi, ecx
push edi
push esi
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x2a4], eax
mov dword [ebp - 0x2a8], esi
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x268], edi
mov word [ebp - 0x278], di
call fcn.00401d30
mov dword [ebp - 4], edi
lea edi, [ebp - 0x2a0]
lea ebx, [ebp - 0x27c]
mov dword [ebp - 0x2a0], 0x3f
call fcn.004038b0
cmp eax, 0xffffffff
je 0x40298a
push eax
push 0
lea ecx, [ebp - 0x2c4]
push ecx
mov ecx, ebx
call fcn.00403680
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00401d30
mov byte [ebp - 4], 0
cmp dword [ebp - 0x2ac], 8
jb 0x40298a
mov edx, dword [ebp - 0x2c0]
push edx
call fcn.004b79f4
add esp, 4
lea edi, [ebp - 0x2a0]
lea ebx, [ebp - 0x27c]
mov dword [ebp - 0x2a0], 0x2f
call fcn.004038b0
cmp eax, 0xffffffff
je 0x4029f1
mov esi, dword [esi + 0x14]
add eax, 1
cmp eax, esi
jae 0x4029f1
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x2c4]
push eax
mov ecx, ebx
call fcn.00403680
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00401d30
mov byte [ebp - 4], 0
cmp dword [ebp - 0x2ac], 8
jb 0x4029f1
mov ecx, dword [ebp - 0x2c0]
push ecx
call fcn.004b79f4
add esp, 4
cmp dword [ebp - 0x268], 4
jae 0x402a05
lea edi, [ebp - 0x27c]
call fcn.004035e0
or ebx, 0xffffffff
cmp dword [ebp - 0x268], 0
mov dword [ebp - 0x2a0], ebx
je 0x402b86
mov eax, dword [ebp - 0x2a4]
lea edx, [ebp - 0x27c]
push edx
add eax, 0x24
push eax
lea esi, [ebp - 0x298]
call fcn.00403c50
push str..temp
push eax
lea ecx, [ebp - 0x260]
push ecx
mov byte [ebp - 4], 3
call fcn.00403d00
add esp, 0x14
mov edi, 8
mov byte [ebp - 4], 5
cmp dword [ebp - 0x280], edi
jb 0x402a70
mov edx, dword [ebp - 0x294]
push edx
call fcn.004b79f4
add esp, 4
mov eax, dword [ebp - 0x25c]
xor esi, esi
cmp dword [ebp - 0x248], edi
mov dword [ebp - 0x280], 7
mov dword [ebp - 0x284], esi
mov word [ebp - 0x294], si
jae 0x402a9d
lea eax, [ebp - 0x25c]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
cmp eax, 0xffffffff
je 0x402af1
cmp dword [ebp - 0x248], 8
mov eax, dword [ebp - 0x25c]
jae 0x402ac0
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x248], 8
mov eax, dword [ebp - 0x25c]
jae 0x402adc
lea eax, [ebp - 0x25c]
push eax
call edi
cmp eax, 0xffffffff
je 0x402af1
lea edi, [ebp - 0x260]
call fcn.004035e0
xor esi, esi
cmp dword [ebp - 0x24c], esi
je 0x402b4a
cmp dword [ebp - 0x248], 8
mov eax, dword [ebp - 0x25c]
jae 0x402b0e
lea eax, [ebp - 0x25c]
push esi
push 0x80
push 1
push esi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x2a0], ebx
je 0x402b4a
mov ecx, dword [ebp - 0x2a4]
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x260]
push eax
add ecx, 0x40
call fcn.00401d30
mov byte [ebp - 4], 0
cmp dword [ebp - 0x248], 8
jb 0x402b66
mov ecx, dword [ebp - 0x25c]
push ecx
call fcn.004b79f4
add esp, 4
cmp ebx, 0xffffffff
mov dword [ebp - 0x248], 7
mov dword [ebp - 0x24c], esi
mov word [ebp - 0x25c], si
jne 0x402ed2
push 9
xor edi, edi
push str.Setup.exe
lea ecx, [ebp - 0x298]
mov dword [ebp - 0x280], 7
mov dword [ebp - 0x284], edi
mov word [ebp - 0x294], di
call fcn.00401a60
mov ebx, dword [ebp - 0x2a4]
lea edx, [ebp - 0x298]
push edx
add ebx, 0x24
push ebx
lea esi, [ebp - 0x2c4]
mov byte [ebp - 4], 6
call fcn.00403c50
push str..temp
push eax
lea eax, [ebp - 0x244]
push eax
mov byte [ebp - 4], 7
call fcn.00403d00
add esp, 0x14
mov esi, 8
mov byte [ebp - 4], 9
cmp dword [ebp - 0x2ac], esi
jb 0x402c0a
mov ecx, dword [ebp - 0x2c0]
push ecx
call fcn.004b79f4
add esp, 4
cmp dword [ebp - 0x22c], esi
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x2ac], 7
mov dword [ebp - 0x2b0], edi
mov word [ebp - 0x2c0], di
jae 0x402c35
lea eax, [ebp - 0x240]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
cmp eax, 0xffffffff
je 0x402c89
cmp dword [ebp - 0x22c], 8
mov eax, dword [ebp - 0x240]
jae 0x402c58
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x22c], 8
mov eax, dword [ebp - 0x240]
jae 0x402c74
lea eax, [ebp - 0x240]
push eax
call esi
cmp eax, 0xffffffff
je 0x402c89
lea edi, [ebp - 0x244]
call fcn.004035e0
xor edi, edi
cmp dword [ebp - 0x230], edi
jne 0x402da2
push 0x20a
lea edx, [ebp - 0x226]
push edi
push edx
mov word [ebp - 0x228], di
call fcn.0043b4c0
add esp, 0xc
cmp dword [ebx + 0x18], 8
jb 0x402cbc
mov ebx, dword [ebx + 4]
jmp 0x402cbf
add ebx, 4
lea eax, [ebp - 0x228]
push eax
push 1
push 0x4dfbd8
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp eax, edi
jbe 0x402d4b
lea eax, [ebp - 0x228]
mov word [ebp - 0x1e], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402ce7
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x244]
call fcn.00401a60
push 1
lea ebx, [ebp - 0x244]
call fcn.00403970
cmp eax, 0xffffffff
je 0x402d4b
push eax
push 0
lea edx, [ebp - 0x2e0]
push edx
mov ecx, ebx
call fcn.00403680
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xa
call fcn.00401d30
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 9
call fcn.00401600
cmp dword [ebp - 0x230], 0
lea ecx, [ebp - 0x244]
jne 0x402d6c
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x298]
push eax
call fcn.00401d30
jmp 0x402d78
push 0xa
push 0x4dfbe4
call fcn.00403a10
mov edi, dword [ebp - 0x2a4]
cmp dword [edi + 0x54], 0
je 0x402da8
cmp dword [edi + 0x58], 8
jb 0x402d96
mov eax, dword [edi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x402da8
lea eax, [edi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x402da8
mov edi, dword [ebp - 0x2a4]
mov eax, dword [ebp - 0x240]
mov esi, 8
cmp dword [ebp - 0x22c], esi
jae 0x402dc1
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x22c], esi
mov eax, dword [ebp - 0x240]
jae 0x402ddc
lea eax, [ebp - 0x240]
xor esi, esi
push esi
push 0x80
push 1
push esi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x2a0], ebx
je 0x402e14
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x244]
push ecx
lea ecx, [edi + 0x40]
call fcn.00401d30
cmp dword [ebp - 0x22c], 8
jb 0x402e2c
mov edx, dword [ebp - 0x240]
push edx
call fcn.004b79f4
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x280], 8
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x230], esi
mov word [ebp - 0x240], si
jb 0x402e5f
mov eax, dword [ebp - 0x294]
push eax
call fcn.004b79f4
add esp, 4
cmp ebx, 0xffffffff
mov dword [ebp - 0x280], 7
mov dword [ebp - 0x284], esi
mov word [ebp - 0x294], si
jne 0x402ed8
xor eax, eax
cmp dword [edi], eax
je 0x402eb1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2a8], esp
push 8
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], eax
push 0x4dfbfc
mov word [ecx + 4], ax
call fcn.00401a60
mov edi, dword [edi]
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
cmp dword [ebp - 0x264], 8
jb 0x403088
mov ecx, dword [ebp - 0x278]
push ecx
call fcn.004b79f4
add esp, 4
jmp 0x403088
mov edi, dword [ebp - 0x2a4]
mov edx, dword [ebp - 0x2a8]
push ebx
mov ecx, edi
mov byte [ebp - 4], 0xb
call fcn.004030b0
push ebx
mov byte [ebp - 0x299], al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x299], 0
mov dword [ebp - 0x2a0], 0xffffffff
jne 0x402f32
mov esi, 8
cmp dword [edi + 0x58], esi
jb 0x402f23
mov edi, dword [edi + 0x44]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40302b
add edi, 0x44
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40302b
mov eax, dword [edi + 0x54]
add eax, 0xfffffffb
push eax
push 0
lea edx, [ebp - 0x2c4]
lea ebx, [edi + 0x40]
push edx
mov ecx, ebx
call fcn.00403680
push 0xffffffffffffffff
push 0
add edi, 8
push eax
mov ecx, edi
mov byte [ebp - 4], 0xc
call fcn.00401d30
mov esi, 8
cmp dword [ebp - 0x2ac], esi
jb 0x402f7b
mov eax, dword [ebp - 0x2c0]
push eax
call fcn.004b79f4
add esp, 4
cmp dword [edi + 0x18], esi
jb 0x402f85
mov ecx, dword [edi + 4]
jmp 0x402f88
lea ecx, [edi + 4]
cmp dword [ebx + 0x18], esi
jb 0x402f92
mov eax, dword [ebx + 4]
jmp 0x402f95
lea eax, [ebx + 4]
push ecx
push eax
call fcn.0043f4a1
add esp, 8
test eax, eax
je 0x40302b
cmp dword [edi + 0x18], esi
jb 0x402fb1
mov eax, dword [edi + 4]
jmp 0x402fb4
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x18], esi
jb 0x402fc5
mov ecx, dword [edi + 4]
jmp 0x402fc8
lea ecx, [edi + 4]
cmp dword [ebx + 0x18], esi
jb 0x402fd2
mov eax, dword [ebx + 4]
jmp 0x402fd5
lea eax, [ebx + 4]
push ecx
push eax
call fcn.0043f4a1
add esp, 8
cmp dword [edi + 0x18], esi
jb 0x402fe9
mov ecx, dword [edi + 4]
jmp 0x402fec
lea ecx, [edi + 4]
cmp dword [ebx + 0x18], esi
jb 0x402ff6
mov eax, dword [ebx + 4]
jmp 0x402ff9
lea eax, [ebx + 4]
push ecx
push eax
call fcn.0043f4a1
add esp, 8
test eax, eax
je 0x40302b
cmp dword [edi + 0x18], esi
jb 0x403011
mov edi, dword [edi + 4]
jmp 0x403014
add edi, 4
cmp dword [ebx + 0x18], esi
jb 0x40301e
mov ebx, dword [ebx + 4]
jmp 0x403021
add ebx, 4
push 1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp - 0x264], esi
jb 0x403042
mov ecx, dword [ebp - 0x278]
push ecx
call fcn.004b79f4
add esp, 4
mov al, byte [ebp - 0x299]
jmp 0x40308a
xor al, al
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.0043b4a5
mov esp, ebp
pop ebp
ret 4