Function at 0x481ba0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x174], ebx
call fcn.0045d240
movzx eax, ax
add esp, 4
mov dword [ebp - 0x188], eax
mov dword [ebx + 0x3c], eax
mov dword [ebp - 0x170], 0
test eax, eax
jle 0x481d3b
mov bx, word [ebp + 0x10]
lea ecx, [ecx]
push esi
call fcn.0045d240
push esi
movzx edi, ax
call fcn.0045d070
add esp, 8
cmp edi, 1
jne 0x481c1b
cmp bx, di
jne 0x481c35
push edi
push 0xe
push dword [esi]
call fcn.00595cb4
add esp, 0xc
jmp 0x481c5d
cmp edi, 2
jne 0x481c5d
push esi
call fcn.0045d070
push esi
call fcn.0045d240
add esp, 8
cmp bx, 1
jne 0x481c41
push dword [esi]
call fcn.00597fff
add esp, 4
jmp 0x481c5d
push esi
call fcn.0045d070
push 1
add eax, eax
push eax
push dword [esi]
call fcn.00595cb4
push dword [esi]
call fcn.00597fff
add esp, 0x14
push esi
call fcn.0045d240
push esi
call fcn.0045d240
push esi
call fcn.0045d240
push esi
call fcn.0045d240
push esi
call fcn.0045d070
push esi
mov ebx, eax
call fcn.0045d070
push esi
mov edi, eax
call fcn.0045d070
push esi
mov dword [ebp - 0x17c], eax
call fcn.0045d070
push esi
mov dword [ebp - 0x178], eax
call fcn.0045d240
push dword [esi]
movzx eax, ax
mov dword [ebp - 0x184], eax
call fcn.00597fff
mov ecx, dword [ebp - 0x170]
mov edx, eax
mov eax, dword [ebp - 0x178]
add esp, 0x28
sub eax, edi
mov dword [ebp - 0x180], edx
mov edi, dword [ebp - 0x17c]
sub edi, ebx
mov dword [ebp - 0x178], eax
mov ebx, dword [ebp - 0x174]
mov dword [ebp - 0x17c], edi
cmp ecx, dword [ebx + 0x90]
je 0x481d51
xor ebx, ebx
test edx, edx
jne 0x481cfb
mov ebx, edi
imul ebx, eax
jmp 0x481d11
test edi, edi
jle 0x481d11
nop
push esi
call fcn.0045d240
movzx eax, ax
add esp, 4
add ebx, eax
dec edi
jne 0x481d00
push 1
push ebx
push dword [esi]
call fcn.00595cb4
mov ebx, dword [ebp - 0x170]
add esp, 0xc
inc ebx
cmp ebx, dword [ebp - 0x188]
mov dword [ebp - 0x170], ebx
mov bx, word [ebp + 0x10]
jl 0x481bf0
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
lea eax, [ebp - 0x16c]
push eax
call fcn.00457d90
mov eax, dword [0x5d9098]
mov edx, 1
mov ecx, dword [ebp - 0x178]
add esp, 4
movq xmm0, qword [str.Adobe_Brush]
mov dword [ebp - 0x7e], eax
mov eax, dword [ebp - 0x184]
mov word [ebp - 0x152], ax
cwde
imul eax, ecx
mov word [ebp - 0x154], dx
movq qword [ebp - 0x86], xmm0
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x158], edi
cdq
and edx, 7
mov dword [ebp - 0x164], edi
add eax, edx
sar eax, 3
cmp dword [ebp - 0x180], 0
mov dword [ebp - 0x14c], eax
je 0x481dd1
mov eax, 1
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x16c]
push eax
push ebx
call fcn.00456000
movzx ebx, ax
add esp, 8
mov dword [ebp - 0x170], ebx
test bx, bx
jne 0x481e5e
xor ebx, ebx
cmp dword [ebp - 0x180], ebx
jne 0x481e79
test edi, edi
jle 0x481e44
push dword [esi]
push 1
push dword [ebp - 0x178]
push dword [ebp - 0x160]
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x481e72
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x174]
call fcn.004585b0
movzx eax, ax
add esp, 0x10
mov dword [ebp - 0x170], eax
test ax, ax
jne 0x481e44
inc ebx
cmp ebx, edi
jl 0x481e01
mov ebx, dword [ebp - 0x170]
push 0
push 0
push 0
push dword [ebp - 0x174]
call fcn.00453f80
add esp, 0x10
mov ecx, dword [ebp - 4]
mov ax, bx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov ebx, 4
jmp 0x481e4a
test edi, edi
jle 0x481e91
lea ecx, [ecx]
push esi
call fcn.0045d240
movzx eax, ax
add esp, 4
add ebx, eax
dec edi
jne 0x481e80
push ebx
call fcn.00593e38
push dword [esi]
mov edi, eax
push 1
push ebx
push edi
call fcn.00595b79
push dword [ebp - 0x160]
push ebx
push edi
call fcn.00482320
mov eax, dword [ebp - 0x17c]
push eax
push 0
push 0xffffffffffffffff
push dword [ebp - 0x174]
call fcn.004585b0
push edi
movzx ebx, ax
call fcn.00592c4b
add esp, 0x34
jmp 0x481e4a