Function at 0x403ed0
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431884
mov eax, dword fs:[0]
push eax
sub esp, 0x3c8
mov eax, dword [0x4442e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2f4]
call fcn.00406890
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2f4]
push ecx
lea edx, [ebp - 0x36c]
push edx
call fcn.0040d450
add esp, 8
lea ecx, [ebp - 0x36c]
call fcn.00406680
mov byte [ebp - 0x375], 0
push 6
push 0
push 0x43ed20
push 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov dword [ebp - 0x374], eax
cmp dword [ebp - 0x374], 0xffffffff
jne 0x403f70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2f4]
call fcn.00406680
jmp 0x40496d
mov dword [ebp - 0x234], 0x1c
mov dword [ebp - 0x39c], 0
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x39c]
push ecx
mov edx, dword [ebp - 0x374]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x40494e
mov eax, dword [ebp - 0x39c]
add eax, 1
mov dword [ebp - 0x39c], eax
mov dword [ebp - 0x380], 0
mov dword [ebp - 0x370], 0
lea ecx, [ebp - 0x370]
push ecx
mov edx, dword [ebp - 0x370]
push edx
push 0
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x374]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdA]
cmp dword [ebp - 0x370], 0
jne 0x403ff9
jmp 0x403f84
mov edx, dword [ebp - 0x370]
push edx
call fcn.0041bbc1
add esp, 4
mov dword [ebp - 0x37c], eax
lea eax, [ebp - 0x370]
push eax
mov ecx, dword [ebp - 0x370]
push ecx
mov edx, dword [ebp - 0x37c]
push edx
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x374]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdA]
mov dword [ebp - 0x384], 0
jmp 0x404052
mov edx, dword [ebp - 0x384]
add edx, 1
mov dword [ebp - 0x384], edx
mov eax, dword [ebp - 0x37c]
add eax, dword [ebp - 0x384]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40408d
mov edx, dword [ebp - 0x37c]
add edx, dword [ebp - 0x384]
movsx eax, byte [edx]
push eax
call fcn.00418785
add esp, 4
mov ecx, dword [ebp - 0x37c]
add ecx, dword [ebp - 0x384]
mov byte [ecx], al
jmp 0x404043
push 0x43ed28
mov edx, dword [ebp - 0x37c]
push edx
call fcn.004011e0
add esp, 8
test eax, eax
jne 0x4040b9
mov eax, dword [ebp - 0x37c]
push eax
call fcn.0041b46b
add esp, 4
jmp 0x403f84
lea ecx, [ebp - 0x2f4]
call fcn.00406380
push eax
mov ecx, dword [ebp - 0x37c]
push ecx
call fcn.00403240
add esp, 8
movzx edx, al
test edx, edx
jne 0x4040ef
mov eax, dword [ebp - 0x37c]
push eax
call fcn.0041b46b
add esp, 4
jmp 0x403f84
mov ecx, dword [ebp - 0x37c]
push ecx
lea ecx, [ebp - 0x324]
call fcn.00406730
mov byte [ebp - 4], 1
lea edx, [ebp - 0x324]
push edx
lea eax, [ebp - 0x27c]
push eax
call fcn.0040d350
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x324]
call fcn.00406680
mov ecx, dword [ebp - 0x37c]
push ecx
call fcn.0041b46b
add esp, 4
mov dword [ebp - 0x370], 0
mov dword [ebp - 0x380], 0
lea edx, [ebp - 0x370]
push edx
mov eax, dword [ebp - 0x370]
push eax
push 0
lea ecx, [ebp - 0x380]
push ecx
push 0
lea edx, [ebp - 0x234]
push edx
mov eax, dword [ebp - 0x374]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
cmp dword [ebp - 0x370], 0
jbe 0x404219
mov ecx, dword [ebp - 0x370]
push ecx
call fcn.0041bbc1
add esp, 4
mov dword [ebp - 0x398], eax
lea edx, [ebp - 0x370]
push edx
mov eax, dword [ebp - 0x370]
push eax
mov ecx, dword [ebp - 0x398]
push ecx
lea edx, [ebp - 0x380]
push edx
push 0
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x374]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
push 0x40a390
push 0x43ed38
mov edx, dword [ebp - 0x398]
push edx
push str.Desc:
push 0x445808
call fcn.0040a070
add esp, 8
push eax
call fcn.0040a070
add esp, 8
push eax
call fcn.0040a070
add esp, 8
mov ecx, eax
call fcn.00405bd0
mov eax, dword [ebp - 0x398]
push eax
call fcn.0041b46b
add esp, 4
mov dword [ebp - 0x370], 0
mov dword [ebp - 0x380], 0
lea ecx, [ebp - 0x3a8]
call fcn.00405f90
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x370]
push ecx
mov edx, dword [ebp - 0x370]
push edx
push 0
lea eax, [ebp - 0x380]
push eax
push 0x11
lea ecx, [ebp - 0x234]
push ecx
mov edx, dword [ebp - 0x374]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
cmp dword [ebp - 0x370], 0
jbe 0x4043e1
mov eax, dword [ebp - 0x370]
push eax
call fcn.0041bbc1
add esp, 4
mov dword [ebp - 0x394], eax
lea ecx, [ebp - 0x370]
push ecx
mov edx, dword [ebp - 0x370]
push edx
mov eax, dword [ebp - 0x394]
push eax
lea ecx, [ebp - 0x380]
push ecx
push 0x11
lea edx, [ebp - 0x234]
push edx
mov eax, dword [ebp - 0x374]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov ecx, dword [ebp - 0x370]
push ecx
mov edx, dword [ebp - 0x394]
push edx
lea eax, [ebp - 0x3d4]
push eax
call fcn.004038a0
add esp, 0xc
mov dword [ebp - 0x3c0], eax
mov ecx, dword [ebp - 0x3c0]
push ecx
lea ecx, [ebp - 0x3a8]
call fcn.00405ea0
lea ecx, [ebp - 0x3d4]
call fcn.00405e80
mov edx, dword [ebp - 0x394]
push edx
call fcn.0041b46b
add esp, 4
push 0x40a390
mov eax, dword [ebp - 0x370]
push eax
push str.filters_parse_U______
push 0x445808
call fcn.0040a070
add esp, 8
mov ecx, eax
call fcn.00405a40
mov ecx, eax
call fcn.00405bd0
lea ecx, [ebp - 0x388]
push ecx
lea ecx, [ebp - 0x3a8]
call fcn.00405c30
jmp 0x404357
lea ecx, [ebp - 0x388]
call fcn.004059c0
lea edx, [ebp - 0x3c8]
push edx
lea ecx, [ebp - 0x3a8]
call fcn.00405bf0
push eax
lea ecx, [ebp - 0x388]
call fcn.00405a00
movzx eax, al
test eax, eax
je 0x4043e1
push 0x40a390
lea ecx, [ebp - 0x388]
call fcn.004059e0
push eax
push str.filters:
push 0x445808
call fcn.0040a070
add esp, 8
push eax
call fcn.0040a3c0
add esp, 8
mov ecx, eax
call fcn.00405bd0
push 7
push 0x43ed68
lea ecx, [ebp - 0x388]
call fcn.004017d0
mov ecx, eax
call fcn.00406380
push eax
call fcn.0041b360
add esp, 0xc
test eax, eax
jne 0x4043dc
mov byte [ebp - 0x375], 1
jmp 0x40434c
movzx ecx, byte [ebp - 0x375]
test ecx, ecx
jne 0x4048ff
lea edx, [ebp - 0x354]
push edx
call fcn.0040d4c0
add esp, 4
mov dword [ebp - 0x3bc], eax
mov eax, dword [ebp - 0x3bc]
mov dword [ebp - 0x3b8], eax
mov byte [ebp - 4], 5
push str.libusb_drive_x64libusb0.sys
mov ecx, dword [ebp - 0x3b8]
push ecx
lea edx, [ebp - 0x294]
push edx
call fcn.0040a480
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x354]
call fcn.004061d0
lea eax, [ebp - 0x33c]
push eax
call fcn.0040d4c0
add esp, 4
mov dword [ebp - 0x3b4], eax
mov ecx, dword [ebp - 0x3b4]
mov dword [ebp - 0x3b0], ecx
mov byte [ebp - 4], 8
push str.libusb_drive_x64libusb0.dll
mov edx, dword [ebp - 0x3b0]
push edx
lea eax, [ebp - 0x2ac]
push eax
call fcn.0040a480
add esp, 0xc
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x33c]
call fcn.004061d0
mov cx, word [0x43ede8]
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.00416920
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x404509
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2ac]
call fcn.004061d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x294]
call fcn.004061d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3a8]
call fcn.00405e80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x27c]
call fcn.004061d0
jmp 0x403f84
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.00406240
mov byte [ebp - 4], 0xb
push 0x43edec
lea ecx, [ebp - 0x24c]
call fcn.00406180
push 0x43edf0
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x264]
push eax
call fcn.0040a3f0
add esp, 0xc
mov byte [ebp - 4], 0xc
push str.libusb0.dll
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x2c4]
push edx
call fcn.0040a3f0
add esp, 0xc
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x3ac], 0
lea eax, [ebp - 0x3ac]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
push 0
lea ecx, [ebp - 0x264]
call fcn.00406070
push eax
lea ecx, [ebp - 0x294]
call fcn.00406070
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x390], eax
cmp dword [ebp - 0x390], 0
jne 0x4045d1
push 0x40a390
push 0x43ee30
push 0x445808
call fcn.0040a070
add esp, 8
mov ecx, eax
call fcn.00405bd0
push 0
lea ecx, [ebp - 0x2c4]
call fcn.00406070
push eax
lea ecx, [ebp - 0x2ac]
call fcn.00406070
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x390], eax
cmp dword [ebp - 0x390], 0
jne 0x40461e
push 0x40a390
push str.cp_failed
push 0x445808
call fcn.0040a070
add esp, 8
mov ecx, eax
call fcn.00405bd0
mov ecx, dword [ebp - 0x3ac]
push ecx
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
push 3
push 1
lea ecx, [ebp - 0x264]
call fcn.00406070
push eax
push 0x43ee48
push 0x43ee58
call fcn.0040d550
add esp, 0x14
mov dword [ebp - 0x38c], eax
cmp dword [ebp - 0x38c], 0
jne 0x4046ca
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2c4]
call fcn.004061d0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x264]
call fcn.004061d0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x24c]
call fcn.004061d0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2ac]
call fcn.004061d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x294]
call fcn.004061d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3a8]
call fcn.00405e80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x27c]
call fcn.004061d0
jmp 0x403f84
push 0x43ee68
lea ecx, [ebp - 0x30c]
call fcn.00406730
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x30c]
push edx
lea ecx, [ebp - 0x3a8]
call fcn.00405c70
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x30c]
call fcn.00406680
lea eax, [ebp - 0x3a8]
push eax
lea ecx, [ebp - 0x2dc]
push ecx
call fcn.004039a0
add esp, 8
mov byte [ebp - 4], 0xf
push 0
lea ecx, [ebp - 0x2dc]
call fcn.00406050
shl eax, 1
push eax
lea ecx, [ebp - 0x2dc]
call fcn.00406070
push eax
push 0x2012
push 0x43f13c
lea edx, [ebp - 0x234]
push edx
mov eax, dword [ebp - 0x374]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiSetDevicePropertyW]
mov dword [ebp - 0x38c], eax
cmp dword [ebp - 0x38c], 0
jne 0x4047df
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x2dc]
call fcn.004061d0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2c4]
call fcn.004061d0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x264]
call fcn.004061d0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x24c]
call fcn.004061d0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2ac]
call fcn.004061d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x294]
call fcn.004061d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3a8]
call fcn.00405e80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x27c]
call fcn.004061d0
jmp 0x403f84
call fcn.00403220
movzx ecx, al
test ecx, ecx
je 0x404801
lea ecx, [ebp - 0x27c]
call fcn.00406070
push eax
call fcn.00403b50
add esp, 4
jmp 0x404828
mov dword [ebp - 0x3c4], 0
lea edx, [ebp - 0x3c4]
push edx
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x374]
push ecx
call fcn.00403aa0
add esp, 0xc
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x2dc]
call fcn.004061d0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2c4]
call fcn.004061d0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x264]
call fcn.004061d0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x24c]
call fcn.004061d0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2ac]
call fcn.004061d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x294]
call fcn.004061d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3a8]
call fcn.00405e80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x27c]
call fcn.004061d0
jmp 0x40494e
push 0x40a390
mov edx, dword [ebp - 0x370]
push edx
push str.fbuzz:
push 0x445808
call fcn.0040a070
add esp, 8
mov ecx, eax
call fcn.00405a40
mov ecx, eax
call fcn.00405bd0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3a8]
call fcn.00405e80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x27c]
call fcn.004061d0
jmp 0x403f84
mov eax, dword [ebp - 0x374]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2f4]
call fcn.00406680
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041417d
mov esp, ebp
pop ebp
ret