Function at 0x4010d0
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x54
test eax, eax
push ebp
je 0x4012f5
push eax
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x64], ebp
je 0x4012f5
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 4
push 0
push 0
push 4
push ebp
call edi
mov esi, eax
test esi, esi
je 0x401228
mov ecx, dword [esi + 0x424]
push ebx
lea eax, [esp + 0x10]
push 0
add ecx, esi
push eax
push ecx
mov dword [esp + 0x1c], 0
call sub.WINSPOOL.DRV_OpenPrinterA
mov eax, dword [esi]
cmp eax, 0x11223344
jne 0x40123a
mov ebx, dword [esi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
push 0
push 0
push 0xf001f
push ebp
call edi
mov esi, eax
test esi, esi
je 0x401212
lea edx, [esi + 0x210]
push edx
call fcn.00401000
add esp, 4
mov ebp, eax
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebp, ebp
mov dword [esp + 0x14], ebx
je 0x401203
test ebx, ebx
je 0x4011fc
mov eax, dword [esi + 0x420]
xor edi, edi
test eax, eax
je 0x40119d
lea edi, [eax + esi]
mov eax, dword [esi + 0x418]
dec eax
jne 0x4011fc
test edi, edi
je 0x4011fc
push str.uiInputDocumentInformation
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x4011f8
push 0x48
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.00401310
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push ebp
push eax
call ebx
cmp eax, 1
jne 0x4011f8
lea ecx, [esp + 0x1c]
push 0x48
push ecx
push edi
call fcn.00401310
add esp, 0xc
mov dword [esi + 0x41c], 1
mov ebx, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test ebx, ebx
je 0x40120e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebp, dword [esp + 0x70]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop ebx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401228
push eax
call sub.WINSPOOL.DRV_ClosePrinter
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x54
ret 0x10
cmp eax, 0x7867736d
jne 0x401212
mov ebx, dword [esi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
push 0
push 0
push 0xf001f
push ebp
call edi
mov esi, eax
test esi, esi
je 0x401212
lea edx, [esi + 0x210]
push edx
call fcn.00401000
add esp, 4
mov ebx, eax
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test ebx, ebx
mov dword [esp + 0x14], edi
je 0x4012e1
test edi, edi
je 0x4012da
mov ecx, dword [esi + 0x420]
cmp word [esi + 0x428], 0
mov ebp, dword [esi + 0x418]
lea edi, [esi + 0x428]
mov dword [esp + 0x18], ecx
jne 0x4012a9
xor edi, edi
mov edx, dword [esp + 0x14]
push str.uiDisplayMessageEx
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4012d2
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push edi
push ecx
push ebp
push ebx
push edx
call eax
mov dword [esi + 0x41c], eax
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x70]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
je 0x401212
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x401212
xor eax, eax
pop ebp
add esp, 0x54
ret 0x10