Function at 0x4b8450
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584e11
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5f8310]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
cmp dword [0x5f8620], 0
jne 0x4b849a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x4b88b2
mov ecx, 0x5f88b0
call dword [sym.imp.mfc90.dll_Ordinal_3178]
test eax, eax
jle 0x4b84be
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x4b88b2
cmp dword [0x5f8770], 0
jne 0x4b85c8
push 0x5a4514
mov ecx, 0x5f8888
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4b851e
push 0
push 0
push 0x5a4518
call sub.mfc90.dll_Ordinal_1183
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x4b88b2
push 2
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR90.dll_ftell]
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
jge 0x4b8575
push 0
push 0
push 0x5a4528
call sub.mfc90.dll_Ordinal_1183
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x4b88b2
mov ecx, dword [ebp - 0x24]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x30], eax
push 0
push 0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 1
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
jmp 0x4b85e5
mov edx, dword [0x5f8770]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov edx, dword [0x5f8770]
add edx, 8
mov dword [ebp - 0x30], edx
mov ecx, 0x5f87ec
call dword [sym.imp.mfc90.dll_Ordinal_3178]
cmp eax, 1
jge 0x4b870c
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_3178]
cmp eax, 1
jge 0x4b870c
push 0x5a4534
push 0x5a4538
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4b864a
push 0
push 0
push 0x5a4540
call sub.mfc90.dll_Ordinal_1183
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x4b88b2
push 0x5f85e0
call sub.MSVCR90.dll_strlen
add esp, 4
test eax, eax
jbe 0x4b8680
mov eax, dword [ebp - 0x2c]
push eax
push 0x5f85e0
call sub.MSVCR90.dll_strlen
add esp, 4
add eax, 1
push eax
push 1
push 0x5f85e0
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 1
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
push 0x5f85c0
call sub.MSVCR90.dll_strlen
add esp, 4
test eax, eax
jbe 0x4b86cd
mov ecx, dword [ebp - 0x2c]
push ecx
push 0x5f85c0
call sub.MSVCR90.dll_strlen
add esp, 4
add eax, 1
push eax
push 1
push 0x5f85c0
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
cmp dword [0x5f8770], 0
jne 0x4b86ea
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x4b88b2
mov dword [ebp - 0x38], 8
mov dword [ebp - 0x20], 0x5a4550
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_3178]
test eax, eax
jle 0x4b877d
push 0
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_3178]
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_2691]
push eax
call sub.WINSPOOL.DRV_OpenPrinterA
test eax, eax
jne 0x4b877b
push 0
push 0
push 0x5a455c
call sub.mfc90.dll_Ordinal_1183
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x4b88b2
jmp 0x4b87c7
push 0
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x5f87ec
call dword [sym.imp.mfc90.dll_Ordinal_3178]
push eax
mov ecx, 0x5f87ec
call dword [sym.imp.mfc90.dll_Ordinal_2691]
push eax
call sub.WINSPOOL.DRV_OpenPrinterA
test eax, eax
jne 0x4b87c7
push 0
push 0
push 0x5a4570
call sub.mfc90.dll_Ordinal_1183
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x4b88b2
lea ecx, [ebp - 0x20]
push ecx
push 1
mov edx, dword [ebp - 0x3c]
push edx
call sub.WINSPOOL.DRV_StartDocPrinterA
test eax, eax
jne 0x4b8806
push 0
push 0
push 0x5a4584
call sub.mfc90.dll_Ordinal_1183
mov eax, dword [ebp - 0x3c]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x4b88b2
push 0x5f85e0
call sub.MSVCR90.dll_strlen
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x4b8832
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0x5f85e0
mov eax, dword [ebp - 0x3c]
push eax
call sub.WINSPOOL.DRV_WritePrinter
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call sub.WINSPOOL.DRV_WritePrinter
push 0x5f85c0
call sub.MSVCR90.dll_strlen
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x4b8873
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x5f85c0
mov ecx, dword [ebp - 0x3c]
push ecx
call sub.WINSPOOL.DRV_WritePrinter
mov edx, dword [ebp - 0x3c]
push edx
call sub.WINSPOOL.DRV_EndDocPrinter
mov eax, dword [ebp - 0x3c]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
cmp dword [0x5f8770], 0
jne 0x4b88a2
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret