Function at 0x41d5c0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e3ee
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x4263e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str...logdrv32.log
call fcn.004168e0
mov ecx, eax
call fcn.00416970
xor eax, eax
jne 0x41d5eb
mov dword [ebp - 0x58], 1
mov ecx, dword [ebp + 8]
push ecx
push str._tmain_Enter_argc_d_r_n
push 2
call fcn.004168e0
push eax
call fcn.00416130
add esp, 0x10
xor edx, edx
jne 0x41d607
mov dword [ebp - 0x5c], 0
jmp 0x41d636
mov eax, dword [ebp - 0x5c]
add eax, 1
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebp + 8]
jge 0x41d667
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
push str.argv__d___s_r_n
push 2
call fcn.004168e0
push eax
call fcn.00416130
add esp, 0x14
xor eax, eax
jne 0x41d63e
jmp 0x41d62d
cmp dword [ebp + 8], 2
jge 0x41d690
push str.argc___2_return_DB_STATUS_FAILED__r_n
push 2
call fcn.004168e0
push eax
call fcn.00416130
add esp, 0xc
xor ecx, ecx
jne 0x41d66d
mov eax, 3
jmp 0x41dd18
cmp dword [ebp + 8], 3
jl 0x41d705
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
push eax
lea ecx, [ebp - 0x78]
call fcn.00401750
mov dword [ebp - 4], 0
push str.USB_USB_USB
lea ecx, [ebp - 0x78]
call fcn.00402000
push eax
call fcn.004069e0
add esp, 8
test eax, eax
jne 0x41d6f6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041d420
add esp, 8
mov dword [ebp - 0x134], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00401f50
mov eax, dword [ebp - 0x134]
jmp 0x41dd18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00401f50
cmp dword [ebp + 8], 3
jne 0x41d8ff
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [ebp - 0x94]
call fcn.00401750
mov dword [ebp - 4], 1
push str.DTLRemove
lea ecx, [ebp - 0x94]
call fcn.00402000
push eax
call fcn.004069e0
add esp, 8
test eax, eax
jne 0x41d80f
mov byte [ebp - 0x95], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
push eax
lea ecx, [ebp - 0xb4]
call fcn.00401750
mov byte [ebp - 4], 2
call fcn.00416b30
mov byte [ebp - 0x135], 1
lea ecx, [ebp - 0x95]
push ecx
lea edx, [ebp - 0x135]
push edx
lea ecx, [ebp - 0xb4]
call fcn.00402000
push eax
call fcn.00417950
mov ecx, eax
call fcn.00418830
mov byte [ebp - 0x96], al
movzx eax, byte [ebp - 0x96]
test eax, eax
je 0x41d7c9
mov dword [ebp - 0x58], 2
movzx ecx, byte [ebp - 0x95]
test ecx, ecx
je 0x41d7c7
mov edx, dword [ebp - 0x58]
or edx, 0x10000000
mov dword [ebp - 0x58], edx
jmp 0x41d7d0
mov dword [ebp - 0x58], 3
call fcn.00417900
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb4]
call fcn.00401f50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00401f50
mov eax, dword [ebp - 0x13c]
jmp 0x41dd18
push str.DTLDeleteFile
lea ecx, [ebp - 0x94]
call fcn.00402000
push eax
call fcn.004069e0
add esp, 8
test eax, eax
jne 0x41d8ed
mov dword [ebp - 0xd4], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
push edx
lea ecx, [ebp - 0xd0]
call fcn.00401750
lea ecx, [ebp - 0xd0]
call fcn.00402790
test eax, eax
jbe 0x41d873
lea ecx, [ebp - 0xd0]
call fcn.00402000
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
je 0x41d8b0
mov dword [ebp - 0x140], 2
lea ecx, [ebp - 0xd0]
call fcn.00401f50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00401f50
mov eax, dword [ebp - 0x140]
jmp 0x41dd18
mov dword [ebp - 0x144], 3
lea ecx, [ebp - 0xd0]
call fcn.00401f50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00401f50
mov eax, dword [ebp - 0x144]
jmp 0x41dd18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00401f50
cmp dword [ebp + 8], 4
jne 0x41d9ed
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [ebp - 0x110]
call fcn.00401750
mov dword [ebp - 4], 3
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00401750
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
push edx
lea ecx, [ebp - 0xf0]
call fcn.00401750
push 0x421508
lea ecx, [ebp - 0xf0]
call fcn.00402000
push eax
call fcn.004069e0
add esp, 8
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0xf1], al
movzx eax, byte [ebp - 0xf1]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00402000
push eax
lea ecx, [ebp - 0x110]
call fcn.00402000
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp eax, 1
jne 0x41d9a4
mov dword [ebp - 0x58], 1
jmp 0x41d9ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x148], ecx
lea ecx, [ebp - 0xf0]
call fcn.00401f50
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x12c]
call fcn.00401f50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.00401f50
mov eax, dword [ebp - 0x148]
jmp 0x41dd18
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401750
mov dword [ebp - 4], 5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00401750
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x48]
call fcn.00402000
push eax
push str._COMEBACK_:hwid___s_r_n
push 2
call fcn.004168e0
push eax
call fcn.00416130
add esp, 0x10
xor eax, eax
jne 0x41da16
lea ecx, [ebp - 0x2c]
call fcn.00402000
push eax
push str._COMEBACK_:inf___s_r_n
push 2
call fcn.004168e0
push eax
call fcn.00416130
add esp, 0x10
xor ecx, ecx
jne 0x41da38
push 0
lea ecx, [ebp - 0x2c]
call fcn.00402000
push eax
call fcn.00406f74
add esp, 8
cmp eax, 0xffffffff
jne 0x41dac4
lea ecx, [ebp - 0x2c]
call fcn.00402000
push eax
push str.inf___s_not_exists._r_n
push 2
call fcn.004168e0
push eax
call fcn.00416130
add esp, 0x10
xor edx, edx
jne 0x41da72
mov dword [ebp - 0x14c], 0xffffffff
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.00401f50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401f50
mov eax, dword [ebp - 0x14c]
jmp 0x41dd18
lea ecx, [ebp - 0x48]
call fcn.00404280
movzx eax, al
test eax, eax
je 0x41db03
mov dword [ebp - 0x150], 0xffffffff
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.00401f50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401f50
mov eax, dword [ebp - 0x150]
jmp 0x41dd18
mov byte [ebp - 0x49], 0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x54]
call fcn.00418ef0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x49]
push ecx
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x48]
call fcn.00402000
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402000
push eax
lea ecx, [ebp - 0x54]
call fcn.0041b0c0
movzx eax, al
test eax, eax
jne 0x41dcbd
push str._COMEBACK_:CustomInstall_failed_r_n
push 2
call fcn.004168e0
push eax
call fcn.00416130
add esp, 0xc
xor ecx, ecx
jne 0x41db47
cmp dword [ebp - 0x50], 2
jne 0x41db8b
push 0x42157c
push 2
call fcn.004168e0
push eax
call fcn.00416130
add esp, 0xc
xor edx, edx
jne 0x41db66
mov dword [ebp - 0x58], 5
jmp 0x41dcbb
cmp dword [ebp - 0x50], 0xe0000235
jne 0x41dbb9
push 0x421590
push 2
call fcn.004168e0
push eax
call fcn.00416130
add esp, 0xc
xor eax, eax
jne 0x41db94
mov dword [ebp - 0x58], 6
jmp 0x41dcbb
cmp dword [ebp - 0x50], 0x3ec
jne 0x41dbe7
push 0x4215a4
push 2
call fcn.004168e0
push eax
call fcn.00416130
add esp, 0xc
xor ecx, ecx
jne 0x41dbc2
mov dword [ebp - 0x58], 7
jmp 0x41dcbb
cmp dword [ebp - 0x50], 0xe000020b
jne 0x41dc15
push 0x4215b4
push 2
call fcn.004168e0
push eax
call fcn.00416130
add esp, 0xc
xor edx, edx
jne 0x41dbf0
mov dword [ebp - 0x58], 8
jmp 0x41dcbb
cmp dword [ebp - 0x50], 0
jne 0x41dc3d
push 0x4215c4
push 2
call fcn.004168e0
push eax
call fcn.00416130
add esp, 0xc
xor eax, eax
jne 0x41dc1b
mov dword [ebp - 0x58], 9
jmp 0x41dcbb
mov dword [ebp - 0x130], 0
push 0
push 0
lea ecx, [ebp - 0x130]
push ecx
push 0x400
mov edx, dword [ebp - 0x50]
push edx
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jbe 0x41dc8e
mov eax, dword [ebp - 0x130]
push eax
push str._s_r_n
push 2
call fcn.004168e0
push eax
call fcn.00416130
add esp, 0x10
xor ecx, ecx
jne 0x41dc6c
jmp 0x41dca7
push 0x4215dc
push 2
call fcn.004168e0
push eax
call fcn.00416130
add esp, 0xc
xor edx, edx
jne 0x41dc8e
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x58], 3
jmp 0x41dcd9
mov dword [ebp - 0x58], 2
movzx ecx, byte [ebp - 0x49]
cmp ecx, 1
jne 0x41dcd9
mov edx, dword [ebp - 0x58]
or edx, 0x10000000
mov dword [ebp - 0x58], edx
call fcn.004160d0
xor eax, eax
jne 0x41dcd9
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x154], ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x54]
call fcn.00418ee0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.00401f50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401f50
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405248
mov esp, ebp
pop ebp
ret