Function at 0x4101c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x446d00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0x438258
push edi
mov dword [esi + 0x20], 1
call fcn.00412e60
mov ebx, eax
add esp, 8
mov dword [ebp - 0x8c], ebx
test ebx, ebx
jne 0x410210
push eax
push edi
push str.Nem_nyilik_PCX_file_:
call fcn.004060d0
add esp, 0xc
jmp 0x4104a5
push ebx
push 1
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.0041c50c
add esp, 0x10
cmp eax, 1
je 0x410244
push 0
push edi
push str.Nem_olvas_PCX_file_bol_:
call fcn.004060d0
push ebx
call fcn.00412d70
jmp 0x4104a2
cmp byte [ebp - 0x83], 5
jne 0x41048e
cmp byte [ebp - 0x84], 0xa
jne 0x41048e
cmp byte [ebp - 0x82], 1
jne 0x41048e
cmp byte [ebp - 0x81], 8
jne 0x41048e
cmp byte [ebp - 0x43], 1
jne 0x41048e
movsx eax, word [ebp - 0x7e]
movsx ecx, word [ebp - 0x7a]
sub ecx, eax
movsx eax, word [ebp - 0x80]
inc ecx
push ecx
movsx ecx, word [ebp - 0x7c]
sub ecx, eax
inc ecx
push ecx
mov ecx, esi
call fcn.0040f570
test eax, eax
jne 0x4102b3
push ebx
call fcn.00412d70
add esp, 4
jmp 0x4104a5
xor eax, eax
xor ebx, ebx
cmp ax, word [esi + 0xa]
jge 0x410437
xor edi, edi
nop dword [eax]
nop word [eax + eax]
push dword [ebp - 0x8c]
lea eax, [ebp - 0x85]
push 1
push 1
push eax
call fcn.0041c50c
movzx ecx, byte [ebp - 0x85]
add esp, 0x10
cmp eax, 1
jne 0x410458
mov al, cl
and al, 0xc0
cmp al, 0xc0
jne 0x4103cd
push dword [ebp - 0x8c]
and ecx, 0x3f
movzx eax, cx
push 1
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x85]
push 1
push eax
mov dword [ebp - 0x98], ecx
call fcn.0041c50c
movzx edx, byte [ebp - 0x85]
add esp, 0x10
mov dword [ebp - 0x90], edx
cmp eax, 1
jne 0x410458
cmp word [ebp - 0x98], 0
je 0x410420
mov eax, dword [ebp - 0x94]
nop word [eax + eax]
dec eax
mov dword [ebp - 0x94], eax
movzx eax, word [esi + 8]
cmp di, ax
jge 0x4103bf
cmp dword [esi + 0x20], 0
movsx ecx, di
jne 0x410389
push 0
push 0
push str.pic8::ppixelben_success__0_
call fcn.004060d0
jmp 0x4103b6
test ecx, ecx
js 0x4103bf
cwde
cmp ecx, eax
jge 0x4103bf
test ebx, ebx
js 0x4103bf
movsx eax, word [esi + 0xa]
cmp ebx, eax
jge 0x4103bf
cmp dword [esi], 0
jne 0x4103ae
mov eax, dword [esi + 0xc]
mov eax, dword [eax + ebx*4]
mov byte [ecx + eax], dl
jmp 0x4103b9
push edx
push ebx
push ecx
call fcn.004055f0
add esp, 0xc
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x94]
inc edi
test ax, ax
jne 0x410360
jmp 0x410420
movzx eax, word [esi + 8]
cmp di, ax
jge 0x41041f
cmp dword [esi + 0x20], 0
movsx edx, di
jne 0x4103ef
push 0
push 0
push str.pic8::ppixelben_success__0_
call fcn.004060d0
jmp 0x41041c
test edx, edx
js 0x41041f
cwde
cmp edx, eax
jge 0x41041f
test ebx, ebx
js 0x41041f
movsx eax, word [esi + 0xa]
cmp ebx, eax
jge 0x41041f
cmp dword [esi], 0
jne 0x410414
mov eax, dword [esi + 0xc]
mov eax, dword [eax + ebx*4]
mov byte [edx + eax], cl
jmp 0x41041f
push ecx
push ebx
push edx
call fcn.004055f0
add esp, 0xc
inc edi
cmp di, word [ebp - 0x42]
jl 0x4102d0
movsx eax, word [esi + 0xa]
inc ebx
cmp ebx, eax
jl 0x4102c1
push dword [ebp - 0x8c]
call fcn.00412d70
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419297
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push str._nNem_tud_olvasni_PCX_ben
call fcn.004060d0
push dword [ebp - 0x8c]
mov dword [esi + 0x20], 0
call fcn.00412d70
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419297
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push str._nNem_megfelelo_PCX_file_header_
call fcn.004060d0
push ebx
call fcn.0041f0e0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x20], 0
xor ecx, ebp
pop esi
pop ebx
call fcn.00419297
mov esp, ebp
pop ebp
ret 4