Function at 0x401d87
Capabilities:
Copy file
Create thread

Disassembly:
mov eax, 0x41a9e6
call fcn.00411544
sub esp, 0x428
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
call fcn.00401f80
test al, al
je 0x401dbb
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x401f6f
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x433]
mov byte [ebp - 0x434], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x434]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.00401fa8
mov edi, 0x400
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push edi
mov dword [esi + 0x5c], eax
push eax
lea eax, [ebp - 0x434]
push 0xffffffffffffffff
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push edi
push eax
push 0xffffffffffffffff
mov dword [esi + 0x60], eax
push dword [ebp + 0xc]
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x20
call fcn.004110c7
mov edi, eax
pop ecx
mov dword [ebp + 8], edi
cmp edi, ebx
mov dword [ebp - 4], ebx
je 0x401e57
mov eax, dword [esi + 0x5c]
lea ecx, [edi + 8]
push eax
mov dword [edi], ebx
mov dword [edi + 4], esi
call fcn.00402172
mov dword [edi + 0x18], 0x1000
mov byte [edi + 0x1c], 1
jmp 0x401e59
xor edi, edi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
push 0x401d41
push ebx
push ebx
mov dword [esi + 0x64], edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 4
mov dword [ebp + 0xc], edi
call fcn.004110c7
mov dword [eax], edi
pop ecx
mov edi, 0xff
mov dword [ebp + 8], eax
push edi
push 0xffffffffffffffff
push ebx
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 1
mov dword [ebp - 0x10], eax
jne 0x401f15
push 1
push ebx
push ebx
lea eax, [ebp - 0x34]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x401eca
cmp dword [ebp - 0x30], 0x8032
je 0x401ed3
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401ea2
push edi
push 0xffffffffffffffff
push ebx
push dword [ebp + 8]
jmp 0x401e92
mov ecx, dword [esi + 0x64]
call fcn.00402229
push dword [ebp + 8]
call fcn.00411563
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop ecx
push dword [esi + 0x5c]
call edi
push dword [esi + 0x60]
call edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esi + 0x64]
cmp esi, ebx
je 0x401f4a
lea ecx, [esi + 8]
call fcn.00402077
push esi
call fcn.00402fcf
pop ecx
jmp 0x401f4a
push dword [ebp + 8]
call fcn.00411563
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop ecx
push dword [esi + 0x5c]
call edi
push dword [esi + 0x60]
call edi
mov esi, dword [esi + 0x64]
cmp esi, ebx
je 0x401f44
lea ecx, [esi + 8]
call fcn.00402077
push esi
call fcn.00402fcf
pop ecx
cmp dword [ebp - 0x10], 0xffffffff
jne 0x401f4e
xor eax, eax
jmp 0x401f6f
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x14], ebx
setge al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8