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

Disassembly:
sub esp, 0x478
mov eax, dword [0x7f9c40]
xor eax, esp
mov dword [esp + 0x474], eax
mov eax, dword [esp + 0x480]
mov edx, dword [esp + 0x48c]
push ebp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x488]
push esi
mov esi, dword [esp + 0x484]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x490]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0xa8]
mov dword [esp + 0x58], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], 0
cmp eax, dword [esi + 0xac]
jb 0x4fc4b8
cmp dword [esi + 0x20], 0
je 0x4fd11d
push esi
call fcn.00505770
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
cmp cl, 0x42
jne 0x4fd11d
cmp eax, dword [esi + 0xac]
jb 0x4fc4eb
cmp dword [esi + 0x20], 0
je 0x4fd11d
push esi
call fcn.00505770
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
cmp cl, 0x4d
jne 0x4fd11d
push ebx
push edi
push esi
call fcn.004ff0f0
push esi
call fcn.004ff0f0
push esi
call fcn.004ff0f0
push esi
call fcn.004ff0f0
push esi
call fcn.004ff0f0
push esi
mov edi, eax
call fcn.004ff0f0
shl eax, 0x10
add eax, edi
push esi
mov dword [esp + 0x2c], eax
call fcn.004ff0f0
push esi
mov edi, eax
call fcn.004ff0f0
mov ebx, eax
add esp, 0x20
shl ebx, 0x10
add ebx, edi
cmp ebx, 0xc
je 0x4fc589
cmp ebx, 0x28
je 0x4fc584
cmp ebx, 0x38
je 0x4fc584
cmp ebx, 0x6c
je 0x4fc584
cmp ebx, 0x7c
je 0x4fc584
mov dword [0x7ff270], str.unknown_BMP
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0x474]
xor ecx, esp
call fcn.006def69
add esp, 0x478
ret
cmp ebx, 0xc
jne 0x4fc59c
push esi
call fcn.004ff0f0
push esi
mov dword [esi], eax
call fcn.004ff0f0
add esp, 8
jmp 0x4fc5c7
push esi
call fcn.004ff0f0
push esi
mov edi, eax
call fcn.004ff0f0
shl eax, 0x10
add eax, edi
push esi
mov dword [esi], eax
call fcn.004ff0f0
push esi
mov edi, eax
call fcn.004ff0f0
shl eax, 0x10
add esp, 0x10
add eax, edi
push esi
mov dword [esi + 4], eax
call fcn.004ff0f0
add esp, 4
cmp eax, 1
jne 0x4fd10e
push esi
call fcn.004ff0f0
mov ecx, eax
add esp, 4
mov dword [esp + 0x20], ecx
cmp ecx, 1
jne 0x4fc5ff
mov dword [0x7ff270], str.monochrome
jmp 0x4fc569
mov eax, dword [esi + 4]
mov dword [esp + 0x74], eax
cdq
xor eax, edx
sub eax, edx
mov dword [esi + 4], eax
cmp ebx, 0xc
jne 0x4fc636
mov edi, dword [esp + 0x10]
cmp ecx, 0x18
jge 0x4fc7c5
lea ecx, [edi - 0x26]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
jmp 0x4fc7c1
push esi
call fcn.004ff1a0
mov edi, eax
add esp, 4
cmp edi, 1
je 0x4fd0ff
cmp edi, 2
je 0x4fd0ff
push esi
call fcn.004ff1a0
push esi
call fcn.004ff1a0
push esi
call fcn.004ff1a0
push esi
call fcn.004ff1a0
push esi
call fcn.004ff1a0
add esp, 0x14
cmp ebx, 0x28
je 0x4fc70f
push esi
cmp ebx, 0x38
je 0x4fc6f5
call fcn.004ff1a0
push esi
mov dword [esp + 0x2c], eax
call fcn.004ff1a0
push esi
mov dword [esp + 0x34], eax
call fcn.004ff1a0
push esi
mov dword [esp + 0x3c], eax
call fcn.004ff1a0
push esi
mov dword [esp + 0x48], eax
call fcn.004ff1a0
add esp, 0x14
mov edi, 0xc
push esi
call fcn.004ff0f0
push esi
call fcn.004ff0f0
add esp, 8
sub edi, 1
jne 0x4fc6b8
cmp ebx, 0x7c
jne 0x4fc7aa
push esi
call fcn.004ff1a0
push esi
call fcn.004ff1a0
push esi
call fcn.004ff1a0
push esi
call fcn.004ff1a0
add esp, 0x10
jmp 0x4fc7aa
call fcn.004ff1a0
push esi
call fcn.004ff1a0
push esi
call fcn.004ff1a0
push esi
call fcn.004ff1a0
add esp, 0x10
mov ecx, dword [esp + 0x20]
cmp ecx, 0x10
je 0x4fc721
cmp ecx, 0x20
jne 0x4fc7ae
test edi, edi
jne 0x4fc76e
cmp ecx, 0x20
mov edx, 0x7c00
mov eax, 0xff0000
mov edi, 0xff00
cmovne eax, edx
mov edx, 0xff
mov dword [esp + 0x24], eax
mov eax, 0x3e0
cmovne edi, eax
mov eax, 0x1f
cmovne edx, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edx
mov eax, 0xff000000
xor edx, edx
cmp ecx, 0x20
cmovne eax, edx
mov dword [esp + 0x34], eax
jmp 0x4fc7ae
cmp edi, 3
jne 0x4fd10e
push esi
call fcn.004ff1a0
push esi
mov dword [esp + 0x2c], eax
call fcn.004ff1a0
mov edi, eax
push esi
mov dword [esp + 0x34], edi
call fcn.004ff1a0
add esp, 0xc
mov edx, eax
mov dword [esp + 0x2c], edx
cmp dword [esp + 0x24], edi
jne 0x4fc7aa
cmp edi, edx
je 0x4fd10e
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
cmp ecx, 0x10
jge 0x4fc7c5
mov eax, edi
sub eax, ebx
sub eax, 0xe
sar eax, 2
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x60]
xor ecx, ecx
cmp dword [esp + 0x34], ecx
setne cl
add ecx, 3
mov dword [esp + 0x30], ecx
mov dword [esi + 8], ecx
test eax, eax
je 0x4fc7eb
cmp eax, 3
jl 0x4fc7eb
mov ecx, eax
mov dword [esp + 0x30], ecx
mov eax, dword [esi]
imul eax, ecx
imul eax, dword [esi + 4]
push eax
call fcn.006f5041
mov ecx, eax
add esp, 4
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x4fc816
mov dword [0x7ff270], str.outofmem
jmp 0x4fc569
cmp dword [esp + 0x20], 0x10
jge 0x4fcb79
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, eax
je 0x4fcb61
cmp eax, 0x100
jg 0x4fcb61
mov dword [esp + 0x1c], edi
test eax, eax
jle 0x4fc95c
mov edi, eax
nop dword [eax + eax]
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x4fc869
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4fc88b
cmp dword [esi + 0x20], 0
je 0x4fc889
push esi
call fcn.00505770
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4fc88b
xor cl, cl
mov edx, dword [esp + 0x1c]
mov byte [esp + edx*4 + 0x86], cl
cmp eax, dword [esi + 0xac]
jae 0x4fc8a9
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4fc8cf
cmp dword [esi + 0x20], 0
je 0x4fc8cd
push esi
call fcn.00505770
mov eax, dword [esi + 0xa8]
add esp, 4
mov edx, dword [esp + 0x1c]
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4fc8cf
xor cl, cl
mov byte [esp + edx*4 + 0x85], cl
cmp eax, dword [esi + 0xac]
jae 0x4fc8e9
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4fc90f
cmp dword [esi + 0x20], 0
je 0x4fc90d
push esi
call fcn.00505770
mov eax, dword [esi + 0xa8]
add esp, 4
mov edx, dword [esp + 0x1c]
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4fc90f
xor cl, cl
mov byte [esp + edx*4 + 0x84], cl
cmp ebx, 0xc
je 0x4fc941
cmp eax, dword [esi + 0xac]
jae 0x4fc92c
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4fc941
cmp dword [esi + 0x20], 0
je 0x4fc941
push esi
call fcn.00505770
add esp, 4
inc dword [esi + 0xa8]
mov ecx, dword [esp + 0x1c]
mov byte [esp + ecx*4 + 0x87], 0xff
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, edi
jl 0x4fc850
xor edi, edi
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ebx, 0xc
setne al
add eax, 3
imul eax, dword [esp + 0x18]
sub ecx, eax
sub ecx, ebx
sub ecx, 0xe
push ecx
push esi
call fcn.00505d70
mov eax, dword [esp + 0x28]
add esp, 8
cmp eax, 4
jne 0x4fc991
mov ebp, dword [esi]
inc ebp
shr ebp, 1
jmp 0x4fc99c
cmp eax, 8
jne 0x4fcb46
mov ebp, dword [esi]
mov edx, dword [esi + 4]
neg ebp
and ebp, 3
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], ebp
test edx, edx
jle 0x4fd030
nop dword [eax + eax]
xor ebx, ebx
cmp dword [esi], ebx
jle 0x4fcaf7
nop word [eax + eax]
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x4fc9e9
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4fca0b
cmp dword [esi + 0x20], 0
je 0x4fca09
push esi
call fcn.00505770
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4fca0b
xor cl, cl
mov ebp, dword [esp + 0x14]
movzx eax, cl
xor ecx, ecx
mov edx, eax
and edx, 0xf
cmp dword [esp + 0x20], 4
cmovne edx, ecx
mov ecx, eax
shr ecx, 4
cmp dword [esp + 0x20], 4
cmovne ecx, eax
movzx eax, byte [esp + ecx*4 + 0x84]
mov byte [edi + ebp], al
movzx eax, byte [esp + ecx*4 + 0x85]
mov byte [edi + ebp + 1], al
movzx eax, byte [esp + ecx*4 + 0x86]
mov ecx, ebp
mov ebp, dword [esp + 0x30]
mov byte [edi + ecx + 2], al
add edi, 3
cmp ebp, 4
jne 0x4fca64
mov byte [edi + ecx], 0xff
inc edi
lea eax, [ebx + 1]
cmp eax, dword [esi]
je 0x4fcaf3
cmp dword [esp + 0x20], 8
jne 0x4fcab8
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x4fca8f
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4fcab1
cmp dword [esi + 0x20], 0
je 0x4fcaaf
push esi
call fcn.00505770
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4fcab1
xor cl, cl
movzx edx, cl
mov ecx, dword [esp + 0x14]
movzx eax, byte [esp + edx*4 + 0x84]
mov byte [edi + ecx], al
movzx eax, byte [esp + edx*4 + 0x85]
mov byte [edi + ecx + 1], al
movzx eax, byte [esp + edx*4 + 0x86]
mov byte [edi + ecx + 2], al
add edi, 3
cmp ebp, 4
jne 0x4fcae8
mov byte [edi + ecx], 0xff
inc edi
add ebx, 2
cmp ebx, dword [esi]
jl 0x4fc9d0
mov ebp, dword [esp + 0x38]
cmp dword [esi + 0x10], 0
je 0x4fcb27
mov eax, dword [esi + 0xac]
mov ecx, eax
sub ecx, dword [esi + 0xa8]
cmp ecx, ebp
jge 0x4fcb27
mov dword [esi + 0xa8], eax
mov eax, ebp
sub eax, ecx
push eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x14]
call eax
add esp, 8
jmp 0x4fcb2d
add dword [esi + 0xa8], ebp
mov eax, dword [esp + 0x3c]
mov edx, dword [esi + 4]
inc eax
mov dword [esp + 0x3c], eax
cmp eax, edx
jl 0x4fc9c0
jmp 0x4fd030
push dword [esp + 0x14]
call fcn.006ebddb
add esp, 4
mov dword [0x7ff270], 0x72bbf8
jmp 0x4fc569
push ecx
call fcn.006ebddb
add esp, 4
mov dword [0x7ff270], 0x72bbf0
jmp 0x4fc569
xor eax, eax
mov dword [esp + 0x18], 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 + 0x58], 0
push esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], eax
call fcn.00505d70
mov edx, dword [esp + 0x28]
add esp, 8
cmp edx, 0x18
jne 0x4fcbe8
mov ecx, dword [esi]
xor ebx, ebx
and ecx, 3
xor edi, edi
mov dword [esp + 0x40], ecx
mov ecx, 1
mov dword [esp + 0x1c], ecx
jmp 0x4fccf8
cmp edx, 0x10
jne 0x4fcc33
mov eax, dword [esi]
mov edx, dword [esp + 0x2c]
add eax, eax
neg eax
and eax, 3
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4fcc18
test ebx, ebx
je 0x4fcc18
test edx, edx
jne 0x4fcc88
push dword [esp + 0x14]
call fcn.006ebddb
add esp, 4
mov dword [0x7ff270], 0x72bc00
jmp 0x4fc569
xor ecx, ecx
cmp edx, 0x20
mov edx, dword [esp + 0x2c]
mov eax, ecx
mov dword [esp + 0x40], ecx
jne 0x4fcbfa
cmp edx, 0xff
jne 0x4fcbfa
mov ebx, dword [esp + 0x28]
cmp ebx, 0xff00
jne 0x4fcbfe
cmp dword [esp + 0x24], 0xff0000
jne 0x4fcbfe
cmp dword [esp + 0x34], 0xff000000
jne 0x4fcc84
mov dword [esp + 0x40], ecx
xor ebx, ebx
mov dword [esp + 0x1c], 2
lea ecx, [eax + 2]
xor edi, edi
jmp 0x4fccf8
mov eax, dword [esp + 0x24]
push eax
call fcn.004ffe30
push dword [esp + 0x28]
lea edi, [eax - 7]
mov dword [esp + 0x20], edi
call fcn.004fc3d0
push ebx
mov dword [esp + 0x5c], eax
call fcn.004ffe30
sub eax, 7
push ebx
mov dword [esp + 0x5c], eax
call fcn.004fc3d0
mov ebx, dword [esp + 0x3c]
push ebx
mov dword [esp + 0x58], eax
call fcn.004ffe30
sub eax, 7
push ebx
mov dword [esp + 0x54], eax
call fcn.004fc3d0
push dword [esp + 0x4c]
mov dword [esp + 0x64], eax
call fcn.004ffe30
push dword [esp + 0x50]
lea ebx, [eax - 7]
mov dword [esp + 0x74], ebx
call fcn.004fc3d0
mov ecx, dword [esp + 0x3c]
add esp, 0x20
mov dword [esp + 0x58], eax
mov edx, dword [esi + 4]
mov dword [esp + 0x38], ebp
test edx, edx
jle 0x4fd030
mov eax, edi
neg eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x4c]
neg eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x3c]
neg eax
mov dword [esp + 0x6c], eax
mov eax, ebx
neg eax
mov dword [esp + 0x70], eax
nop dword [eax + eax]
mov eax, dword [esi]
test ecx, ecx
je 0x4fce73
xor edi, edi
test eax, eax
jle 0x4fcfdc
mov ebx, dword [esp + 0x14]
nop dword [eax + eax]
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x4fcd69
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4fcd8b
cmp dword [esi + 0x20], 0
je 0x4fcd89
push esi
call fcn.00505770
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4fcd8b
xor cl, cl
mov byte [ebx + ebp + 2], cl
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x4fcda8
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4fcdca
cmp dword [esi + 0x20], 0
je 0x4fcdc8
push esi
call fcn.00505770
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4fcdca
xor cl, cl
mov byte [ebx + ebp + 1], cl
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x4fcde7
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4fce09
cmp dword [esi + 0x20], 0
je 0x4fce07
push esi
call fcn.00505770
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4fce09
xor cl, cl
mov byte [ebx + ebp], cl
add ebp, 3
cmp dword [esp + 0x1c], 2
jne 0x4fce53
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x4fce2f
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4fce56
cmp dword [esi + 0x20], 0
je 0x4fce4f
push esi
call fcn.00505770
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4fce56
xor cl, cl
jmp 0x4fce56
or cl, 0xff
cmp dword [esp + 0x30], 4
jne 0x4fce61
mov byte [ebx + ebp], cl
inc ebp
inc edi
cmp edi, dword [esi]
jl 0x4fcd50
mov dword [esp + 0x10], ebp
jmp 0x4fcfdc
mov dword [esp + 0x5c], 0
test eax, eax
jle 0x4fcfe0
push esi
call fcn.004ff0f0
cmp dword [esp + 0x24], 0x10
jne 0x4fce97
add esp, 4
mov ebp, eax
jmp 0x4fcead
push esi
mov edi, eax
call fcn.004ff0f0
mov ebp, eax
add esp, 8
shl ebp, 0x10
add ebp, edi
mov edi, dword [esp + 0x18]
mov edx, ebp
and edx, dword [esp + 0x24]
test edi, edi
jns 0x4fcebf
mov ecx, dword [esp + 0x64]
shl edx, cl
jmp 0x4fcec3
mov ecx, edi
sar edx, cl
mov edi, dword [esp + 0x50]
mov ebx, edx
mov ecx, edi
cmp edi, 8
jge 0x4fcedd
mov eax, edx
sar eax, cl
add ecx, edi
add ebx, eax
cmp ecx, 8
jl 0x4fced0
mov eax, dword [esp + 0x10]
mov edx, ebp
mov edi, dword [esp + 0x14]
and edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x4c]
mov byte [eax + edi], bl
inc eax
mov dword [esp + 0x10], eax
test ecx, ecx
jns 0x4fcf03
mov ecx, dword [esp + 0x68]
shl edx, cl
jmp 0x4fcf05
sar edx, cl
mov ecx, dword [esp + 0x44]
mov ebx, edx
cmp ecx, 8
jge 0x4fcf27
mov edi, ecx
mov eax, edx
sar eax, cl
add ecx, edi
add ebx, eax
cmp ecx, 8
jl 0x4fcf12
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
mov edx, ebp
and edx, dword [esp + 0x2c]
mov byte [eax + edi], bl
inc eax
mov dword [esp + 0x10], eax
test ecx, ecx
jns 0x4fcf45
mov ecx, dword [esp + 0x6c]
shl edx, cl
jmp 0x4fcf47
sar edx, cl
mov ecx, dword [esp + 0x48]
mov ebx, edx
cmp ecx, 8
jge 0x4fcf69
mov edi, ecx
mov eax, edx
sar eax, cl
add ecx, edi
add ebx, eax
cmp ecx, 8
jl 0x4fcf54
mov edi, dword [esp + 0x14]
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 0x4fcfaf
and ebp, eax
mov eax, dword [esp + 0x54]
test eax, eax
jns 0x4fcf8b
mov ecx, dword [esp + 0x70]
shl ebp, cl
jmp 0x4fcf8f
mov ecx, eax
sar ebp, cl
mov ebx, dword [esp + 0x58]
mov edx, ebp
mov ecx, ebx
cmp ebx, 8
jge 0x4fcfb4
nop dword [eax]
mov eax, ebp
sar eax, cl
add ecx, ebx
add edx, eax
cmp ecx, 8
jl 0x4fcfa0
jmp 0x4fcfb4
mov edx, 0xff
cmp dword [esp + 0x30], 4
mov ebp, dword [esp + 0x10]
jne 0x4fcfc7
mov byte [edi + ebp], dl
inc ebp
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x5c], ecx
cmp ecx, dword [esi]
jl 0x4fce83
mov edi, dword [esp + 0x18]
cmp dword [esi + 0x10], 0
mov edx, dword [esp + 0x40]
je 0x4fd012
mov eax, dword [esi + 0xac]
mov ecx, eax
sub ecx, dword [esi + 0xa8]
cmp ecx, edx
jge 0x4fd012
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 0x4fd018
add dword [esi + 0xa8], edx
mov eax, dword [esp + 0x38]
mov edx, dword [esi + 4]
inc eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
cmp eax, edx
jl 0x4fcd30
cmp dword [esp + 0x74], 0
mov ecx, edx
jle 0x4fd0a7
xor ebp, ebp
mov dword [esp + 0x38], ebp
test edx, 0xfffffffe
jle 0x4fd0a7
mov eax, dword [esi]
sub edx, ebp
dec edx
mov ebx, eax
imul edx, eax
xor edi, edi
imul eax, dword [esp + 0x30]
imul ebx, ebp
imul edx, dword [esp + 0x30]
imul ebx, dword [esp + 0x30]
add edx, dword [esp + 0x14]
add ebx, dword [esp + 0x14]
test eax, eax
jle 0x4fd095
mov ebp, dword [esp + 0x30]
sub ebx, edx
mov al, byte [edx]
lea edx, [edx + 1]
mov cl, byte [ebx + edx - 1]
inc edi
mov byte [ebx + edx - 1], al
mov byte [edx - 1], cl
mov eax, dword [esi]
imul eax, ebp
cmp edi, eax
jl 0x4fd077
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 0x4fd047
mov edx, dword [esp + 0x60]
test edx, edx
je 0x4fd0d3
mov eax, dword [esp + 0x30]
cmp edx, eax
je 0x4fd0d3
push ecx
push dword [esi]
push edx
push eax
push dword [esp + 0x24]
call fcn.004fd6d0
mov ecx, eax
add esp, 0x14
test ecx, ecx
jne 0x4fd0d7
jmp 0x4fc569
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x78]
mov eax, dword [esi]
mov dword [edx], eax
mov edx, dword [esp + 0x7c]
mov eax, dword [esi + 4]
mov dword [edx], eax
mov edx, dword [esp + 0x80]
test edx, edx
je 0x4fd0f8
mov eax, dword [esi + 8]
mov dword [edx], eax
mov eax, ecx
jmp 0x4fc56b
mov dword [0x7ff270], str.BMP_RLE
jmp 0x4fc569
mov dword [0x7ff270], str.bad_BMP
jmp 0x4fc569
mov ecx, dword [esp + 0x47c]
xor eax, eax
pop esi
pop ebp
xor ecx, esp
mov dword [0x7ff270], 0x72bbc0
call fcn.006def69
add esp, 0x478
ret