Function at 0x471228
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa38
push edi
mov dword [ebp - 0xa38], ecx
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x218], 0xffffffff
mov dword [ebp - 0x214], 0
mov eax, dword [ebp + 8]
push eax
call sub.ntdll.dll_strlen
add esp, 4
mov dword [ebp - 0x210], eax
mov word [ebp - 0x208], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 4
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
jne 0x4712b5
push 8
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
jne 0x4712c9
mov eax, dword [ebp - 0x218]
jmp 0x4714e1
mov dword [ebp - 0x214], 0
jmp 0x4712e4
mov ecx, dword [ebp - 0x214]
add ecx, 1
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
cmp edx, dword [ebp - 0x210]
jae 0x47130f
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x214]
movsx cx, byte [eax]
mov edx, dword [ebp - 0x214]
mov word [ebp + edx*2 - 0x208], cx
jmp 0x4712d5
mov eax, dword [ebp - 0x214]
mov word [ebp + eax*2 - 0x208], 0
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.ntdll.dll__wcslwr]
add esp, 4
mov edx, dword [ebp - 0xa38]
cmp dword [edx + 0x108], 0
jne 0x471361
push str.ZwQueryInformationFile
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0xa38]
mov dword [ecx + 0x108], eax
mov edx, dword [ebp - 0xa38]
cmp dword [edx + 0x108], 0
jne 0x47137b
mov eax, dword [ebp - 0x218]
jmp 0x4714e1
mov dword [ebp - 0x214], 0
jmp 0x471396
mov eax, dword [ebp - 0x214]
add eax, 1
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffff
jae 0x4714db
mov dword [ebp - 0x21c], 0xffffffff
push 2
push 0
push 0
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov edx, dword [ebp - 0x214]
push edx
mov eax, dword [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4714d6
mov byte [ebp - 0xa1c], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xa1b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 9
push 0x800
lea ecx, [ebp - 0xa1c]
push ecx
lea edx, [ebp - 0xa2c]
push edx
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0xa38]
call dword [ecx + 0x108]
mov dword [ebp - 0xa30], eax
cmp dword [ebp - 0xa30], 0
jne 0x4714c9
lea edx, [ebp - 0xa1c]
mov dword [ebp - 0xa34], edx
mov eax, dword [ebp - 0x210]
shl eax, 1
mov ecx, dword [ebp - 0xa34]
cmp dword [ecx], eax
ja 0x4714c9
mov edx, dword [ebp - 0xa34]
add edx, 4
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0xa34]
add eax, 4
push eax
call dword [sym.imp.ntdll.dll__wcslwr]
add esp, 4
mov ecx, dword [ebp - 0xa34]
add ecx, 4
push ecx
lea edx, [ebp - 0x208]
push edx
call fcn.00416810
add esp, 8
test eax, eax
je 0x4714c9
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov edx, dword [ebp - 0x214]
push edx
mov eax, dword [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
jmp 0x4714db
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x471387
mov eax, dword [ebp - 0x218]
pop edi
mov esp, ebp
pop ebp
ret 4