Function at 0x4aac10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x47c
mov eax, dword [0x537700]
xor eax, esp
mov dword [esp + 0x478], eax
mov eax, dword [esp + 0x484]
mov edx, dword [esp + 0x490]
push ebp
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x48c]
push esi
mov esi, dword [esp + 0x488]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x494]
mov dword [esp + 0x7c], eax
mov eax, dword [esi + 0xa8]
mov dword [esp + 0x48], esi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 0
cmp eax, dword [esi + 0xac]
jb 0x4aacac
cmp dword [esi + 0x20], 0
je 0x4ab900
push esi
call fcn.004b3e50
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
cmp cl, 0x42
jne 0x4ab900
cmp eax, dword [esi + 0xac]
jb 0x4aacdf
cmp dword [esi + 0x20], 0
je 0x4ab900
push esi
call fcn.004b3e50
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
cmp cl, 0x4d
jne 0x4ab900
push ebx
push edi
push esi
call fcn.004ad800
push esi
call fcn.004ad800
push esi
call fcn.004ad800
push esi
call fcn.004ad800
push esi
call fcn.004ad800
push esi
mov edi, eax
call fcn.004ad800
shl eax, 0x10
add eax, edi
push esi
mov dword [esp + 0x2c], eax
call fcn.004ad800
push esi
mov edi, eax
call fcn.004ad800
mov ebx, eax
add esp, 0x20
shl ebx, 0x10
add ebx, edi
cmp ebx, 0xc
je 0x4aad7d
cmp ebx, 0x28
je 0x4aad78
cmp ebx, 0x38
je 0x4aad78
cmp ebx, 0x6c
je 0x4aad78
cmp ebx, 0x7c
je 0x4aad78
mov dword [0x53bc30], str.unknown_BMP
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0x478]
xor ecx, esp
call fcn.004b847a
add esp, 0x47c
ret
cmp ebx, 0xc
jne 0x4aad90
push esi
call fcn.004ad800
push esi
mov dword [esi], eax
call fcn.004ad800
add esp, 8
jmp 0x4aadbb
push esi
call fcn.004ad800
push esi
mov edi, eax
call fcn.004ad800
shl eax, 0x10
add eax, edi
push esi
mov dword [esi], eax
call fcn.004ad800
push esi
mov edi, eax
call fcn.004ad800
shl eax, 0x10
add esp, 0x10
add eax, edi
push esi
mov dword [esi + 4], eax
call fcn.004ad800
add esp, 4
cmp eax, 1
jne 0x4ab8f1
push esi
call fcn.004ad800
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
cmp ecx, 1
jne 0x4aadf3
mov dword [0x53bc30], str.monochrome
jmp 0x4aad5d
mov eax, dword [esi + 4]
mov dword [esp + 0x78], eax
cdq
xor eax, edx
sub eax, edx
mov dword [esi + 4], eax
cmp ebx, 0xc
jne 0x4aae2a
mov edi, dword [esp + 0x10]
cmp ecx, 0x18
jge 0x4aafbd
lea ecx, [edi - 0x26]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
jmp 0x4aafb9
push esi
call fcn.004ad8b0
mov edi, eax
add esp, 4
cmp edi, 1
je 0x4ab8e2
cmp edi, 2
je 0x4ab8e2
push esi
call fcn.004ad8b0
push esi
call fcn.004ad8b0
push esi
call fcn.004ad8b0
push esi
call fcn.004ad8b0
push esi
call fcn.004ad8b0
add esp, 0x14
cmp ebx, 0x28
je 0x4aaf07
push esi
cmp ebx, 0x38
je 0x4aaeed
call fcn.004ad8b0
push esi
mov dword [esp + 0x2c], eax
call fcn.004ad8b0
push esi
mov dword [esp + 0x38], eax
call fcn.004ad8b0
push esi
mov dword [esp + 0x40], eax
call fcn.004ad8b0
push esi
mov dword [esp + 0x48], eax
call fcn.004ad8b0
add esp, 0x14
mov edi, 0xc
nop dword [eax]
push esi
call fcn.004ad800
push esi
call fcn.004ad800
add esp, 8
sub edi, 1
jne 0x4aaeb0
cmp ebx, 0x7c
jne 0x4aafa2
push esi
call fcn.004ad8b0
push esi
call fcn.004ad8b0
push esi
call fcn.004ad8b0
push esi
call fcn.004ad8b0
add esp, 0x10
jmp 0x4aafa2
call fcn.004ad8b0
push esi
call fcn.004ad8b0
push esi
call fcn.004ad8b0
push esi
call fcn.004ad8b0
add esp, 0x10
mov edx, dword [esp + 0x1c]
cmp edx, 0x10
je 0x4aaf19
cmp edx, 0x20
jne 0x4aafa6
test edi, edi
jne 0x4aaf66
cmp edx, 0x20
mov ecx, 0x7c00
mov eax, 0xff0000
mov edi, 0xff00
cmovne eax, ecx
mov ecx, 0xff
mov dword [esp + 0x24], eax
mov eax, 0x3e0
cmovne edi, eax
mov eax, 0x1f
cmovne ecx, eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ecx
mov eax, 0xff000000
xor ecx, ecx
cmp edx, 0x20
cmovne eax, ecx
mov dword [esp + 0x34], eax
jmp 0x4aafa6
cmp edi, 3
jne 0x4ab8f1
push esi
call fcn.004ad8b0
push esi
mov dword [esp + 0x2c], eax
call fcn.004ad8b0
mov edi, eax
push esi
mov dword [esp + 0x38], edi
call fcn.004ad8b0
add esp, 0xc
mov ecx, eax
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x24], edi
jne 0x4aafa2
cmp edi, ecx
je 0x4ab8f1
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
cmp edx, 0x10
jge 0x4aafbd
mov eax, edi
sub eax, ebx
sub eax, 0xe
sar eax, 2
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x64]
xor ecx, ecx
cmp dword [esp + 0x34], ecx
setne cl
add ecx, 3
mov dword [esp + 0x28], ecx
mov dword [esi + 8], ecx
test eax, eax
je 0x4aafe3
cmp eax, 3
jl 0x4aafe3
mov ecx, eax
mov dword [esp + 0x28], ecx
mov eax, dword [esi]
imul eax, ecx
imul eax, dword [esi + 4]
push eax
call fcn.004c9df9
mov ecx, eax
add esp, 4
mov dword [esp + 0x20], ecx
test ecx, ecx
jne 0x4ab00e
mov dword [0x53bc30], str.outofmem
jmp 0x4aad5d
cmp dword [esp + 0x1c], 0x10
jge 0x4ab36b
mov eax, dword [esp + 0x14]
xor edi, edi
test eax, eax
je 0x4ab353
cmp eax, 0x100
jg 0x4ab353
mov dword [esp + 0x18], edi
test eax, eax
jle 0x4ab14c
mov edi, eax
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x4ab059
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4ab07b
cmp dword [esi + 0x20], 0
je 0x4ab079
push esi
call fcn.004b3e50
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4ab07b
xor cl, cl
mov edx, dword [esp + 0x18]
mov byte [esp + edx*4 + 0x8a], cl
cmp eax, dword [esi + 0xac]
jae 0x4ab099
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4ab0bf
cmp dword [esi + 0x20], 0
je 0x4ab0bd
push esi
call fcn.004b3e50
mov eax, dword [esi + 0xa8]
add esp, 4
mov edx, dword [esp + 0x18]
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4ab0bf
xor cl, cl
mov byte [esp + edx*4 + 0x89], cl
cmp eax, dword [esi + 0xac]
jae 0x4ab0d9
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4ab0ff
cmp dword [esi + 0x20], 0
je 0x4ab0fd
push esi
call fcn.004b3e50
mov eax, dword [esi + 0xa8]
add esp, 4
mov edx, dword [esp + 0x18]
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4ab0ff
xor cl, cl
mov byte [esp + edx*4 + 0x88], cl
cmp ebx, 0xc
je 0x4ab131
cmp eax, dword [esi + 0xac]
jae 0x4ab11c
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4ab131
cmp dword [esi + 0x20], 0
je 0x4ab131
push esi
call fcn.004b3e50
add esp, 4
inc dword [esi + 0xa8]
mov ecx, dword [esp + 0x18]
mov byte [esp + ecx*4 + 0x8b], 0xff
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, edi
jl 0x4ab040
xor edi, edi
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ebx, 0xc
setne al
add eax, 3
imul eax, dword [esp + 0x14]
sub ecx, eax
sub ecx, ebx
sub ecx, 0xe
push ecx
push esi
call fcn.004b4490
mov eax, dword [esp + 0x24]
add esp, 8
cmp eax, 4
jne 0x4ab181
mov ebx, dword [esi]
inc ebx
shr ebx, 1
jmp 0x4ab18c
cmp eax, 8
jne 0x4ab338
mov ebx, dword [esi]
mov edx, dword [esi + 4]
neg ebx
and ebx, 3
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], ebx
test edx, edx
jle 0x4ab810
nop dword [eax + eax]
xor ebp, ebp
cmp dword [esi], ebp
jle 0x4ab2e9
nop word [eax + eax]
mov edx, dword [esi + 0xa8]
cmp edx, dword [esi + 0xac]
jae 0x4ab1d9
mov cl, byte [edx]
inc edx
mov dword [esi + 0xa8], edx
jmp 0x4ab1fd
cmp dword [esi + 0x20], 0
je 0x4ab1fb
push esi
call fcn.004b3e50
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
lea edx, [eax + 1]
mov dword [esi + 0xa8], edx
jmp 0x4ab1fd
xor cl, cl
mov esi, dword [esp + 0x20]
movzx eax, cl
xor ecx, ecx
mov ebx, eax
and ebx, 0xf
cmp dword [esp + 0x1c], 4
cmovne ebx, ecx
mov ecx, eax
shr ecx, 4
cmp dword [esp + 0x1c], 4
cmovne ecx, eax
movzx eax, byte [esp + ecx*4 + 0x88]
mov byte [edi + esi], al
movzx eax, byte [esp + ecx*4 + 0x89]
mov byte [edi + esi + 1], al
movzx eax, byte [esp + ecx*4 + 0x8a]
mov ecx, esi
mov esi, dword [esp + 0x50]
mov byte [edi + ecx + 2], al
add edi, 3
cmp dword [esp + 0x28], 4
jne 0x4ab258
mov byte [edi + ecx], 0xff
inc edi
lea eax, [ebp + 1]
cmp eax, dword [esi]
je 0x4ab2e5
cmp dword [esp + 0x1c], 8
jne 0x4ab2a8
cmp edx, dword [esi + 0xac]
jae 0x4ab27f
mov cl, byte [edx]
lea eax, [edx + 1]
mov dword [esi + 0xa8], eax
jmp 0x4ab2a1
cmp dword [esi + 0x20], 0
je 0x4ab29f
push esi
call fcn.004b3e50
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4ab2a1
xor cl, cl
movzx ebx, cl
mov ecx, dword [esp + 0x20]
movzx eax, byte [esp + ebx*4 + 0x88]
mov byte [edi + ecx], al
movzx eax, byte [esp + ebx*4 + 0x89]
mov byte [edi + ecx + 1], al
movzx eax, byte [esp + ebx*4 + 0x8a]
mov byte [edi + ecx + 2], al
add edi, 3
cmp dword [esp + 0x28], 4
jne 0x4ab2da
mov byte [edi + ecx], 0xff
inc edi
add ebp, 2
cmp ebp, dword [esi]
jl 0x4ab1c0
mov ebx, dword [esp + 0x38]
cmp dword [esi + 0x10], 0
je 0x4ab319
mov eax, dword [esi + 0xac]
mov ecx, eax
sub ecx, dword [esi + 0xa8]
cmp ecx, ebx
jge 0x4ab319
mov dword [esi + 0xa8], eax
mov eax, ebx
sub eax, ecx
push eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x14]
call eax
add esp, 8
jmp 0x4ab31f
add dword [esi + 0xa8], ebx
mov eax, dword [esp + 0x3c]
mov edx, dword [esi + 4]
inc eax
mov dword [esp + 0x3c], eax
cmp eax, edx
jl 0x4ab1b0
jmp 0x4ab810
push dword [esp + 0x20]
call fcn.004c3859
add esp, 4
mov dword [0x53bc30], 0x4fdee8
jmp 0x4aad5d
push ecx
call fcn.004c3859
add esp, 4
mov dword [0x53bc30], 0x4fdee0
jmp 0x4aad5d
xor eax, eax
mov dword [esp + 0x14], 0
sub edi, ebx
mov dword [esp + 0x4c], 0
sub edi, 0xe
mov dword [esp + 0x3c], 0
push edi
xor ebp, ebp
mov dword [esp + 0x5c], 0
push esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], eax
call fcn.004b4490
mov edx, dword [esp + 0x24]
add esp, 8
cmp edx, 0x18
jne 0x4ab3da
mov ecx, dword [esi]
xor ebx, ebx
and ecx, 3
xor edi, edi
mov dword [esp + 0x40], ecx
mov ecx, 1
mov dword [esp + 0x18], ecx
jmp 0x4ab4ea
cmp edx, 0x10
jne 0x4ab425
mov eax, dword [esi]
mov edx, dword [esp + 0x30]
add eax, eax
neg eax
and eax, 3
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4ab40a
test ebx, ebx
je 0x4ab40a
test edx, edx
jne 0x4ab47a
push dword [esp + 0x20]
call fcn.004c3859
add esp, 4
mov dword [0x53bc30], 0x4fdef0
jmp 0x4aad5d
xor ecx, ecx
cmp edx, 0x20
mov edx, dword [esp + 0x30]
mov eax, ecx
mov dword [esp + 0x40], ecx
jne 0x4ab3ec
cmp edx, 0xff
jne 0x4ab3ec
mov ebx, dword [esp + 0x2c]
cmp ebx, 0xff00
jne 0x4ab3f0
cmp dword [esp + 0x24], 0xff0000
jne 0x4ab3f0
cmp dword [esp + 0x34], 0xff000000
jne 0x4ab476
mov dword [esp + 0x40], ecx
xor ebx, ebx
mov dword [esp + 0x18], 2
lea ecx, [eax + 2]
xor edi, edi
jmp 0x4ab4ea
mov eax, dword [esp + 0x24]
push eax
call fcn.004ae540
push dword [esp + 0x28]
lea edi, [eax - 7]
mov dword [esp + 0x1c], edi
call fcn.004aabc0
push ebx
mov dword [esp + 0x60], eax
call fcn.004ae540
sub eax, 7
push ebx
mov dword [esp + 0x5c], eax
call fcn.004aabc0
mov ebx, dword [esp + 0x40]
push ebx
mov dword [esp + 0x58], eax
call fcn.004ae540
sub eax, 7
push ebx
mov dword [esp + 0x54], eax
call fcn.004aabc0
push dword [esp + 0x4c]
mov dword [esp + 0x64], eax
call fcn.004ae540
push dword [esp + 0x50]
lea ebx, [eax - 7]
mov dword [esp + 0x78], ebx
call fcn.004aabc0
mov ecx, dword [esp + 0x38]
add esp, 0x20
mov dword [esp + 0x5c], eax
mov edx, dword [esi + 4]
mov dword [esp + 0x38], ebp
test edx, edx
jle 0x4ab810
mov eax, edi
neg eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x4c]
neg eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x3c]
neg eax
mov dword [esp + 0x70], eax
mov eax, ebx
neg eax
mov dword [esp + 0x74], eax
nop dword [eax]
mov eax, dword [esi]
test ecx, ecx
je 0x4ab651
xor edi, edi
test eax, eax
jle 0x4ab7bc
mov ebx, dword [esp + 0x20]
nop dword [eax + eax]
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x4ab559
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4ab57b
cmp dword [esi + 0x20], 0
je 0x4ab579
push esi
call fcn.004b3e50
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4ab57b
xor cl, cl
mov byte [ebx + ebp + 2], cl
cmp eax, dword [esi + 0xac]
jae 0x4ab592
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4ab5b4
cmp dword [esi + 0x20], 0
je 0x4ab5b2
push esi
call fcn.004b3e50
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4ab5b4
xor cl, cl
mov byte [ebx + ebp + 1], cl
cmp eax, dword [esi + 0xac]
jae 0x4ab5cb
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4ab5ed
cmp dword [esi + 0x20], 0
je 0x4ab5eb
push esi
call fcn.004b3e50
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4ab5ed
xor cl, cl
mov byte [ebx + ebp], cl
add ebp, 3
cmp dword [esp + 0x18], 2
jne 0x4ab631
cmp eax, dword [esi + 0xac]
jae 0x4ab60d
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4ab634
cmp dword [esi + 0x20], 0
je 0x4ab62d
push esi
call fcn.004b3e50
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4ab634
xor cl, cl
jmp 0x4ab634
or cl, 0xff
cmp dword [esp + 0x28], 4
jne 0x4ab63f
mov byte [ebx + ebp], cl
inc ebp
inc edi
cmp edi, dword [esi]
jl 0x4ab540
mov dword [esp + 0x10], ebp
jmp 0x4ab7bc
mov dword [esp + 0x60], 0
test eax, eax
jle 0x4ab7c0
push esi
call fcn.004ad800
cmp dword [esp + 0x20], 0x10
jne 0x4ab675
add esp, 4
mov ebp, eax
jmp 0x4ab68b
push esi
mov edi, eax
call fcn.004ad800
mov ebp, eax
add esp, 8
shl ebp, 0x10
add ebp, edi
mov edi, dword [esp + 0x14]
mov edx, ebp
and edx, dword [esp + 0x24]
test edi, edi
jns 0x4ab69d
mov ecx, dword [esp + 0x68]
shl edx, cl
jmp 0x4ab6a1
mov ecx, edi
sar edx, cl
mov edi, dword [esp + 0x54]
mov ebx, edx
mov ecx, edi
cmp edi, 8
jge 0x4ab6bd
nop
mov eax, edx
sar eax, cl
add ecx, edi
add ebx, eax
cmp ecx, 8
jl 0x4ab6b0
mov eax, dword [esp + 0x10]
mov edx, ebp
mov edi, dword [esp + 0x20]
and edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x4c]
mov byte [eax + edi], bl
inc eax
mov dword [esp + 0x10], eax
test ecx, ecx
jns 0x4ab6e3
mov ecx, dword [esp + 0x6c]
shl edx, cl
jmp 0x4ab6e5
sar edx, cl
mov ecx, dword [esp + 0x44]
mov ebx, edx
cmp ecx, 8
jge 0x4ab707
mov esi, ecx
mov eax, edx
sar eax, cl
add ecx, esi
add ebx, eax
cmp ecx, 8
jl 0x4ab6f2
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
mov edx, ebp
and edx, dword [esp + 0x30]
mov byte [eax + edi], bl
inc eax
mov dword [esp + 0x10], eax
test ecx, ecx
jns 0x4ab725
mov ecx, dword [esp + 0x70]
shl edx, cl
jmp 0x4ab727
sar edx, cl
mov ecx, dword [esp + 0x48]
mov ebx, edx
cmp ecx, 8
jge 0x4ab749
mov esi, ecx
mov eax, edx
sar eax, cl
add ecx, esi
add ebx, eax
cmp ecx, 8
jl 0x4ab734
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x10]
mov byte [eax + edi], bl
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4ab78f
and ebp, eax
mov eax, dword [esp + 0x58]
test eax, eax
jns 0x4ab76b
mov ecx, dword [esp + 0x74]
shl ebp, cl
jmp 0x4ab76f
mov ecx, eax
sar ebp, cl
mov ebx, dword [esp + 0x5c]
mov edx, ebp
mov ecx, ebx
cmp ebx, 8
jge 0x4ab794
nop dword [eax]
mov eax, ebp
sar eax, cl
add ecx, ebx
add edx, eax
cmp ecx, 8
jl 0x4ab780
jmp 0x4ab794
mov edx, 0xff
cmp dword [esp + 0x28], 4
mov ebp, dword [esp + 0x10]
jne 0x4ab7a7
mov byte [edi + ebp], dl
inc ebp
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x60], ecx
cmp ecx, dword [esi]
jl 0x4ab661
mov edi, dword [esp + 0x14]
cmp dword [esi + 0x10], 0
mov edx, dword [esp + 0x40]
je 0x4ab7f2
mov eax, dword [esi + 0xac]
mov ecx, eax
sub ecx, dword [esi + 0xa8]
cmp ecx, edx
jge 0x4ab7f2
sub edx, ecx
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0x14]
push edx
push dword [esi + 0x1c]
call eax
add esp, 8
jmp 0x4ab7f8
add dword [esi + 0xa8], edx
mov eax, dword [esp + 0x38]
mov edx, dword [esi + 4]
inc eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], eax
cmp eax, edx
jl 0x4ab520
cmp dword [esp + 0x78], 0
mov ecx, edx
jle 0x4ab887
xor ebp, ebp
mov dword [esp + 0x38], ebp
test edx, 0xfffffffe
jle 0x4ab887
mov eax, dword [esi]
sub edx, ebp
dec edx
mov ebx, eax
imul edx, eax
xor edi, edi
imul eax, dword [esp + 0x28]
imul ebx, ebp
imul edx, dword [esp + 0x28]
imul ebx, dword [esp + 0x28]
add edx, dword [esp + 0x20]
add ebx, dword [esp + 0x20]
test eax, eax
jle 0x4ab875
mov ebp, dword [esp + 0x28]
sub ebx, edx
mov al, byte [edx]
lea edx, [edx + 1]
mov cl, byte [edx + ebx - 1]
inc edi
mov byte [edx + ebx - 1], al
mov byte [edx - 1], cl
mov eax, dword [esi]
imul eax, ebp
cmp edi, eax
jl 0x4ab857
mov ebp, dword [esp + 0x38]
mov ecx, dword [esi + 4]
inc ebp
mov eax, ecx
mov dword [esp + 0x38], ebp
sar eax, 1
mov edx, ecx
cmp ebp, eax
jl 0x4ab827
mov edx, dword [esp + 0x64]
test edx, edx
je 0x4ab8b3
mov eax, dword [esp + 0x28]
cmp edx, eax
je 0x4ab8b3
push ecx
push dword [esi]
push edx
push eax
push dword [esp + 0x30]
call fcn.004abe10
mov ecx, eax
add esp, 0x14
test ecx, ecx
jne 0x4ab8b7
jmp 0x4aad5d
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x7c]
mov eax, dword [esi]
mov dword [edx], eax
mov edx, dword [esp + 0x80]
mov eax, dword [esi + 4]
mov dword [edx], eax
mov edx, dword [esp + 0x84]
test edx, edx
je 0x4ab8db
mov eax, dword [esi + 8]
mov dword [edx], eax
mov eax, ecx
jmp 0x4aad5f
mov dword [0x53bc30], str.BMP_RLE
jmp 0x4aad5d
mov dword [0x53bc30], str.bad_BMP
jmp 0x4aad5d
mov ecx, dword [esp + 0x480]
xor eax, eax
pop esi
pop ebp
xor ecx, esp
mov dword [0x53bc30], 0x4fdeb0
call fcn.004b847a
add esp, 0x47c
ret