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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584e35
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
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 0x4b891a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x4b8c6b
mov ecx, 0x5f88b0
call dword [sym.imp.mfc90.dll_Ordinal_3178]
test eax, eax
jle 0x4b893e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x4b8c6b
cmp dword [0x5f8770], 0
jne 0x4b8a48
push 0x5a4598
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 - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4b899e
push 0
push 0
push 0x5a459c
call sub.mfc90.dll_Ordinal_1183
mov eax, dword [ebp - 0x28]
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 0x4b8c6b
push 2
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.MSVCR90.dll_ftell]
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
jge 0x4b89f5
push 0
push 0
push 0x5a45ac
call sub.mfc90.dll_Ordinal_1183
mov eax, dword [ebp - 0x28]
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 0x4b8c6b
mov ecx, dword [ebp - 0x20]
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 - 0x2c], eax
push 0
push 0
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 1
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
jmp 0x4b8a65
mov edx, dword [0x5f8770]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov edx, dword [0x5f8770]
add edx, 8
mov dword [ebp - 0x2c], edx
mov ecx, 0x5f87ec
call dword [sym.imp.mfc90.dll_Ordinal_3178]
cmp eax, 1
jge 0x4b8b20
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_3178]
cmp eax, 1
jge 0x4b8b20
push 0x5a45b8
push 0x5a45bc
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4b8aca
push 0
push 0
push 0x5a45c4
call sub.mfc90.dll_Ordinal_1183
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x4b8c6b
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 1
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
cmp dword [0x5f8770], 0
jne 0x4b8afe
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp - 0x28]
push edx
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 0x4b8c6b
mov dword [ebp - 0x34], 8
mov dword [ebp - 0x1c], 0x5a45d4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_3178]
test eax, eax
jle 0x4b8b91
push 0
lea eax, [ebp - 0x38]
push eax
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 0x4b8b8f
push 0
push 0
push 0x5a45e0
call sub.mfc90.dll_Ordinal_1183
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x4b8c6b
jmp 0x4b8bdb
push 0
lea ecx, [ebp - 0x38]
push ecx
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 0x4b8bdb
push 0
push 0
push 0x5a45f4
call sub.mfc90.dll_Ordinal_1183
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x4b8c6b
lea edx, [ebp - 0x1c]
push edx
push 1
mov eax, dword [ebp - 0x38]
push eax
call sub.WINSPOOL.DRV_StartDocPrinterA
test eax, eax
jne 0x4b8c17
push 0
push 0
push 0x5a4608
call sub.mfc90.dll_Ordinal_1183
mov ecx, dword [ebp - 0x38]
push ecx
call sub.WINSPOOL.DRV_ClosePrinter
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x4b8c6b
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call sub.WINSPOOL.DRV_WritePrinter
mov eax, dword [ebp - 0x38]
push eax
call sub.WINSPOOL.DRV_EndDocPrinter
mov ecx, dword [ebp - 0x38]
push ecx
call sub.WINSPOOL.DRV_ClosePrinter
cmp dword [0x5f8770], 0
jne 0x4b8c5b
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x2c]
push eax
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