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

Disassembly:
push 0xffffffffffffffff
push 0x479a50
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x49eef8]
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 0x44e331
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.0044d9a0
cmp eax, 0xb
jne 0x44e4bb
mov eax, dword [0x49f2a0]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0044e140
push str.FsDeviceLib64.dll
push eax
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x34], 0
call fcn.004083e0
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 0x44e39a
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 0x44e3bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x20], 0
jne 0x44e439
mov ecx, dword [0x49f2a0]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0044e140
push str.FsDeviceLib64.dll
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x34], 1
call fcn.004083e0
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 0x44e416
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 0x44e439
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 0x44e634
mov edx, dword [0x49f474]
mov eax, dword [edx + 0xc]
mov ecx, 0x49f474
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.00402e10
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 0x44e727
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 [0x49f2a0]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0044e140
push str.FsUsbExDeviceLib.dll
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x34], 3
call fcn.004083e0
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 0x44e517
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 0x44e53a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x20], 0
jne 0x44e5b6
mov ecx, dword [0x49f2a0]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0044e140
push str.FsUsbExDeviceLib.dll
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x34], 4
call fcn.004083e0
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 0x44e593
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 0x44e5b6
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 0x44e634
mov edx, dword [0x49f474]
mov eax, dword [edx + 0xc]
mov ecx, 0x49f474
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.00402e10
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 0x44e727
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 0x44e716
cmp dword [esi + 4], 0
je 0x44e716
cmp dword [esi + 8], 0
je 0x44e716
cmp dword [esi + 0xc], 0
je 0x44e716
cmp dword [esi + 0x18], 0
je 0x44e716
cmp dword [esi + 0x10], 0
je 0x44e716
cmp dword [esi + 0x14], 0
je 0x44e716
test eax, eax
je 0x44e716
cmp dword [esi + 0x20], 0
je 0x44e6f8
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