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

Disassembly:
sub esp, 0x47c
mov eax, dword [0x4f7600]
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 0x4722bc
cmp dword [esi + 0x20], 0
je 0x472f10
push esi
call fcn.0047b460
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
cmp cl, 0x42
jne 0x472f10
cmp eax, dword [esi + 0xac]
jb 0x4722ef
cmp dword [esi + 0x20], 0
je 0x472f10
push esi
call fcn.0047b460
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
cmp cl, 0x4d
jne 0x472f10
push ebx
push edi
push esi
call fcn.00474e10
push esi
call fcn.00474e10
push esi
call fcn.00474e10
push esi
call fcn.00474e10
push esi
call fcn.00474e10
push esi
mov edi, eax
call fcn.00474e10
shl eax, 0x10
add eax, edi
push esi
mov dword [esp + 0x2c], eax
call fcn.00474e10
push esi
mov edi, eax
call fcn.00474e10
mov ebx, eax
add esp, 0x20
shl ebx, 0x10
add ebx, edi
cmp ebx, 0xc
je 0x47238d
cmp ebx, 0x28
je 0x472388
cmp ebx, 0x38
je 0x472388
cmp ebx, 0x6c
je 0x472388
cmp ebx, 0x7c
je 0x472388
mov dword [0x4fe5e8], str.unknown_BMP
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0x478]
xor ecx, esp
call fcn.00489fe1
add esp, 0x47c
ret
cmp ebx, 0xc
jne 0x4723a0
push esi
call fcn.00474e10
push esi
mov dword [esi], eax
call fcn.00474e10
add esp, 8
jmp 0x4723cb
push esi
call fcn.00474e10
push esi
mov edi, eax
call fcn.00474e10
shl eax, 0x10
add eax, edi
push esi
mov dword [esi], eax
call fcn.00474e10
push esi
mov edi, eax
call fcn.00474e10
shl eax, 0x10
add esp, 0x10
add eax, edi
push esi
mov dword [esi + 4], eax
call fcn.00474e10
add esp, 4
cmp eax, 1
jne 0x472f01
push esi
call fcn.00474e10
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
cmp ecx, 1
jne 0x472403
mov dword [0x4fe5e8], str.monochrome
jmp 0x47236d
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 0x47243a
mov edi, dword [esp + 0x10]
cmp ecx, 0x18
jge 0x4725cd
lea ecx, [edi - 0x26]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
jmp 0x4725c9
push esi
call fcn.00474ec0
mov edi, eax
add esp, 4
cmp edi, 1
je 0x472ef2
cmp edi, 2
je 0x472ef2
push esi
call fcn.00474ec0
push esi
call fcn.00474ec0
push esi
call fcn.00474ec0
push esi
call fcn.00474ec0
push esi
call fcn.00474ec0
add esp, 0x14
cmp ebx, 0x28
je 0x472517
push esi
cmp ebx, 0x38
je 0x4724fd
call fcn.00474ec0
push esi
mov dword [esp + 0x2c], eax
call fcn.00474ec0
push esi
mov dword [esp + 0x38], eax
call fcn.00474ec0
push esi
mov dword [esp + 0x40], eax
call fcn.00474ec0
push esi
mov dword [esp + 0x48], eax
call fcn.00474ec0
add esp, 0x14
mov edi, 0xc
nop dword [eax]
push esi
call fcn.00474e10
push esi
call fcn.00474e10
add esp, 8
sub edi, 1
jne 0x4724c0
cmp ebx, 0x7c
jne 0x4725b2
push esi
call fcn.00474ec0
push esi
call fcn.00474ec0
push esi
call fcn.00474ec0
push esi
call fcn.00474ec0
add esp, 0x10
jmp 0x4725b2
call fcn.00474ec0
push esi
call fcn.00474ec0
push esi
call fcn.00474ec0
push esi
call fcn.00474ec0
add esp, 0x10
mov edx, dword [esp + 0x1c]
cmp edx, 0x10
je 0x472529
cmp edx, 0x20
jne 0x4725b6
test edi, edi
jne 0x472576
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 0x4725b6
cmp edi, 3
jne 0x472f01
push esi
call fcn.00474ec0
push esi
mov dword [esp + 0x2c], eax
call fcn.00474ec0
mov edi, eax
push esi
mov dword [esp + 0x38], edi
call fcn.00474ec0
add esp, 0xc
mov ecx, eax
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x24], edi
jne 0x4725b2
cmp edi, ecx
je 0x472f01
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
cmp edx, 0x10
jge 0x4725cd
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 0x4725f3
cmp eax, 3
jl 0x4725f3
mov ecx, eax
mov dword [esp + 0x28], ecx
mov eax, dword [esi]
imul eax, ecx
imul eax, dword [esi + 4]
push eax
call fcn.0049761d
mov ecx, eax
add esp, 4
mov dword [esp + 0x20], ecx
test ecx, ecx
jne 0x47261e
mov dword [0x4fe5e8], str.outofmem
jmp 0x47236d
cmp dword [esp + 0x1c], 0x10
jge 0x47297b
mov eax, dword [esp + 0x14]
xor edi, edi
test eax, eax
je 0x472963
cmp eax, 0x100
jg 0x472963
mov dword [esp + 0x18], edi
test eax, eax
jle 0x47275c
mov edi, eax
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x472669
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x47268b
cmp dword [esi + 0x20], 0
je 0x472689
push esi
call fcn.0047b460
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x47268b
xor cl, cl
mov edx, dword [esp + 0x18]
mov byte [esp + edx*4 + 0x8a], cl
cmp eax, dword [esi + 0xac]
jae 0x4726a9
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4726cf
cmp dword [esi + 0x20], 0
je 0x4726cd
push esi
call fcn.0047b460
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 0x4726cf
xor cl, cl
mov byte [esp + edx*4 + 0x89], cl
cmp eax, dword [esi + 0xac]
jae 0x4726e9
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x47270f
cmp dword [esi + 0x20], 0
je 0x47270d
push esi
call fcn.0047b460
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 0x47270f
xor cl, cl
mov byte [esp + edx*4 + 0x88], cl
cmp ebx, 0xc
je 0x472741
cmp eax, dword [esi + 0xac]
jae 0x47272c
inc eax
mov dword [esi + 0xa8], eax
jmp 0x472741
cmp dword [esi + 0x20], 0
je 0x472741
push esi
call fcn.0047b460
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 0x472650
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.0047baa0
mov eax, dword [esp + 0x24]
add esp, 8
cmp eax, 4
jne 0x472791
mov ebx, dword [esi]
inc ebx
shr ebx, 1
jmp 0x47279c
cmp eax, 8
jne 0x472948
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 0x472e20
nop dword [eax + eax]
xor ebp, ebp
cmp dword [esi], ebp
jle 0x4728f9
nop word [eax + eax]
mov edx, dword [esi + 0xa8]
cmp edx, dword [esi + 0xac]
jae 0x4727e9
mov cl, byte [edx]
inc edx
mov dword [esi + 0xa8], edx
jmp 0x47280d
cmp dword [esi + 0x20], 0
je 0x47280b
push esi
call fcn.0047b460
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
lea edx, [eax + 1]
mov dword [esi + 0xa8], edx
jmp 0x47280d
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 0x472868
mov byte [edi + ecx], 0xff
inc edi
lea eax, [ebp + 1]
cmp eax, dword [esi]
je 0x4728f5
cmp dword [esp + 0x1c], 8
jne 0x4728b8
cmp edx, dword [esi + 0xac]
jae 0x47288f
mov cl, byte [edx]
lea eax, [edx + 1]
mov dword [esi + 0xa8], eax
jmp 0x4728b1
cmp dword [esi + 0x20], 0
je 0x4728af
push esi
call fcn.0047b460
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x4728b1
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 0x4728ea
mov byte [edi + ecx], 0xff
inc edi
add ebp, 2
cmp ebp, dword [esi]
jl 0x4727d0
mov ebx, dword [esp + 0x38]
cmp dword [esi + 0x10], 0
je 0x472929
mov eax, dword [esi + 0xac]
mov ecx, eax
sub ecx, dword [esi + 0xa8]
cmp ecx, ebx
jge 0x472929
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 0x47292f
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 0x4727c0
jmp 0x472e20
push dword [esp + 0x20]
call fcn.0048f940
add esp, 4
mov dword [0x4fe5e8], 0x4c2038
jmp 0x47236d
push ecx
call fcn.0048f940
add esp, 4
mov dword [0x4fe5e8], 0x4c2030
jmp 0x47236d
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.0047baa0
mov edx, dword [esp + 0x24]
add esp, 8
cmp edx, 0x18
jne 0x4729ea
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 0x472afa
cmp edx, 0x10
jne 0x472a35
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 0x472a1a
test ebx, ebx
je 0x472a1a
test edx, edx
jne 0x472a8a
push dword [esp + 0x20]
call fcn.0048f940
add esp, 4
mov dword [0x4fe5e8], 0x4c2040
jmp 0x47236d
xor ecx, ecx
cmp edx, 0x20
mov edx, dword [esp + 0x30]
mov eax, ecx
mov dword [esp + 0x40], ecx
jne 0x4729fc
cmp edx, 0xff
jne 0x4729fc
mov ebx, dword [esp + 0x2c]
cmp ebx, 0xff00
jne 0x472a00
cmp dword [esp + 0x24], 0xff0000
jne 0x472a00
cmp dword [esp + 0x34], 0xff000000
jne 0x472a86
mov dword [esp + 0x40], ecx
xor ebx, ebx
mov dword [esp + 0x18], 2
lea ecx, [eax + 2]
xor edi, edi
jmp 0x472afa
mov eax, dword [esp + 0x24]
push eax
call fcn.00475b50
push dword [esp + 0x28]
lea edi, [eax - 7]
mov dword [esp + 0x1c], edi
call fcn.004721d0
push ebx
mov dword [esp + 0x60], eax
call fcn.00475b50
sub eax, 7
push ebx
mov dword [esp + 0x5c], eax
call fcn.004721d0
mov ebx, dword [esp + 0x40]
push ebx
mov dword [esp + 0x58], eax
call fcn.00475b50
sub eax, 7
push ebx
mov dword [esp + 0x54], eax
call fcn.004721d0
push dword [esp + 0x4c]
mov dword [esp + 0x64], eax
call fcn.00475b50
push dword [esp + 0x50]
lea ebx, [eax - 7]
mov dword [esp + 0x78], ebx
call fcn.004721d0
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 0x472e20
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 0x472c61
xor edi, edi
test eax, eax
jle 0x472dcc
mov ebx, dword [esp + 0x20]
nop dword [eax + eax]
mov eax, dword [esi + 0xa8]
cmp eax, dword [esi + 0xac]
jae 0x472b69
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x472b8b
cmp dword [esi + 0x20], 0
je 0x472b89
push esi
call fcn.0047b460
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x472b8b
xor cl, cl
mov byte [ebx + ebp + 2], cl
cmp eax, dword [esi + 0xac]
jae 0x472ba2
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x472bc4
cmp dword [esi + 0x20], 0
je 0x472bc2
push esi
call fcn.0047b460
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x472bc4
xor cl, cl
mov byte [ebx + ebp + 1], cl
cmp eax, dword [esi + 0xac]
jae 0x472bdb
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x472bfd
cmp dword [esi + 0x20], 0
je 0x472bfb
push esi
call fcn.0047b460
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x472bfd
xor cl, cl
mov byte [ebx + ebp], cl
add ebp, 3
cmp dword [esp + 0x18], 2
jne 0x472c41
cmp eax, dword [esi + 0xac]
jae 0x472c1d
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x472c44
cmp dword [esi + 0x20], 0
je 0x472c3d
push esi
call fcn.0047b460
mov eax, dword [esi + 0xa8]
add esp, 4
mov cl, byte [eax]
inc eax
mov dword [esi + 0xa8], eax
jmp 0x472c44
xor cl, cl
jmp 0x472c44
or cl, 0xff
cmp dword [esp + 0x28], 4
jne 0x472c4f
mov byte [ebx + ebp], cl
inc ebp
inc edi
cmp edi, dword [esi]
jl 0x472b50
mov dword [esp + 0x10], ebp
jmp 0x472dcc
mov dword [esp + 0x60], 0
test eax, eax
jle 0x472dd0
push esi
call fcn.00474e10
cmp dword [esp + 0x20], 0x10
jne 0x472c85
add esp, 4
mov ebp, eax
jmp 0x472c9b
push esi
mov edi, eax
call fcn.00474e10
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 0x472cad
mov ecx, dword [esp + 0x68]
shl edx, cl
jmp 0x472cb1
mov ecx, edi
sar edx, cl
mov edi, dword [esp + 0x54]
mov ebx, edx
mov ecx, edi
cmp edi, 8
jge 0x472ccd
nop
mov eax, edx
sar eax, cl
add ecx, edi
add ebx, eax
cmp ecx, 8
jl 0x472cc0
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 0x472cf3
mov ecx, dword [esp + 0x6c]
shl edx, cl
jmp 0x472cf5
sar edx, cl
mov ecx, dword [esp + 0x44]
mov ebx, edx
cmp ecx, 8
jge 0x472d17
mov esi, ecx
mov eax, edx
sar eax, cl
add ecx, esi
add ebx, eax
cmp ecx, 8
jl 0x472d02
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 0x472d35
mov ecx, dword [esp + 0x70]
shl edx, cl
jmp 0x472d37
sar edx, cl
mov ecx, dword [esp + 0x48]
mov ebx, edx
cmp ecx, 8
jge 0x472d59
mov esi, ecx
mov eax, edx
sar eax, cl
add ecx, esi
add ebx, eax
cmp ecx, 8
jl 0x472d44
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 0x472d9f
and ebp, eax
mov eax, dword [esp + 0x58]
test eax, eax
jns 0x472d7b
mov ecx, dword [esp + 0x74]
shl ebp, cl
jmp 0x472d7f
mov ecx, eax
sar ebp, cl
mov ebx, dword [esp + 0x5c]
mov edx, ebp
mov ecx, ebx
cmp ebx, 8
jge 0x472da4
nop dword [eax]
mov eax, ebp
sar eax, cl
add ecx, ebx
add edx, eax
cmp ecx, 8
jl 0x472d90
jmp 0x472da4
mov edx, 0xff
cmp dword [esp + 0x28], 4
mov ebp, dword [esp + 0x10]
jne 0x472db7
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 0x472c71
mov edi, dword [esp + 0x14]
cmp dword [esi + 0x10], 0
mov edx, dword [esp + 0x40]
je 0x472e02
mov eax, dword [esi + 0xac]
mov ecx, eax
sub ecx, dword [esi + 0xa8]
cmp ecx, edx
jge 0x472e02
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 0x472e08
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 0x472b30
cmp dword [esp + 0x78], 0
mov ecx, edx
jle 0x472e97
xor ebp, ebp
mov dword [esp + 0x38], ebp
test edx, 0xfffffffe
jle 0x472e97
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 0x472e85
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 0x472e67
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 0x472e37
mov edx, dword [esp + 0x64]
test edx, edx
je 0x472ec3
mov eax, dword [esp + 0x28]
cmp edx, eax
je 0x472ec3
push ecx
push dword [esi]
push edx
push eax
push dword [esp + 0x30]
call fcn.00473420
mov ecx, eax
add esp, 0x14
test ecx, ecx
jne 0x472ec7
jmp 0x47236d
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 0x472eeb
mov eax, dword [esi + 8]
mov dword [edx], eax
mov eax, ecx
jmp 0x47236f
mov dword [0x4fe5e8], str.BMP_RLE
jmp 0x47236d
mov dword [0x4fe5e8], str.bad_BMP
jmp 0x47236d
mov ecx, dword [esp + 0x480]
xor eax, eax
pop esi
pop ebp
xor ecx, esp
mov dword [0x4fe5e8], 0x4c2000
call fcn.00489fe1
add esp, 0x47c
ret