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

Disassembly:
sub esp, 0x368
mov eax, dword [0x598b80]
xor eax, esp
mov dword [esp + 0x364], eax
push ebx
mov ebx, ecx
mov dword [esp + 0x10], 3
push esi
mov esi, dword [esp + 0x374]
push edi
mov edi, dword [esp + 0x37c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x40], 0
mov dword [ebx + 4], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
cmp edi, 1
jge 0x4b4917
mov ecx, esi
call fcn.004e2ac0
mov ecx, esi
mov bl, al
call fcn.004e2ac0
cmp bl, 0x42
jne 0x4b4952
cmp al, 0x4d
jne 0x4b4952
mov ecx, esi
call fcn.004e2b40
mov ecx, esi
call fcn.004e2ba0
mov ecx, esi
call fcn.004e2ba0
mov ecx, esi
call fcn.004e2b40
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x40], eax
push ebp
mov ecx, esi
call fcn.004e2b40
cmp dword [esi + 0x18], 0
mov ebp, eax
je 0x4b4962
mov edi, dword [esi + 0x14]
mov ecx, esi
call fcn.004e2c30
push eax
push edi
push 0xb6
push str.__d__Fl_BMP_Image:__s___unexpected_EOF_or_read_error_at_offset__ld
call dword [0x59805c]
add esp, 0x10
mov dword [ebx + 0x10], 0xfffffffd
jmp 0x4b546e
mov eax, dword [esp + 0x24]
mov dword [eax + 0x10], 0xfffffffd
jmp 0x4b546f
mov byte [esp + 0x2f], 0
mov dword [esp + 0x4c], 0xffffffff
cmp ebp, 0x28
jge 0x4b49be
mov ecx, esi
call fcn.004e2ba0
movzx eax, ax
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.004e2ba0
movzx eax, ax
mov ecx, esi
mov dword [esp + 0x380], eax
call fcn.004e2ba0
mov ecx, esi
call fcn.004e2ba0
movzx edi, ax
xor ebx, ebx
lea eax, [ebp - 0xc]
mov dword [esp + 0x30], edi
mov dword [esp + 0x50], 0
mov dword [esp + 0x48], eax
jmp 0x4b4ad5
test edi, edi
jle 0x4b49e1
mov eax, dword [esp + 0x384]
mov dword [esp + 0x14], eax
test eax, eax
jle 0x4b49e1
mov ecx, esi
call fcn.004e2b40
mov ecx, esi
call fcn.004e2b40
jmp 0x4b4a12
mov ecx, esi
call fcn.004e2b40
mov ecx, esi
mov dword [esp + 0x14], eax
mov dword [ebx + 4], eax
mov dword [ebx + 0x18], eax
call fcn.004e2b40
mov ecx, eax
cdq
sar ecx, 0x1f
xor eax, edx
sub eax, edx
and ecx, 2
dec ecx
mov dword [esp + 0x380], eax
mov dword [esp + 0x4c], ecx
mov ecx, esi
call fcn.004e2ba0
mov ecx, esi
call fcn.004e2ba0
movzx edi, ax
mov ecx, esi
mov dword [esp + 0x30], edi
call fcn.004e2b40
mov ecx, esi
mov dword [esp + 0x50], eax
call fcn.004e2b40
mov ecx, esi
mov dword [esp + 0x54], eax
call fcn.004e2b40
mov ecx, esi
call fcn.004e2b40
mov ecx, esi
call fcn.004e2b40
mov ecx, esi
mov ebx, eax
call fcn.004e2b40
cmp dword [esp + 0x50], 0
lea eax, [ebp - 0x28]
mov dword [esp + 0x48], eax
jne 0x4b4ad5
cmp edi, 8
jb 0x4b4ad5
xor edx, edx
mov ecx, dword [esp + 0x14]
mov eax, 0x20
div edi
cmp ecx, eax
jle 0x4b4ad2
shr edi, 3
lea eax, [ecx + 7]
imul edi, ecx
mov ecx, dword [esp + 0x54]
cdq
add ecx, ecx
and edx, 7
add eax, edx
mov edx, dword [esp + 0x380]
add edi, 3
sar eax, 3
and edi, 0xfffffffc
add eax, 3
and eax, 0xfffffffc
add edi, eax
imul edi, edx
cmp edi, ecx
mov edi, dword [esp + 0x30]
jne 0x4b4ad2
mov eax, edx
mov byte [esp + 0x2f], 1
cdq
sub eax, edx
mov dword [esp + 0x1c], 4
sar eax, 1
mov dword [esp + 0x380], eax
lea eax, [ebp - 0x28]
cmp dword [esi + 0x18], 0
je 0x4b4af1
mov edi, dword [esi + 0x14]
mov ecx, esi
call fcn.004e2c30
push eax
push edi
push 0xed
jmp 0x4b5455
test eax, eax
jle 0x4b4b08
mov ecx, esi
call fcn.004e2c30
add eax, dword [esp + 0x48]
mov ecx, esi
push eax
call fcn.004e2bd0
cmp dword [esi + 0x18], 0
je 0x4b4b24
mov edi, dword [esi + 0x14]
mov ecx, esi
call fcn.004e2c30
push eax
push edi
push 0xf5
jmp 0x4b5455
cmp dword [esp + 0x14], 0
je 0x4b5463
cmp dword [esp + 0x380], 0
je 0x4b5463
test edi, edi
je 0x4b5463
test ebx, ebx
jne 0x4b4b59
cmp edi, 8
ja 0x4b4bbb
mov ebx, 1
mov ecx, edi
shl ebx, cl
test ebx, ebx
jle 0x4b4bbb
lea edi, [esp + 0x75]
cmp ebp, 0xc
jle 0x4b4b92
mov ecx, esi
call fcn.004e2ac0
mov ecx, esi
mov byte [edi - 1], al
call fcn.004e2ac0
mov ecx, esi
mov byte [edi], al
call fcn.004e2ac0
mov ecx, esi
mov byte [edi + 1], al
call fcn.004e2ac0
lea edi, [edi + 3]
sub ebx, 1
jne 0x4b4b64
jmp 0x4b4bb7
mov ecx, esi
call fcn.004e2ac0
mov ecx, esi
mov byte [edi - 1], al
call fcn.004e2ac0
mov ecx, esi
mov byte [edi], al
call fcn.004e2ac0
mov byte [edi + 1], al
lea edi, [edi + 3]
sub ebx, 1
jne 0x4b4b92
mov edi, dword [esp + 0x30]
cmp dword [esi + 0x18], 0
je 0x4b4bd7
mov edi, dword [esi + 0x14]
mov ecx, esi
call fcn.004e2c30
push eax
push edi
push 0x10a
jmp 0x4b5455
mov eax, 4
cmp edi, 0x10
jne 0x4b4bfc
mov ecx, esi
call fcn.004e2b40
mov ebx, dword [esp + 0x1c]
xor ecx, ecx
cmp eax, 0xf800
sete cl
mov dword [esp + 0x64], ecx
jmp 0x4b4c12
mov ebx, dword [esp + 0x1c]
cmp edi, 0x20
mov dword [esp + 0x64], 0
cmove ebx, eax
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4b4c22
push eax
mov ecx, esi
call fcn.004e2bd0
cmp dword [esi + 0x18], 0
je 0x4b4c3e
mov edi, dword [esi + 0x14]
mov ecx, esi
call fcn.004e2c30
push eax
push edi
push 0x116
jmp 0x4b5455
mov eax, dword [esp + 0x380]
imul eax, dword [esp + 0x14]
imul eax, ebx
cmp eax, dword [0x596dbc]
jbe 0x4b4c6b
push dword [esi + 0x14]
push str.BMP_file___s__is_too_large__n
call dword [0x598058]
add esp, 8
jmp 0x4b5463
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov ecx, dword [esp + 0x2c]
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x3c], ebx
xor edx, edx
mov dword [esp + 0x40], ebp
add esp, 4
mov dword [esp + 0x18], edx
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x28], 1
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov byte [esp + 0x23], cl
cmp dword [esp + 0x4c], ecx
jge 0x4b4cbe
mov ecx, dword [esp + 0x380]
dec ecx
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], ecx
jmp 0x4b4cd4
mov eax, dword [esp + 0x380]
mov dword [esp + 0x54], eax
dec eax
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x44], eax
lea eax, [edi - 1]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x79]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x77]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x76]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x75]
mov dword [esp + 0x58], eax
mov al, byte [esp + 0x74]
mov byte [esp + 0x43], al
mov eax, dword [esp + 0x1c]
imul edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
imul edi, eax
add edi, dword [ecx + 0x24]
cmp dword [esp + 0x60], 0x1f
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x30], edi
ja case.default.0x4b4d40
mov eax, dword [esp + 0x60]
movzx eax, byte [eax + 0x4b54a8]
jmp dword [eax*4 + 0x4b548c]
mov ecx, dword [esp + 0x14]
mov al, 0x80
mov dword [esp + 0x24], ecx
mov byte [esp + 0x13], al
test ecx, ecx
jle 0x4b4dce
mov bl, byte [esp + 0x23]
cmp al, 0x80
jne 0x4b4d72
mov ecx, esi
call fcn.004e2ac0
mov bl, al
mov al, byte [esp + 0x13]
test bl, al
je 0x4b4d84
mov cl, byte [esp + 0x68]
mov dl, byte [esp + 0x6c]
mov ah, byte [esp + 0x70]
jmp 0x4b4d90
mov cl, byte [esp + 0x43]
mov dl, byte [esp + 0x58]
mov ah, byte [esp + 0x5c]
mov byte [edi], ah
lea ebp, [edi + 3]
mov byte [edi + 1], dl
mov dword [esp + 0x30], ebp
mov byte [edi + 2], cl
cmp al, 1
jbe 0x4b4da7
shr al, 1
jmp 0x4b4da9
mov al, 0x80
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
dec ecx
mov byte [esp + 0x13], al
mov dword [esp + 0x24], ecx
test ecx, ecx
jg 0x4b4d61
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x23], bl
mov ebx, dword [esp + 0x38]
lea eax, [ecx + 7]
cdq
and edx, 7
add edx, eax
sar edx, 3
mov dword [esp + 0x18], edx
test dl, 3
je 0x4b5323
mov ebx, edx
nop dword [eax]
mov ecx, esi
call fcn.004e2ac0
inc ebx
test bl, 3
jne 0x4b4df0
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
cmp dword [esi + 0x18], 0
jne 0x4b5444
mov edi, dword [esp + 0x44]
add edi, dword [esp + 0x4c]
mov dword [esp + 0x44], edi
cmp edi, dword [esp + 0x54]
jne 0x4b4d13
cmp byte [esp + 0x2f], 0
je 0x4b5400
mov edi, dword [esp + 0x48]
test edi, edi
js 0x4b5400
mov ebx, dword [esp + 0x14]
lea eax, [ecx + 7]
cdq
mov ecx, edi
and edx, 7
imul ecx, ebx
add eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 3
mov dword [esp + 0x5c], eax
mov eax, ebx
imul ecx, edx
imul eax, edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x58], eax
jmp 0x4b5374
cmp dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov al, 0xf0
mov byte [esp + 0x13], al
jle 0x4b4fe0
test ebx, ebx
jne 0x4b4f5e
cmp dword [esp + 0x50], 2
je 0x4b4eaf
mov ebx, 2
or ecx, 0xffffffff
jmp 0x4b4f5a
test ebp, ebp
jle 0x4b4ebf
mov ecx, esi
dec ebp
call fcn.004e2ac0
test ebp, ebp
jg 0x4b4eb3
mov ecx, esi
call fcn.004e2ac0
movzx ebx, al
mov ecx, esi
test al, al
jne 0x4b4f4a
call fcn.004e2ac0
movzx ebx, al
test al, al
jne 0x4b4eed
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
inc eax
jmp 0x4b4fbf
cmp ebx, 1
je 0x4b4fd4
cmp ebx, 2
jne 0x4b4f1f
mov ecx, esi
call fcn.004e2ac0
mov ecx, esi
movzx edi, al
call fcn.004e2ac0
movzx ebx, al
imul ebx, edi
mov edi, dword [esp + 0x30]
imul ebx, dword [esp + 0x14]
xor ecx, ecx
jmp 0x4b4f52
mov ecx, ebx
mov dword [esp + 0x34], 0xffffffff
and ecx, 3
mov eax, 4
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
mov ebp, eax
mov al, byte [esp + 0x13]
sar ebp, 1
and ebp, 1
or ecx, 0xffffffff
jmp 0x4b4f5e
call fcn.004e2ac0
movzx ecx, al
mov al, byte [esp + 0x13]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
dec ebx
cmp al, 0xf0
jne 0x4b4f93
test ecx, ecx
jns 0x4b4f81
mov ecx, esi
call fcn.004e2ac0
movzx edx, al
mov eax, edx
mov dword [esp + 0x18], edx
sar eax, 4
mov byte [esp + 0x13], 0xf
jmp 0x4b4f9a
mov edx, ecx
mov byte [esp + 0x13], 0xf
mov eax, edx
mov dword [esp + 0x18], edx
sar eax, 4
jmp 0x4b4f9a
mov byte [esp + 0x13], 0xf0
mov eax, edx
and eax, 0xf
lea ecx, [eax + eax*2]
mov al, byte [esp + ecx + 0x76]
mov byte [edi], al
mov al, byte [esp + ecx + 0x75]
mov byte [edi + 1], al
mov al, byte [esp + ecx + 0x74]
mov byte [edi + 2], al
add edi, 3
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x34]
dec eax
mov dword [esp + 0x24], eax
test eax, eax
mov al, byte [esp + 0x13]
jg 0x4b4e93
mov edx, dword [esp + 0x18]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebp
cmp dword [esi + 0x18], 0
jne 0x4b532c
cmp dword [esp + 0x50], 0
mov ecx, dword [esp + 0x14]
jne 0x4b5323
lea eax, [ecx + 1]
cdq
sub eax, edx
mov edx, eax
sar edx, 1
mov dword [esp + 0x18], edx
test dl, 3
je 0x4b5323
mov ecx, esi
call fcn.004e2ac0
mov edx, dword [esp + 0x18]
inc edx
mov dword [esp + 0x18], edx
test dl, 3
jne 0x4b5010
jmp case.0x4b4d40.1
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
test eax, eax
jle 0x4b515a
nop word [eax + eax]
cmp dword [esp + 0x50], 1
je 0x4b5054
mov ebx, 1
or ecx, 0xffffffff
jmp 0x4b50f2
test ebx, ebx
jne 0x4b50f6
test ebp, ebp
jle 0x4b5070
mov ecx, esi
dec ebp
call fcn.004e2ac0
test ebp, ebp
jg 0x4b5060
mov dword [esp + 0x3c], ebp
cmp dword [esi + 0x18], 0
mov ecx, esi
jne 0x4b5342
call fcn.004e2ac0
movzx ebx, al
mov ecx, esi
test al, al
jne 0x4b50ea
call fcn.004e2ac0
movzx ebx, al
mov dword [esp + 0x38], ebx
test al, al
jne 0x4b50a8
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
inc eax
jmp 0x4b5149
cmp ebx, 1
je 0x4b4e05
cmp ebx, 2
jne 0x4b50da
mov ecx, esi
call fcn.004e2ac0
mov ecx, esi
movzx edi, al
call fcn.004e2ac0
movzx ebx, al
imul ebx, edi
mov edi, dword [esp + 0x30]
imul ebx, dword [esp + 0x14]
xor ecx, ecx
jmp 0x4b50f2
mov ebp, ebx
or ecx, 0xffffffff
neg ebp
and ebp, 1
mov dword [esp + 0x3c], ebp
jmp 0x4b50f2
call fcn.004e2ac0
movzx ecx, al
mov dword [esp + 0x34], ecx
cmp dword [esi + 0x18], 0
jne 0x4b5356
test ecx, ecx
jns 0x4b5110
mov ecx, esi
call fcn.004e2ac0
movzx edx, al
jmp 0x4b5112
mov edx, ecx
lea ecx, [edx + edx*2]
mov dword [esp + 0x18], edx
mov al, byte [esp + ecx + 0x76]
dec ebx
mov byte [edi], al
mov al, byte [esp + ecx + 0x75]
mov byte [edi + 1], al
mov al, byte [esp + ecx + 0x74]
mov byte [edi + 2], al
add edi, 3
cmp byte [esp + 0x2f], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], edi
je 0x4b5149
inc edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x34]
dec eax
mov dword [esp + 0x24], eax
test eax, eax
jg 0x4b5040
cmp dword [esp + 0x50], 0
mov ecx, dword [esp + 0x14]
jne 0x4b5323
mov edx, ecx
mov dword [esp + 0x18], edx
test cl, 3
je 0x4b5323
mov ecx, esi
call fcn.004e2ac0
mov edx, dword [esp + 0x18]
inc edx
mov dword [esp + 0x18], edx
test dl, 3
jne 0x4b5178
jmp case.0x4b4d40.1
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x4b5237
cmp dword [esp + 0x64], 0
mov ebp, ecx
je 0x4b51f0
mov ecx, esi
call fcn.004e2ac0
mov ecx, esi
mov bl, al
call fcn.004e2ac0
mov cl, bl
dec ebp
shl cl, 3
mov byte [edi + 2], cl
mov cl, al
shr bl, 3
and al, 0xf8
and bl, 0x1c
shl cl, 5
or bl, cl
mov byte [edi], al
mov eax, dword [esp + 0x1c]
mov byte [edi + 1], bl
add edi, eax
test ebp, ebp
jg 0x4b51a7
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
jmp 0x4b523b
mov ecx, esi
call fcn.004e2ac0
mov ecx, esi
mov bl, al
call fcn.004e2ac0
mov cl, bl
dec ebp
shl cl, 3
mov byte [edi + 2], cl
mov cl, al
shr bl, 2
and al, 0xfc
and bl, 0x38
shl cl, 6
add al, al
or bl, cl
mov byte [edi], al
mov eax, dword [esp + 0x1c]
mov byte [edi + 1], bl
add edi, eax
test ebp, ebp
jg 0x4b51f0
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
jmp 0x4b523b
mov eax, dword [esp + 0x1c]
lea edx, [ecx + ecx]
mov dword [esp + 0x18], edx
test dl, 3
je 0x4b4e11
nop dword [eax + eax]
mov ecx, esi
call fcn.004e2ac0
mov edx, dword [esp + 0x18]
inc edx
mov dword [esp + 0x18], edx
test dl, 3
jne 0x4b5250
jmp case.0x4b4d40.1
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x4b52a6
mov ebx, ecx
mov ecx, esi
call fcn.004e2ac0
mov ecx, esi
mov byte [edi + 2], al
call fcn.004e2ac0
mov ecx, esi
mov byte [edi + 1], al
call fcn.004e2ac0
mov byte [edi], al
dec ebx
mov eax, dword [esp + 0x1c]
add edi, eax
test ebx, ebx
jg 0x4b5274
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
jmp 0x4b52aa
mov eax, dword [esp + 0x1c]
lea edx, [ecx + ecx*2]
mov dword [esp + 0x18], edx
test dl, 3
je 0x4b4e11
nop word [eax + eax]
mov ecx, esi
call fcn.004e2ac0
mov edx, dword [esp + 0x18]
inc edx
mov dword [esp + 0x18], edx
test dl, 3
jne 0x4b52c0
jmp case.0x4b4d40.1
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x4b5323
mov ebp, ecx
mov ecx, esi
call fcn.004e2ac0
mov ecx, esi
mov byte [edi + 2], al
call fcn.004e2ac0
mov ecx, esi
mov byte [edi + 1], al
call fcn.004e2ac0
mov ecx, esi
mov byte [edi], al
call fcn.004e2ac0
mov byte [edi + 3], al
dec ebp
mov eax, dword [esp + 0x1c]
add edi, eax
test ebp, ebp
jg 0x4b52e4
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
jmp case.default.0x4b4d40
mov eax, dword [esp + 0x1c]
jmp 0x4b4e11
mov edi, dword [esi + 0x14]
mov ecx, esi
call fcn.004e2c30
push eax
push edi
push 0x18b
jmp 0x4b5455
mov edi, dword [esi + 0x14]
call fcn.004e2c30
push eax
push edi
push 0x1a2
jmp 0x4b5455
mov edi, dword [esi + 0x14]
mov ecx, esi
call fcn.004e2c30
push eax
push edi
push 0x1b9
jmp 0x4b5455
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov ebp, ebx
mov bl, 0x80
mov edi, dword [eax + 0x24]
add edi, 3
add edi, ecx
cmp dword [esp + 0x14], 0
jle 0x4b53c9
mov al, byte [esp + 0x23]
nop
cmp bl, 0x80
jne 0x4b53a0
mov ecx, esi
call fcn.004e2ac0
mov edx, dword [esp + 0x1c]
mov cl, bl
and cl, al
neg cl
sbb cl, cl
and cl, 1
dec cl
mov byte [edi], cl
cmp bl, 1
jbe 0x4b53b8
shr bl, 1
jmp 0x4b53ba
mov bl, 0x80
dec ebp
add edi, edx
test ebp, ebp
jg 0x4b5390
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x23], al
mov ebx, dword [esp + 0x5c]
test bl, 3
je 0x4b53e7
mov ecx, esi
call fcn.004e2ac0
inc ebx
test bl, 3
jne 0x4b53d2
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
sub ecx, dword [esp + 0x58]
dec eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
test eax, eax
jns 0x4b5370
cmp dword [esi + 0x18], 0
je 0x4b5419
mov edi, dword [esi + 0x14]
mov ecx, esi
call fcn.004e2c30
push eax
push edi
push 0x211
jmp 0x4b5455
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x380]
mov dword [ecx + 8], eax
mov dword [ecx + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], 0
jmp 0x4b546e
mov edi, dword [esi + 0x14]
mov ecx, esi
call fcn.004e2c30
push eax
push edi
push 0x1fa
push str.__d__Fl_BMP_Image:__s___unexpected_EOF_or_read_error_at_offset__ld
call dword [0x59805c]
add esp, 0x10
mov eax, dword [esp + 0x28]
mov dword [eax + 0x10], 0xfffffffd
pop ebp
mov ecx, dword [esp + 0x370]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00515f8b
add esp, 0x368
ret 0xc