Function at 0x40b71c
Capabilities:
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff5c
push 0x2280
push 0x4137c4
call sub.ntdll.dll_RtlZeroMemory
mov eax, 0x80
call fcn.00408b1c
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], 0xf
mov edi, 0x41581c
push 0x80
mov eax, dword [esp + 0x20]
push eax
call sub.ntdll.dll_RtlZeroMemory
mov eax, dword [esp + 0x24]
push eax
push 0x40bc20
mov eax, dword [esp + 0x24]
push eax
call sub.ntdll.dll_swprintf
add esp, 0xc
mov eax, dword [esp + 0x1c]
push eax
lea eax, [esp + 4]
push eax
call sub.ntdll.dll_RtlInitUnicodeString
push 0
push 0
lea edx, [esp + 8]
lea eax, [esp + 0x68]
mov ecx, 0x40
call fcn.00407d20
xor eax, eax
mov dword [esp + 0x10], eax
push 0x40
push 3
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x6c]
push eax
push 0x120089
lea eax, [esp + 0x24]
push eax
call sub.ntdll.dll_NtOpenFile
cmp dword [esp + 0x10], 0
je 0x40bbf5
push 0x18
lea eax, [esp + 0x4c]
push eax
push 0
push 0
push 0x70000
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
mov eax, dword [esp + 0x34]
push eax
call sub.ntdll.dll_NtDeviceIoControlFile
mov esi, eax
cmp dword [esp + 8], 0x103
jne 0x40b808
push 0
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.ntdll.dll_NtWaitForSingleObject
test esi, esi
je 0x40b829
push esi
push 0x40bc58
call sub.ntdll.dll_DbgPrint
add esp, 8
mov eax, dword [esp + 0x10]
push eax
call sub.ntdll.dll_NtClose
jmp 0x40bbf5
mov eax, dword [esp + 0x54]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
call fcn.00403b6c
mov dword [edi], eax
mov dword [edi + 4], edx
mov eax, dword [esp + 0x5c]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x60]
xor edx, edx
push edx
push eax
mov eax, dword [edi]
mov edx, dword [edi + 4]
call fcn.00403b6c
call fcn.00403b6c
mov dword [edi], eax
mov dword [edi + 4], edx
push 0x70000
mov eax, dword [edi]
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x3c]
mov eax, dword [eax]
push eax
mov eax, dword [edi]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x30]
push eax
push 0x40bc8c
call sub.ntdll.dll_DbgPrint
add esp, 0x14
mov eax, dword [esp + 0x50]
mov dword [edi + 8], eax
push 0x20
lea eax, [esp + 0x88]
push eax
call sub.ntdll.dll_RtlZeroMemory
lea eax, [esp + 0x84]
push eax
mov ecx, edi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
call fcn.0040b5b0
mov esi, 0xc80
mov eax, esi
call fcn.00408b1c
mov dword [esp + 0x14], eax
push esi
mov eax, dword [esp + 0x18]
push eax
call sub.ntdll.dll_RtlZeroMemory
mov eax, 0x80
call fcn.00408b1c
mov dword [esp + 0x18], eax
push esi
mov eax, dword [esp + 0x18]
push eax
push 0
push 0
push 0x70050
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
mov eax, dword [esp + 0x34]
push eax
call sub.ntdll.dll_NtDeviceIoControlFile
mov esi, eax
test esi, esi
je 0x40b95b
push 0x70050
push esi
push 0x40bcb4
call sub.ntdll.dll_DbgPrint
add esp, 0xc
mov eax, dword [esp + 0x10]
push eax
call sub.ntdll.dll_NtClose
mov eax, dword [esp + 0x14]
call fcn.00408b30
mov eax, dword [esp + 0x18]
call fcn.00408b30
jmp 0x40bc13
cmp dword [esp + 8], 0x103
jne 0x40b973
push 0
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.ntdll.dll_NtWaitForSingleObject
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
xor edx, edx
cmp edx, 0
jne 0x40b991
cmp eax, 0
jne 0x40b991
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
mov dword [edi + 0x10], eax
jmp 0x40b996
xor eax, eax
mov dword [edi + 0x10], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
dec eax
test eax, eax
jl 0x40bbd2
inc eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x20]
add eax, eax
lea eax, [eax + eax*8]
mov edx, dword [esp + 0x14]
lea ebp, [edx + eax*8 + 0x30]
mov eax, dword [ebp]
test eax, eax
jne 0x40ba30
mov al, byte [ebp + 0x20]
test al, al
je 0x40bbc4
cmp al, 5
je 0x40bbc4
cmp al, 0xf
je 0x40bbc4
cmp dword [ebp + 0x18], 0
je 0x40bbc4
mov eax, dword [esp + 0x28]
shl eax, 2
lea ebx, [edi + eax*8 + 0x28]
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x14], eax
mov al, byte [ebp + 0x20]
mov byte [ebx + 0x18], al
inc dword [esp + 0x28]
jmp 0x40ba96
cmp eax, 1
jne 0x40bbc4
lea eax, [ebp + 0x20]
cmp dword [eax], 0
jne 0x40ba57
cmp dword [eax + 4], 0
jne 0x40ba57
cmp dword [eax + 8], 0
jne 0x40ba57
cmp dword [eax + 0xc], 0
je 0x40bbc4
cmp dword [ebp + 0x18], 0
je 0x40bbc4
mov eax, dword [esp + 0x28]
shl eax, 2
lea ebx, [edi + eax*8 + 0x28]
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0xc], eax
xor eax, eax
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x14], eax
mov byte [ebx + 0x18], 7
inc dword [esp + 0x28]
xor eax, eax
mov al, byte [ebx + 0x18]
push eax
mov eax, dword [ebx + 0x14]
push eax
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebx + 0xc]
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [esp + 0x3c]
push eax
push 0x40bcec
call sub.ntdll.dll_DbgPrint
add esp, 0x24
push 0x80
mov eax, dword [esp + 0x1c]
push eax
call sub.ntdll.dll_RtlZeroMemory
mov eax, dword [ebx + 0x14]
push eax
mov eax, dword [esp + 0x28]
push eax
push 0x40bd24
mov eax, dword [esp + 0x24]
push eax
call sub.ntdll.dll_swprintf
add esp, 0x10
push 4
lea eax, [ebx + 0x19]
push eax
call sub.ntdll.dll_RtlZeroMemory
xor esi, esi
push 0xc
lea eax, [esp + 0x7c]
push eax
call sub.ntdll.dll_RtlZeroMemory
lea eax, [esi + 0x43]
push eax
push 0x40bd64
lea eax, [esp + 0x80]
push eax
call sub.ntdll.dll_swprintf
add esp, 0xc
lea eax, [esp + 0x78]
mov edx, dword [esp + 0x18]
call fcn.0040b114
test al, al
je 0x40bb47
mov eax, esi
add al, 0x43
mov byte [ebx + 0x19], al
mov byte [ebx + 0x1a], 0x3a
mov byte [ebx + 0x1b], 0x5c
mov byte [ebx + 0x1c], 0
jmp 0x40bb4d
inc esi
cmp esi, 0x18
jne 0x40bafc
mov esi, 0x10
lea eax, [esp + 0x84]
xor edx, edx
mov dl, byte [eax]
cmp edx, dword [ebp + 0x18]
jne 0x40bb72
mov dl, byte [ebx + 0x19]
cmp dl, byte [eax + 1]
je 0x40bb78
mov al, byte [eax + 1]
mov byte [ebx + 0x1d], al
jmp 0x40bb78
add eax, 2
dec esi
jne 0x40bb59
mov al, byte [ebx + 0x19]
test al, al
jne 0x40bba2
xor eax, eax
mov al, byte [ebx + 0x18]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push eax
push 0x40bd6c
call sub.ntdll.dll_DbgPrint
add esp, 0x14
jmp 0x40bbc4
push eax
xor eax, eax
mov al, byte [ebx + 0x18]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x34]
push eax
push 0x40bd90
call sub.ntdll.dll_DbgPrint
add esp, 0x18
inc dword [esp + 0x20]
dec dword [esp + 0x40]
jne 0x40b9b9
mov eax, dword [esp + 0x28]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x14]
call fcn.00408b30
mov eax, dword [esp + 0x18]
call fcn.00408b30
mov eax, dword [esp + 0x10]
push eax
call sub.ntdll.dll_NtClose
dec dword [esp + 0x24]
sub edi, 0x228
cmp dword [esp + 0x24], 0xffffffff
jne 0x40b750
mov eax, dword [esp + 0x1c]
call fcn.00408b30
add esp, 0xa4
pop ebp
pop edi
pop esi
pop ebx
ret