Function at 0x402aa0
Capabilities:
Copy file
Create directory
Delete file
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x41f1ee
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x424544]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x424544]
xor eax, esp
push eax
lea eax, [esp + 0x19c]
mov dword fs:[0], eax
lea eax, [esp + 0x1ac]
xor ebx, ebx
push eax
lea esi, [esp + 0x20]
mov dword [esp + 0x1a8], ebx
call fcn.00403f40
add esp, 4
mov byte [esp + 0x1a4], 1
mov eax, dword [esp + 0x20]
mov ebp, 0x10
cmp dword [esp + 0x34], ebp
jae 0x402873
lea eax, [esp + 0x20]
lea ecx, [esp + 0x54]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x4028d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x34], ebp
mov esi, eax
jb 0x4028a3
mov edx, dword [esp + 0x20]
push edx
call fcn.004150ed
add esp, 4
cmp dword [esp + 0x1c4], ebp
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
jb 0x4028cc
mov eax, dword [esp + 0x1b0]
push eax
call fcn.004150ed
add esp, 4
mov eax, esi
jmp 0x402ae0
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x1b4]
push ecx
lea ecx, [esp + 0x44]
mov byte [esp + 0x1b0], 2
call fcn.00402db0
push 1
push 0x4220e4
lea eax, [esp + 0x40]
call fcn.004031a0
lea eax, [esp + 0x80]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402920
sub eax, edx
push eax
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x40]
call fcn.004031a0
mov edi, 0x4220d4
lea esi, [esp + 0x80]
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x402a36
mov edi, 0x4220d8
lea esi, [esp + 0x80]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x402a36
test byte [esp + 0x54], 0x10
je 0x402a21
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x5c]
mov edi, 0xf
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00402db0
call fcn.00402800
mov esi, eax
add esp, 0x1c
cmp esi, ebx
je 0x402a36
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x50], ebp
jb 0x4029d2
mov edx, dword [esp + 0x3c]
push edx
call fcn.004150ed
add esp, 4
cmp dword [esp + 0x34], ebp
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
jb 0x4029f1
mov eax, dword [esp + 0x20]
push eax
call fcn.004150ed
add esp, 4
cmp dword [esp + 0x1c4], ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
jb 0x4028cc
mov ecx, dword [esp + 0x1b0]
push ecx
call fcn.004150ed
add esp, 4
mov eax, esi
jmp 0x402ae0
cmp dword [esp + 0x50], ebp
mov eax, dword [esp + 0x3c]
jae 0x402a2f
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x54]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esp + 0x1a4], 1
cmp dword [esp + 0x50], ebp
jb 0x402a70
mov eax, dword [esp + 0x3c]
push eax
call fcn.004150ed
add esp, 4
cmp esi, 0x12
jne 0x4028d3
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x1c4], ebp
mov eax, dword [esp + 0x1b0]
jae 0x402a9b
lea eax, [esp + 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp dword [esp + 0x34], ebp
jb 0x402ab5
mov eax, dword [esp + 0x20]
push eax
call fcn.004150ed
add esp, 4
cmp dword [esp + 0x1c4], ebp
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
jb 0x402ade
mov ecx, dword [esp + 0x1b0]
push ecx
call fcn.004150ed
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.00413a92
add esp, 0x194
ret