Function at 0x401da8
Capabilities:
Copy file
Create thread

Disassembly:
mov eax, 0x41c2b6
call fcn.00412df4
sub esp, 0x428
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
call fcn.00401fa1
test al, al
je 0x401ddc
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x401f90
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.00401fc9
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.00412977
mov edi, eax
pop ecx
mov dword [ebp + 8], edi
cmp edi, ebx
mov dword [ebp - 4], ebx
je 0x401e78
mov eax, dword [esi + 0x5c]
lea ecx, [edi + 8]
push eax
mov dword [edi], ebx
mov dword [edi + 4], esi
call fcn.0040220e
mov dword [edi + 0x18], 0x1000
mov byte [edi + 0x1c], 1
jmp 0x401e7a
xor edi, edi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
push 0x401d62
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.00412977
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 0x401f36
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 0x401eeb
cmp dword [ebp - 0x30], 0x8032
je 0x401ef4
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401ec3
push edi
push 0xffffffffffffffff
push ebx
push dword [ebp + 8]
jmp 0x401eb3
mov ecx, dword [esi + 0x64]
call fcn.004022c5
push dword [ebp + 8]
call fcn.00412e13
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 0x401f6b
lea ecx, [esi + 8]
call fcn.00402098
push esi
call fcn.00412014
pop ecx
jmp 0x401f6b
push dword [ebp + 8]
call fcn.00412e13
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 0x401f65
lea ecx, [esi + 8]
call fcn.00402098
push esi
call fcn.00412014
pop ecx
cmp dword [ebp - 0x10], 0xffffffff
jne 0x401f6f
xor eax, eax
jmp 0x401f90
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