Function at 0x44eb30
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x47ce80
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
push str._Test__LoadLibrary
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x20], 0
je 0x44eb81
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
call fcn.0044e450
cmp eax, 0xb
jne 0x44ed0b
mov eax, dword [0x4a7260]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0044e990
push str.FsDeviceLib64.dll
push eax
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x34], 0
call fcn.00408c80
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 0x14
push eax
call edi
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44ebea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x20], ebx
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44ec0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x20], 0
jne 0x44ec89
mov ecx, dword [0x4a7260]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0044e990
push str.FsDeviceLib64.dll
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x34], 1
call fcn.00408c80
mov eax, dword [eax]
add esp, 0x14
push eax
call edi
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44ec66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x20], ebx
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44ec89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x44ee84
mov edx, dword [0x4a743c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a743c
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CFsUsbDeviceLib::LoadLibraryW
lea ecx, [esp + 0x18]
push str._s__ERROR:_d
push ecx
call fcn.00402e80
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x10
mov dword [esp + 0x20], ebx
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x44ef77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov ecx, dword [0x4a7260]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0044e990
push str.FsUsbExDeviceLib.dll
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x34], 3
call fcn.00408c80
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 0x14
push eax
call edi
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44ed67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x20], ebx
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44ed8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x20], 0
jne 0x44ee06
mov ecx, dword [0x4a7260]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0044e990
push str.FsUsbExDeviceLib.dll
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x34], 4
call fcn.00408c80
mov eax, dword [eax]
add esp, 0x14
push eax
call edi
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44ede3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x20], ebx
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44ee06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x44ee84
mov edx, dword [0x4a743c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a743c
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CFsUsbDeviceLib::LoadLibraryW
lea ecx, [esp + 0x18]
push str._s__ERROR:_d
push ecx
call fcn.00402e80
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x10
mov dword [esp + 0x20], ebx
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x44ef77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FSUSB_Initize
push eax
call edi
mov ecx, dword [esi + 0x20]
push str.FSUSB_Finalize
push ecx
mov dword [esi], eax
call edi
mov edx, dword [esi + 0x20]
push str.FSUSB_LoadDevice
push edx
mov dword [esi + 4], eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 0x20]
push str.FSUSB_UnloadDevice
push eax
call edi
mov ecx, dword [esi + 0x20]
push str.FSUSB_Drive
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi + 0x20]
push str.FSUSB_Enable
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x20]
push str.FSUSB_Disable
push eax
call edi
mov ecx, dword [esi + 0x20]
push str.FSUSB_SetAgentPid
push ecx
mov dword [esi + 0x14], eax
call edi
mov ecx, dword [esi]
mov dword [esi + 0x1c], eax
test ecx, ecx
je 0x44ef66
cmp dword [esi + 4], 0
je 0x44ef66
cmp dword [esi + 8], 0
je 0x44ef66
cmp dword [esi + 0xc], 0
je 0x44ef66
cmp dword [esi + 0x18], 0
je 0x44ef66
cmp dword [esi + 0x10], 0
je 0x44ef66
cmp dword [esi + 0x14], 0
je 0x44ef66
test eax, eax
je 0x44ef66
cmp dword [esi + 0x20], 0
je 0x44ef48
call ecx
xor edx, edx
test eax, eax
sete dl
mov eax, edx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, ebx
xor edx, edx
test eax, eax
sete dl
mov eax, edx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x20], 0
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret