Function at 0x40355d
Capabilities:
Check if file exists
Copy file
Get disk information
Get disk size
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe64
push edi
mov dword [ebp - 0x624], 0xffffffff
mov word [ebp - 0x648], 0
xor eax, eax
mov dword [ebp - 0x646], eax
mov dword [ebp - 0x642], eax
mov word [ebp - 0x418], 0
xor ecx, ecx
mov dword [ebp - 0x416], ecx
mov edx, dword [0x422690]
mov dword [ebp - 0x62c], edx
mov eax, dword [0x422694]
mov dword [ebp - 0x628], eax
mov word [ebp - 0xe18], 0
mov ecx, 0x1f3
xor eax, eax
lea edi, [ebp - 0xe16]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
push 0
lea ecx, [ebp - 0x208]
push ecx
call fcn.0040be20
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0x620]
push edx
call fcn.0040be20
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x410]
push eax
call fcn.0040be20
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040be00
add esp, 4
mov dword [ebp - 0x634], eax
mov edx, dword [ebp - 0x634]
mov eax, dword [ebp + 8]
mov cx, word [eax + edx*2 - 6]
mov word [ebp - 0x648], cx
mov edx, dword [ebp - 0x634]
mov eax, dword [ebp + 8]
mov cx, word [eax + edx*2 - 4]
mov word [ebp - 0x646], cx
mov edx, dword [ebp - 0x634]
mov eax, dword [ebp + 8]
mov cx, word [eax + edx*2 - 2]
mov word [ebp - 0x644], cx
mov word [ebp - 0x642], 0
lea edx, [ebp - 0x62c]
push edx
lea eax, [ebp - 0x648]
push eax
call fcn.0040c3d7
add esp, 8
test eax, eax
jne 0x4037e2
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0xe1c], 0
lea ecx, [ebp - 0x630]
push ecx
push 0x41d4a0
push 1
push 0
push 0x41d490
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x638], eax
cmp dword [ebp - 0x638], 0
jl 0x4037e2
lea edx, [ebp - 0xe20]
push edx
push 0x41e7e8
mov eax, dword [ebp - 0x630]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x630]
push edx
call dword [ecx]
mov dword [ebp - 0x638], eax
cmp dword [ebp - 0x638], 0
jl 0x4037d0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xe20]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xe20]
push eax
call dword [edx + 0x14]
mov dword [ebp - 0x638], eax
cmp dword [ebp - 0x638], 0
jge 0x403722
xor al, al
jmp 0x403b3e
push 2
mov ecx, dword [ebp - 0xe1c]
push ecx
push 0x3e8
lea edx, [ebp - 0xe18]
push edx
mov eax, dword [ebp - 0x630]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x630]
push edx
call dword [ecx + 0xc]
mov dword [ebp - 0x638], eax
mov eax, dword [ebp - 0x634]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040be20
add esp, 0xc
lea edx, [ebp - 0xe18]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040c8aa
add esp, 8
push 2
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xe28]
push edx
call fcn.0040c39a
add esp, 0xc
lea eax, [ebp - 0xe28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x4037d0
mov dword [ebp - 0xe2c], 0
lea ecx, [ebp - 0xe2c]
push ecx
push 0
push 0
push 0
push 0x42779c
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
cmp dword [ebp - 0xe2c], 0
ja 0x4037d0
xor al, al
jmp 0x403b3e
mov edx, dword [ebp - 0xe20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xe20]
push ecx
call dword [eax + 8]
mov edx, dword [ebp + 8]
push edx
call fcn.0040be00
add esp, 4
mov dword [ebp - 0x634], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x63c], eax
cmp dword [ebp - 0x63c], 0xffffffff
jne 0x403826
xor al, al
jmp 0x403b3e
push 0
mov ecx, dword [ebp - 0x63c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x624], eax
cmp dword [ebp - 0x624], 0xffffffff
jne 0x403858
mov edx, dword [ebp - 0x63c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x403b3e
mov eax, dword [ebp - 0x63c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x624], 0
jbe 0x403b3c
cmp dword [ebp - 0x624], 0xf00000
ja 0x403b3c
mov ecx, dword [ebp - 0x634]
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + ecx*2 - 8]
cmp eax, 0x2e
jne 0x4038e1
mov ecx, dword [ebp - 0x634]
mov edx, dword [ebp + 8]
mov ax, word [edx + ecx*2 - 6]
mov word [ebp - 0x648], ax
mov ecx, dword [ebp - 0x634]
mov edx, dword [ebp + 8]
mov ax, word [edx + ecx*2 - 4]
mov word [ebp - 0x646], ax
mov ecx, dword [ebp - 0x634]
mov edx, dword [ebp + 8]
mov ax, word [edx + ecx*2 - 2]
mov word [ebp - 0x644], ax
mov word [ebp - 0x642], 0
jmp 0x40393e
mov ecx, dword [ebp - 0x634]
mov edx, dword [ebp + 8]
mov ax, word [edx + ecx*2 - 8]
mov word [ebp - 0x648], ax
mov ecx, dword [ebp - 0x634]
mov edx, dword [ebp + 8]
mov ax, word [edx + ecx*2 - 6]
mov word [ebp - 0x646], ax
mov ecx, dword [ebp - 0x634]
mov edx, dword [ebp + 8]
mov ax, word [edx + ecx*2 - 4]
mov word [ebp - 0x644], ax
mov ecx, dword [ebp - 0x634]
mov edx, dword [ebp + 8]
mov ax, word [edx + ecx*2 - 2]
mov word [ebp - 0x642], ax
mov word [ebp - 0x640], 0
push 0x426d28
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40396d
lea ecx, [ebp - 0x648]
push ecx
call fcn.00403b43
add esp, 4
test eax, eax
jne 0x403968
xor al, al
jmp 0x403b3e
jmp 0x403a62
lea edx, [ebp - 0x648]
push edx
call fcn.0040c9bb
add esp, 4
push 0x422698
lea eax, [ebp - 0x648]
push eax
call fcn.0040b090
add esp, 8
test eax, eax
jne 0x4039b3
push 0x4226a0
lea ecx, [ebp - 0x648]
push ecx
call fcn.0040c1a0
add esp, 8
test eax, eax
je 0x4039b3
xor al, al
jmp 0x403b3e
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xe58], eax
cmp dword [ebp - 0xe58], 0xffffffff
jne 0x4039e5
xor al, al
jmp 0x403b3e
lea eax, [ebp - 0xe60]
push eax
push 0
push 0
mov ecx, dword [ebp - 0xe58]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov edx, dword [ebp - 0xe58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xe54]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [ebp - 0xe3c]
push ecx
lea edx, [ebp - 0xe54]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [ebp - 0xe38]
sub eax, dword [ebp - 0xe5c]
mov dword [ebp - 0xe40], eax
mov eax, dword [ebp - 0xe40]
xor edx, edx
mov ecx, 0xc9
div ecx
mov dword [ebp - 0xe64], eax
cmp dword [ebp - 0xe64], 0x3c
jle 0x403a62
xor al, al
jmp 0x403b3e
mov dword [ebp - 0xe30], 0
mov edx, dword [ebp + 8]
push edx
call fcn.0040be00
add esp, 4
sub eax, 1
mov dword [ebp - 0xe34], eax
mov eax, dword [ebp - 0xe34]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + eax*2]
cmp edx, 0x5c
je 0x403ad0
mov eax, dword [ebp - 0xe30]
mov ecx, dword [ebp - 0xe34]
mov edx, dword [ebp + 8]
mov cx, word [edx + ecx*2]
mov word [ebp + eax*2 - 0x208], cx
mov edx, dword [ebp - 0xe30]
add edx, 1
mov dword [ebp - 0xe30], edx
mov eax, dword [ebp - 0xe34]
sub eax, 1
mov dword [ebp - 0xe34], eax
jmp 0x403a81
lea ecx, [ebp - 0x208]
push ecx
call fcn.0040df05
add esp, 4
push 0x427464
lea edx, [ebp - 0x620]
push edx
call fcn.0040c8aa
add esp, 8
push 0x4226a8
lea eax, [ebp - 0x620]
push eax
call fcn.0040c880
add esp, 8
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x620]
push edx
call fcn.0040c880
add esp, 8
push 0
lea eax, [ebp - 0x620]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x403b38
xor al, al
jmp 0x403b3e
mov al, 1
jmp 0x403b3e
xor al, al
pop edi
mov esp, ebp
pop ebp
ret