Function at 0x403250
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
push ebx
push esi
push edi
xor eax, eax
mov ebx, ecx
push 0x7e
push eax
mov word [ebp - 0x148], ax
lea eax, [ebp - 0x146]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
xor eax, eax
mov word [ebp - 0x348], ax
push 0x1fe
push eax
lea eax, [ebp - 0x346]
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov dword [ebp - 4], 0
xor eax, eax
mov byte [ebp - 0x24], 0
mov word [ebp - 0xc8], ax
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x23], xmm0
push 0x7e
push eax
lea eax, [ebp - 0xc6]
movq qword [ebp - 0x13], xmm0
push eax
mov dword [ebp - 0xb], 0
mov word [ebp - 7], 0
mov byte [ebp - 5], 0
call sub.ntoskrnl.exe_memset
movdqu xmm0, xmmword [0x46ec04]
mov ax, word [0x46ec24]
add esp, 0xc
mov word [ebp - 0x28], ax
movdqu xmmword [ebp - 0x48], xmm0
movdqu xmm0, xmmword [0x46ec14]
movdqu xmmword [ebp - 0x38], xmm0
test ebx, ebx
je 0x40354d
push 0x5c
push dword [ebx + 4]
call dword [sym.imp.ntoskrnl.exe_wcsrchr]
add esp, 8
test eax, eax
je 0x40354d
movzx edx, word [ebx]
mov esi, dword [ebx + 4]
sub edx, eax
add esi, 0xfffffffe
add eax, 2
add esi, edx
shr esi, 1
push esi
push eax
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.ntoskrnl.exe_wcsncpy]
mov edi, dword [sym.imp.ntoskrnl.exe_DbgPrint]
add esp, 0xc
push esi
push str.len_d_n
call edi
add esp, 8
mov edx, 0x470da0
mov ecx, ebx
call fcn.00403560
test al, al
jne 0x403373
push str.GetDriverImagePath__Failed_n
call edi
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x470da4]
lea edx, [ebp - 4]
call fcn.00403100
mov esi, eax
test esi, esi
jne 0x403398
push str.ReadFile_Failed_n
call edi
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
lea ecx, [ebp - 0x24]
push edi
mov edx, esi
call fcn.00403fe0
xor edx, edx
jmp 0x4033b0
movzx ecx, byte [ebp + edx - 0x24]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, word [ebp + eax*2 - 0x48]
mov word [ebp + edx*4 - 0xc8], ax
movzx eax, word [ebp + ecx*2 - 0x48]
mov word [ebp + edx*4 - 0xc6], ax
inc edx
cmp edx, 0x10
jl 0x4033b0
mov ecx, dword [0x470db4]
mov edx, 0x80
mov dword [0x470da8], esi
lea esi, [ebp - 0xc8]
mov dword [0x470dac], edi
lea ebx, [ebx]
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x403420
movzx eax, word [esi]
test ax, ax
je 0x403420
mov word [ecx], ax
add esi, 2
add ecx, 2
dec edx
jne 0x403400
jmp 0x403424
test edx, edx
jne 0x403427
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea ecx, [ebp - 0xc8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403435
sub ecx, edx
lea esi, [ebp - 0x348]
sar ecx, 1
mov edx, 0x200
lea eax, [ecx + ecx]
mov ecx, dword [0x470dc4]
mov word [0x470db0], ax
mov edi, edi
lea eax, [edx + 0x7ffffdfe]
test eax, eax
je 0x403480
movzx eax, word [esi]
test ax, ax
je 0x403480
mov word [ecx], ax
add esi, 2
add ecx, 2
dec edx
jne 0x403460
jmp 0x403484
test edx, edx
jne 0x403487
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea ecx, [ebp - 0x348]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403495
sub ecx, edx
sar ecx, 1
push 0x74637673
push 0x400
push 0
lea eax, [ecx + ecx]
mov word [0x470dc0], ax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push 0x400
mov ebx, eax
push 0
push ebx
call sub.ntoskrnl.exe_memset
mov ecx, str._services_
mov edx, ebx
add esp, 0xc
sub edx, ecx
lea ebx, [ebx]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4034e0
lea edx, [ebp - 0x148]
mov esi, edx
jmp 0x403500
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x403500
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403510
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.ntoskrnl.exe__wcsupr]
add esp, 4
push ebx
push 0x4712b8
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
inc dword [0x4712b4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret