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

Disassembly:
push 0xffffffffffffffff
push 0x4798f0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x49ef38]
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 0x44dc91
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.0044d5a0
cmp eax, 0xb
jne 0x44de1b
mov eax, dword [0x49f310]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0044daa0
push str.FsDeviceLib64.dll
push eax
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x34], 0
call fcn.004084d0
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 0x44dcfa
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 0x44dd1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x20], 0
jne 0x44dd99
mov ecx, dword [0x49f310]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0044daa0
push str.FsDeviceLib64.dll
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x34], 1
call fcn.004084d0
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 0x44dd76
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 0x44dd99
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 0x44df94
mov edx, dword [0x49f4e4]
mov eax, dword [edx + 0xc]
mov ecx, 0x49f4e4
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.00402eb0
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 0x44e087
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 [0x49f310]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0044daa0
push str.FsUsbExDeviceLib.dll
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x34], 3
call fcn.004084d0
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 0x44de77
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 0x44de9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x20], 0
jne 0x44df16
mov ecx, dword [0x49f310]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0044daa0
push str.FsUsbExDeviceLib.dll
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x34], 4
call fcn.004084d0
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 0x44def3
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 0x44df16
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 0x44df94
mov edx, dword [0x49f4e4]
mov eax, dword [edx + 0xc]
mov ecx, 0x49f4e4
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.00402eb0
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 0x44e087
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 0x44e076
cmp dword [esi + 4], 0
je 0x44e076
cmp dword [esi + 8], 0
je 0x44e076
cmp dword [esi + 0xc], 0
je 0x44e076
cmp dword [esi + 0x18], 0
je 0x44e076
cmp dword [esi + 0x10], 0
je 0x44e076
cmp dword [esi + 0x14], 0
je 0x44e076
test eax, eax
je 0x44e076
cmp dword [esi + 0x20], 0
je 0x44e058
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