Function at 0x402440
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x402f36
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x318
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call sub.MFC42.DLL_CWnd::ShowWindow
lea ebp, [esi + 0x60]
push 0xfa
push 0
mov ecx, ebp
mov dword [esp + 0x20], ebp
call fcn.004010b0
mov dword [esi + 0xc0], 1
mov dword [esi + 0xb0], 0xffff
mov dword [esi + 0xb4], 0x9300
mov dword [esi + 0xb8], 0xfae6e6
mov dword [esi + 0xbc], 0
xor esi, esi
mov edi, 0x40502c
mov ebx, 0xa
push esi
mov ecx, ebp
call fcn.004015b0
inc esi
dec ebx
jne 0x4024bb
mov eax, dword [edi - 4]
push 0x406b04
push eax
push edi
call fcn.00401eb0
add edi, 0x108
add esp, 0xc
cmp edi, 0x4069f4
jl 0x4024b6
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x224]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x224]
push ecx
call fcn.00401db0
push str.UsbDriver
call fcn.00401e70
add esp, 8
test eax, eax
je 0x402534
push str.UsbDriver
call fcn.00401d50
add esp, 4
test eax, eax
je 0x402534
push 0
push 0
push 0x406ae0
call sub.MFC42.DLL_AfxMessageBox
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x120]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x1c]
lea edx, [esp + 0x224]
push str.USBDrv.sys
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x128]
push 0x406a38
push eax
call esi
push str.USBDrv.sys
lea ecx, [esp + 0x238]
push str.UsbDriver
push ecx
lea edx, [esp + 0x38]
push 0x406ac8
push edx
call esi
lea eax, [esp + 0x40]
push eax
call fcn.00401e30
add esp, 0x28
test eax, eax
jne 0x4025b8
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401d90
add esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x120]
push edx
push eax
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402636
call ebx
lea ecx, [esp + 0x10]
mov edi, eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x120]
push ecx
push edx
push edi
push str.USBDrv.sys
lea eax, [esp + 0x20]
push str.MoveFile__s_failed____d_n_s_n_s
push eax
mov dword [esp + 0x348], 0
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x28]
add esp, 0x18
push 0
push 0
push ecx
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x10]
mov dword [esp + 0x330], 0xffffffff
call fcn.004028d6
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x120]
lea edx, [esp + 0x224]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
push str.USBDrv.inf
push edx
lea eax, [esp + 0x128]
push 0x406a38
push eax
call esi
push str.USBDrv.inf
lea ecx, [esp + 0x238]
push str.UsbDriver
push ecx
lea edx, [esp + 0x38]
push 0x406ac8
push edx
call esi
lea eax, [esp + 0x40]
push eax
call fcn.00401e30
add esp, 0x28
test eax, eax
jne 0x4026a9
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401d90
add esp, 4
lea edx, [esp + 0x1c]
lea eax, [esp + 0x120]
push edx
push eax
call ebp
test eax, eax
jne 0x40271b
call ebx
lea ecx, [esp + 0x14]
mov esi, eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x120]
push ecx
push edx
push esi
push str.USBDrv.inf
lea eax, [esp + 0x24]
push str.MoveFile__s_failed____d__n_s_n_s
push eax
mov dword [esp + 0x348], 1
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x2c]
add esp, 0x18
push 0
push 0
push ecx
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x14]
mov dword [esp + 0x330], 0xffffffff
call fcn.004028d6
mov ecx, dword [esp + 0x18]
push 0xfa
call fcn.004015b0
mov ecx, dword [esp + 0x328]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x324
ret