Function at 0x4698ef
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x51f5d0]
xor eax, esp
mov dword [esp + 0x268], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x3e
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
mov edi, ecx
push ebx
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
call fcn.004c05d0
mov esi, 0x103
push esi
lea eax, [esp + 0x179]
push ebx
push eax
mov byte [esp + 0x180], bl
call fcn.004c05d0
push esi
lea eax, [esp + 0x7d]
push ebx
push eax
mov byte [esp + 0x84], bl
call fcn.004c05d0
mov edx, dword [esp + 0x34]
add esp, 0x24
mov dword [esp + 0xc], ebx
call fcn.00485754
test eax, eax
jne 0x469c34
mov ecx, dword [esp + 0x10]
push 0x160b
push str..Printer.c
mov edx, 0x4de27c
call fcn.0041c35a
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [esp + 0x10], esi
je 0x469c34
mov eax, edi
call fcn.0046b5ea
test eax, eax
je 0x469c2d
mov edx, edi
call fcn.0046b5fb
test eax, eax
je 0x469c2d
push esi
push 0x42
lea eax, [esp + 0x20]
push 1
push eax
call fcn.004c0915
add esp, 0x10
cmp eax, 0x42
jne 0x469ade
cmp dword [esp + 0x20], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
je 0x469a68
push dword [esp + 0x10]
lea eax, [esp + 0x10]
push 4
push 1
push eax
mov dword [esp + 0x1c], ebx
call fcn.004c0915
add esp, 0x10
cmp eax, 4
jne 0x469ade
cmp dword [esp + 0xc], ebx
jle 0x469a64
push dword [esp + 0xc]
push 0x42
call esi
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x469a68
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x469a5a
push dword [esp + 0x10]
push dword [esp + 0x10]
push 1
push eax
call fcn.004c0915
add esp, 0x10
cmp eax, dword [esp + 0xc]
push dword [esp + 0x20]
je 0x469a52
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 0x20]
jmp 0x469ad8
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x469a68
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x24], ebx
je 0x469b04
push dword [esp + 0x10]
lea eax, [esp + 0x10]
push 4
push 1
push eax
mov dword [esp + 0x1c], ebx
call fcn.004c0915
add esp, 0x10
cmp eax, 4
jne 0x469ade
cmp dword [esp + 0xc], ebx
jle 0x469b00
push dword [esp + 0xc]
push 0x42
call esi
cmp eax, ebx
mov dword [esp + 0x24], eax
je 0x469b04
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x469af6
push dword [esp + 0x10]
push dword [esp + 0x10]
push 1
push eax
call fcn.004c0915
add esp, 0x10
cmp eax, dword [esp + 0xc]
push dword [esp + 0x24]
je 0x469aee
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
call fcn.0046b62e
push dword [esp + 0x10]
jmp 0x469c2e
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x469b04
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esp + 0x24], ebx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x469b15
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [edi + 0x14], ebx
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x469b26
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [edi + 0xc], ebx
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x469b37
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [edi + 0x10], ebx
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp esi, ebx
je 0x469b9d
movzx eax, word [esi + 2]
cmp ax, bx
mov edi, 0x104
jbe 0x469b6c
movzx eax, ax
add eax, esi
push eax
mov ecx, edi
lea eax, [esp + 0x16c]
call fcn.00485786
pop ecx
jmp 0x469b73
mov byte [esp + 0x168], bl
movzx eax, word [esi]
cmp ax, bx
jbe 0x469b8f
movzx eax, ax
add eax, esi
push eax
mov ecx, edi
lea eax, [esp + 0x64]
call fcn.00485786
pop ecx
jmp 0x469b93
mov byte [esp + 0x60], bl
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x60]
push eax
call fcn.004bf880
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
lea eax, [esp + 0x64]
and esi, eax
lea eax, [esp + 0x16c]
push eax
call fcn.004bf880
xor ecx, ecx
cmp ecx, eax
sbb edi, edi
lea eax, [esp + 0x170]
and edi, eax
push 0x42
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
add eax, 4
push eax
call fcn.004bfed0
add esp, 0x14
cmp dword [esp + 0x20], ebx
je 0x469c15
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x469c15
push eax
push ebx
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ecx, dword [esp + 0x14]
push dword [esp + 0x20]
mov dword [ecx + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x14]
call fcn.0046b62e
push dword [esp + 0x10]
call fcn.0041c787
xor eax, eax
pop ecx
inc eax
jmp 0x469c36
push esi
call fcn.0041c787
pop ecx
xor eax, eax
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bfeb5
mov esp, ebp
pop ebp
ret