Function at 0x417f8c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x417f94
push ecx
push ebx
mov eax, 0x417f04
call fcn.00406138
xor eax, eax
push ebp
push 0x41836f
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00402d30
test eax, eax
jne 0x417fd6
push 0x40
push 0x41837c
push 0x418384
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x418354
mov eax, dword [0x41c0e0]
mov byte [eax], 0x20
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.00402d98
mov edx, dword [ebp - 0x14]
mov eax, 0x41d880
call fcn.00403070
mov edx, 1
mov eax, 0x41d880
call fcn.004033ac
call fcn.00402b6c
test eax, eax
je 0x41804e
push 0x10
push 0x4183bc
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x1c]
call fcn.0040a16c
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x4183cc
call fcn.00404708
mov eax, dword [ebp - 0x18]
call fcn.004048ac
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, 1
call fcn.00404408
mov eax, 0x41d880
call fcn.00403238
push eax
mov eax, 0x41d9cc
mov ecx, 1
mov edx, dword [0x417eb8]
call fcn.004052a0
add esp, 4
push 0
mov eax, dword [0x41d9cc]
call fcn.004050c4
mov ecx, eax
mov edx, dword [0x41d9cc]
mov eax, 0x41d880
call fcn.004031c0
mov eax, 0x41d880
call fcn.004031e0
call fcn.00402b6c
test eax, eax
je 0x4180e0
push 0x10
push 0x4183bc
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x24]
call fcn.0040a16c
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 0x4183cc
call fcn.00404708
mov eax, dword [ebp - 0x20]
call fcn.004048ac
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, 1
call fcn.00404408
push 0x41d9dc
push 3
mov eax, dword [0x41d9cc]
call fcn.004050c4
mov edx, eax
mov ecx, 0x41d9d8
mov eax, dword [0x41d9cc]
call fcn.00417de4
mov eax, 0x41d9cc
mov edx, dword [0x417eb8]
call fcn.004052ac
mov edx, 0x41d9d0
mov eax, 2
call fcn.00402d98
cmp dword [0x41d9d0], 0
jne 0x418154
lea edx, [ebp - 0x2c]
mov eax, 1
call fcn.00402d98
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
mov edx, 0x4183ec
call fcn.00407950
mov edx, dword [ebp - 0x28]
mov eax, 0x41d9d0
call fcn.00404474
lea edx, [ebp - 0x34]
xor eax, eax
call fcn.00402d98
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.004079e4
mov edx, dword [ebp - 0x30]
mov eax, 0x41d9d4
call fcn.00404474
mov eax, dword [0x41d9d4]
call fcn.004046bc
mov edx, dword [0x41d9d4]
cmp byte [edx + eax - 1], 0x5c
je 0x41819c
mov eax, 0x41d9d4
mov edx, 0x4183fc
call fcn.004046c4
push 0xffffffffffffffff
mov eax, dword [0x41d9d0]
call fcn.004048ac
mov ebx, eax
push ebx
lea eax, [ebp - 0x38]
mov ecx, 0x418408
mov edx, dword [0x41d9d4]
call fcn.00404708
mov eax, dword [ebp - 0x38]
call fcn.004048ac
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x41820e
push 0x10
push 0x4183bc
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x40]
call fcn.0040a16c
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, 0x418420
call fcn.00404708
mov eax, dword [ebp - 0x3c]
call fcn.004048ac
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, 1
call fcn.00404408
push 0
push ebx
call sub.kernel32.dll_BeginUpdateResourceA
mov ebx, eax
test ebx, ebx
jne 0x41825a
push 0x10
push 0x4183bc
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x48]
call fcn.0040a16c
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
mov edx, 0x418444
call fcn.00404708
mov eax, dword [ebp - 0x44]
call fcn.004048ac
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, 1
call fcn.00404408
mov eax, dword [0x41d9dc]
push eax
mov eax, dword [0x41d9d8]
push eax
push 0x409
push 0x41845c
push 0xa
push ebx
call sub.kernel32.dll_UpdateResourceA
test eax, eax
jne 0x4182c2
push 0x10
push 0x4183bc
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x50]
call fcn.0040a16c
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
mov edx, 0x41846c
call fcn.00404708
mov eax, dword [ebp - 0x4c]
call fcn.004048ac
push eax
push 0
call sub.user32.dll_MessageBoxA_1
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_EndUpdateResourceA
mov eax, 1
call fcn.00404408
push 0
push ebx
call sub.kernel32.dll_EndUpdateResourceA
test eax, eax
jne 0x418314
push 0x10
push 0x4183bc
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x58]
call fcn.0040a16c
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
mov edx, 0x41846c
call fcn.00404708
mov eax, dword [ebp - 0x54]
call fcn.004048ac
push eax
push 0
call sub.user32.dll_MessageBoxA_1
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_EndUpdateResourceA
mov eax, 1
call fcn.00404408
xor edx, edx
mov eax, dword [0x41d9d8]
call fcn.00402a18
push 0x40
push 0x418488
push 0x41849c
push dword [0x41d9d0]
push 0x4184ac
lea eax, [ebp - 0x5c]
mov edx, 3
call fcn.0040477c
mov eax, dword [ebp - 0x5c]
call fcn.004048ac
push eax
push 0
call sub.user32.dll_MessageBoxA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418376
lea eax, [ebp - 0x5c]
mov edx, 0x13
call fcn.00404444
ret