Function at 0x40fbb0
Capabilities:
Create mailslot
Link many functions at runtime

Disassembly:
push esi
push edi
push str.Advapi32.dll
mov esi, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi + 0x44b0], eax
test eax, eax
je 0x40fc6b
push str.RegCreateKeyExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4f87a8
push dword [edi + 0x44b0]
mov dword [edi + 0x44b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegSetValueExA
push dword [edi + 0x44b0]
mov dword [edi + 0x44b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4f87c8
push dword [edi + 0x44b0]
mov dword [edi + 0x44bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegDeleteValueA
push dword [edi + 0x44b0]
mov dword [edi + 0x44c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4f87ec
push dword [edi + 0x44b0]
mov dword [edi + 0x44c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegDeleteKeyExA
push dword [edi + 0x44b0]
mov dword [edi + 0x44c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x44cc], eax
push 0
push 0
push 8
push str..mailslotyoctopuce_yapi
call dword [sym.imp.KERNEL32.dll_CreateMailslotA]
mov dword [edi + 0x4480], eax
cmp eax, 0xffffffff
jne 0x40fcb5
test esi, esi
je 0x40fcad
push 0x121
push str.ypkt_win
push str.Another_process_is_already_using_yAPI
push str._s___s:_d_
push 0x100
push esi
call fcn.0041c830
add esp, 0x18
pop edi
mov eax, 0xfffffff5
pop esi
ret
push str.HID.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi + 0x4494], eax
test eax, eax
jne 0x40fd32
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x40fd2a
push edi
push 0x466c20
push 0x141
push str.ypkt_win
push str._s:_d:__s__d_
push 0x100
push esi
call fcn.0041c830
mov ecx, esi
add esp, 0x1c
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fd00
push 0
sub ecx, edx
mov eax, 0x100
sub eax, ecx
push eax
lea eax, [ecx + esi]
push eax
push 0x400
push edi
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
pop edi
mov eax, 0xfffffff8
pop esi
ret
push str.HidD_GetHidGuid
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HidD_GetAttributes
push dword [edi + 0x4494]
mov dword [edi + 0x4498], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HidD_GetManufacturerString
push dword [edi + 0x4494]
mov dword [edi + 0x449c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HidD_GetProductString
push dword [edi + 0x4494]
mov dword [edi + 0x44a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HidD_GetSerialNumberString
push dword [edi + 0x4494]
mov dword [edi + 0x44a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HidD_SetNumInputBuffers
push dword [edi + 0x4494]
mov dword [edi + 0x44a8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x18
mov dword [edi + 0x44ac], eax
call fcn.00449be3
mov esi, eax
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push esi
movq qword [esi + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi + 0x4488], esi
xor eax, eax
pop edi
pop esi
ret