Function at 0x242360
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x2bea7b
mov eax, dword fs:[0]
push eax
sub esp, 0x6b0
mov eax, dword [0x2da130]
xor eax, esp
mov dword [esp + 0x6a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x2da130]
xor eax, esp
push eax
lea eax, [esp + 0x6c4]
mov dword fs:[0], eax
push 0x200
lea eax, [esp + 0x2b0]
push 0
push eax
call fcn.002a4930
xor eax, eax
add esp, 0xc
push 0x210
push eax
lea ecx, [esp + 0x4b4]
push ecx
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
call fcn.002a4930
add esp, 0xc
lea edx, [esp + 0x4ac]
push edx
push 0
mov ecx, 0x2f3bf8
call fcn.0025c39f
test eax, eax
jne 0x242714
push 0x210
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.002a4930
add esp, 0xc
lea ecx, [esp + 0x9c]
push ecx
push 0x2c9a70
mov ecx, 0x2f3bf8
call fcn.0025c39f
test eax, eax
jne 0x242714
mov bl, byte [esp + 0xbf]
mov ax, word [esp + 0xbd]
mov dx, word [esp + 0xbb]
movzx esi, bl
mov word [esp + 0x7e], ax
mov eax, 2
lea ecx, [esi - 1]
cmp ecx, eax
mov word [esp + 0x7c], dx
jl 0x2424a4
cmp eax, 5
jge 0x242492
mov dx, word [esp + eax*2 + 0xce]
jmp 0x24249a
mov dx, word [esp + eax*2 + 0x10a]
mov word [esp + eax*2 + 0x7c], dx
inc eax
cmp eax, ecx
jle 0x242483
mov al, byte [esp + 0xa9]
cmp al, 0xad
je 0x2424b3
cmp al, 0xdd
jne 0x242504
push 0x200
lea eax, [esp + 0x2b0]
push 0
push eax
call fcn.002a4930
add esp, 0xc
xor eax, eax
mov byte [esp + 0x2ac], 0
mov byte [esp + 0x2ad], bl
test esi, esi
jle 0x242504
nop
movzx ecx, word [esp + eax*2 + 0x7c]
test cx, cx
je 0x2424ff
shr ecx, 8
mov byte [esp + eax*2 + 0x2ae], cl
mov cl, byte [esp + eax*2 + 0x7c]
mov byte [esp + eax*2 + 0x2af], cl
inc eax
cmp eax, esi
jl 0x2424e0
mov dl, byte [esp + 0x6d4]
xor eax, eax
cmp byte [esp + 0x63a], 0x54
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov byte [esp + 0x6c], 6
mov byte [esp + 0x6d], 9
mov byte [esp + 0x6e], dl
jne 0x242543
push 3
push 0x2c9a74
lea eax, [esp + 0x77]
push eax
jmp 0x24254f
push 6
push 0x2c9a78
lea ecx, [esp + 0x77]
push ecx
call fcn.002a18b0
movzx edx, byte [0x2f4409]
add esp, 0xc
push edx
mov byte [esp + 0x76], 0x48
mov byte [esp + 0x77], 0x56
mov byte [esp + 0x78], 0
call fcn.00241d10
add esp, 4
mov dword [0x2f3b44], eax
cmp eax, 0xffffffff
je 0x2425ae
call fcn.00242740
test eax, eax
je 0x242712
mov ecx, dword [0x2f3b44]
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0x90020
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
movzx edx, byte [0x2f4409]
push edx
mov dword [esp + 0x18], 0
call fcn.00241d10
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
mov esi, eax
call ebp
cmp esi, 0xffffffff
jne 0x2425dc
mov esi, 2
jmp 0x24264b
lea eax, [esp + 0x2ac]
push eax
push 0x4b0
push 0x200
lea edi, [esp + 0x78]
mov ebx, 0x10
lea eax, [esp + 0x28]
call fcn.00241b30
add esp, 0xc
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x50
lea edx, [esp + 0x28]
push edx
push 0x50
mov eax, edx
push eax
push 0x4d014
push esi
mov byte [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
call ebp
mov ebx, eax
cmp dword [0x2f3b44], esi
je 0x24263c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x242649
movzx esi, byte [esp + 0x1e]
neg esi
jmp 0x24264b
mov esi, ebx
call fcn.0028cc1d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x242665
push 0x80004005
call fcn.002418a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push esi
lea ecx, [esp + 0x1c]
push str.Preformat_6:__d
push ecx
mov dword [esp + 0x6d8], 0
call fcn.002414a0
mov esi, dword [esp + 0x24]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.002427b0
mov edi, eax
test edi, edi
je 0x2426d4
add esi, 0xfffffff0
mov dword [esp + 0x6cc], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x2426d0
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
jmp 0x242714
mov ecx, dword [0x2f3b44]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov dword [0x2f3b44], 0
mov dword [esp + 0x6cc], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x242712
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x6c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6a8]
xor ecx, esp
call fcn.002a105e
add esp, 0x6bc
ret