Function at 0x48d860
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4d3100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov edx, 0x588880
sub edx, edi
lea esp, [esp]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x48d880
mov esi, dword [0x53c278]
mov ebx, dword [sym.imp.GDI32.dll_GdiFlush]
test esi, esi
je 0x48d8da
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x38]
test ecx, ecx
je 0x48d8ac
mov dword [ecx + 0x38], eax
jmp 0x48d8b1
mov dword [0x53c124], eax
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x48d8be
mov eax, dword [esi + 0x34]
mov dword [ecx + 0x34], eax
call ebx
push dword [esi + 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esi + 0x24]
call fcn.00494034
push esi
call fcn.00494034
add esp, 8
mov esi, dword [0x53c16c]
test esi, esi
je 0x48d921
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x38]
test ecx, ecx
je 0x48d8f3
mov dword [ecx + 0x38], eax
jmp 0x48d8f8
mov dword [0x53c124], eax
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x48d905
mov eax, dword [esi + 0x34]
mov dword [ecx + 0x34], eax
call ebx
push dword [esi + 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esi + 0x24]
call fcn.00494034
push esi
call fcn.00494034
add esp, 8
mov edx, 0x4c3d40
mov dword [0x53c16c], 0
mov ecx, edi
mov dword [0x53c278], 0
call fcn.004816c0
mov edi, eax
lea eax, [ebp - 0x14]
push edi
push 1
push 0xe
push eax
call fcn.00495739
add esp, 0x10
cmp eax, 1
jne 0x48dcaf
mov eax, 0x4d42
cmp word [ebp - 0x14], ax
jne 0x48dcaf
mov ebx, dword [ebp - 0x12]
lea eax, [ebx + 0x20]
push eax
call fcn.00497cab
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
test esi, esi
jne 0x48d99a
push 0x10
push str.malloc
push 0x4c9a90
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ebx, dword [ebp - 0x12]
push edi
push 1
push ebx
push esi
call fcn.00495739
push edi
call fcn.00494b54
movzx eax, word [esi + 0xe]
add esp, 0x14
cmp eax, 8
je 0x48db95
cmp eax, 0x18
je 0x48daea
cmp eax, 0x20
jne 0x48dad0
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x18
call fcn.00486160
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
push 1
mov dword [0x53c278], eax
call fcn.004863b0
mov ebx, dword [0x53c278]
mov edi, eax
xor eax, eax
mov dword [ebp - 0x28], edi
add esp, 0xc
mov dword [0x53c16c], edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], eax
cmp dword [ebx + 4], eax
jle 0x48daa8
push eax
mov ecx, esi
call fcn.004928c0
mov edx, dword [ebx + 8]
add esp, 4
mov ecx, dword [edi + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
imul edx, eax
imul ecx, eax
mov dword [ebp - 0x1c], 0
add edx, dword [ebx + 0x2c]
add ecx, dword [edi + 0x2c]
cmp dword [ebx], 0
mov dword [ebp - 0x30], ecx
jle 0x48da91
mov esi, dword [ebp - 0x24]
mov edi, ecx
add esi, 3
movzx eax, byte [esi - 1]
lea edx, [edx + 3]
mov byte [edx - 1], al
lea edi, [edi + 1]
movzx eax, byte [esi - 3]
lea esi, [esi + 4]
mov byte [edx - 3], al
movzx eax, byte [esi - 6]
mov byte [edx - 2], al
movzx eax, byte [esi - 4]
or dword [ebp - 0x20], eax
or al, 0xff
sub al, byte [esi - 4]
mov byte [edi - 1], al
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebx]
jl 0x48da50
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebx + 4]
jl 0x48da16
cmp dword [ebp - 0x20], 0
jne 0x48dca4
mov edx, 1
mov ecx, edi
call fcn.00486020
mov ebx, dword [0x53c278]
xor edi, edi
push esi
mov dword [0x53c16c], edi
call fcn.00494034
add esp, 4
jmp 0x48dcc8
mov edi, dword [0x53c16c]
mov ebx, dword [0x53c278]
push esi
call fcn.00494034
add esp, 4
jmp 0x48dcc8
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x18
call fcn.00486160
mov ebx, eax
mov dword [ebp - 0x18], 0
add esp, 8
mov dword [0x53c278], ebx
cmp dword [ebx + 4], 0
jle 0x48db81
mov ecx, dword [esi]
cmp ecx, 0xc
jne 0x48db1e
movzx eax, word [esi + 4]
jmp 0x48db21
mov eax, dword [esi + 4]
lea eax, [eax + eax*2]
add eax, 3
and eax, 0xfffffffc
mov dword [ebp - 0x1c], eax
cmp ecx, 0xc
jne 0x48db38
movzx edi, word [esi + 6]
jmp 0x48db3b
mov edi, dword [esi + 8]
mov ecx, esi
call fcn.00492860
mov ecx, eax
test edi, edi
js 0x48db52
sub edi, dword [ebp - 0x18]
dec edi
imul edi, dword [ebp - 0x1c]
jmp 0x48db59
mov edi, dword [ebp - 0x1c]
imul edi, dword [ebp - 0x18]
mov eax, dword [ebx]
lea eax, [eax + eax*2]
push eax
lea eax, [edi + ecx]
mov edi, dword [ebp - 0x18]
push eax
mov eax, dword [ebx + 8]
imul eax, edi
add eax, dword [ebx + 0x2c]
push eax
call fcn.0049c4f0
inc edi
add esp, 0xc
mov dword [ebp - 0x18], edi
cmp edi, dword [ebx + 4]
jl 0x48db11
mov edi, dword [0x53c16c]
push esi
call fcn.00494034
add esp, 4
jmp 0x48dcc8
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
push 1
call fcn.004863b0
mov edi, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [0x53c16c], edi
cmp dword [edi + 4], 0
jle 0x48dc26
lea ebx, [ebx]
mov ecx, dword [esi]
cmp ecx, 0xc
jne 0x48dbcd
movzx eax, word [esi + 4]
jmp 0x48dbd0
mov eax, dword [esi + 4]
add eax, 3
and eax, 0xfffffffc
mov dword [ebp - 0x1c], eax
cmp ecx, 0xc
jne 0x48dbe4
movzx ebx, word [esi + 6]
jmp 0x48dbe7
mov ebx, dword [esi + 8]
mov ecx, esi
call fcn.00492860
test ebx, ebx
js 0x48dbfc
sub ebx, dword [ebp - 0x18]
dec ebx
imul ebx, dword [ebp - 0x1c]
jmp 0x48dc03
mov ebx, dword [ebp - 0x1c]
imul ebx, dword [ebp - 0x18]
push dword [edi]
add eax, ebx
mov ebx, dword [ebp - 0x18]
push eax
mov eax, dword [edi + 8]
imul eax, ebx
add eax, dword [edi + 0x2c]
push eax
call fcn.0049c4f0
inc ebx
add esp, 0xc
mov dword [ebp - 0x18], ebx
cmp ebx, dword [edi + 4]
jl 0x48dbc0
cmp dword [esi], 0xc
je 0x48dc66
lea ebx, [esi + 0x28]
test ebx, ebx
je 0x48dc61
xor edx, edx
mov ecx, dword [edi + 0x28]
movzx eax, byte [ebx + edx + 2]
mov byte [ecx + edx + 2], al
mov ecx, dword [edi + 0x28]
movzx eax, byte [ebx + edx + 1]
mov byte [ecx + edx + 1], al
mov ecx, dword [edi + 0x28]
movzx eax, byte [ebx + edx]
mov byte [edx + ecx], al
add edx, 4
cmp edx, 0x400
jl 0x48dc34
cmp dword [esi], 0xc
jne 0x48dc9e
lea ebx, [esi + 0xc]
test ebx, ebx
je 0x48dc9e
xor edx, edx
inc ebx
mov ecx, dword [edi + 0x28]
lea ebx, [ebx + 3]
movzx eax, byte [ebx - 2]
mov byte [ecx + edx + 2], al
mov ecx, dword [edi + 0x28]
movzx eax, byte [ebx - 3]
mov byte [ecx + edx + 1], al
mov ecx, dword [edi + 0x28]
movzx eax, byte [ebx - 4]
mov byte [edx + ecx], al
add edx, 4
cmp edx, 0x400
jl 0x48dc70
mov ebx, dword [0x53c278]
push esi
call fcn.00494034
add esp, 4
jmp 0x48dcc8
test edi, edi
je 0x48dcbc
push edi
call fcn.00494b54
add esp, 4
mov edi, dword [0x53c16c]
mov ebx, dword [0x53c278]
mov dword [0x53c27c], ebx
mov dword [0x53c274], edi
test ebx, ebx
je 0x48dcf5
mov dword [0x53c278], 0
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493955
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
mov dword [0x53c16c], 0
pop ebx
call fcn.00493955
mov esp, ebp
pop ebp
ret