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

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
push edi
push 0x18
mov dword [esp + 0x14], ecx
call fcn.0043878d
mov esi, dword [esp + 0x7c]
mov ebp, eax
xor ebx, ebx
add esp, 4
cmp ebp, ebx
je 0x41d39f
mov ecx, dword [esp + 0x7c]
lea eax, [esi + 7]
sar eax, 3
mov dword [ebp + 0x10], eax
imul eax, ecx
push eax
mov dword [ebp + 4], ebx
mov dword [ebp], 0x44f514
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], ecx
call fcn.004375c0
add esp, 4
mov dword [ebp + 0x14], eax
jmp 0x41d3a1
xor ebp, ebp
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
cmp dword [esp + 0x74], ebx
je 0x41d908
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x80]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea ebx, [esi*4 + 8]
push ebx
call fcn.004375c0
push ebx
mov edi, eax
call fcn.004375c0
mov dword [esp + 0x9c], eax
mov dword [eax + 4], esi
mov dword [eax], esi
mov eax, dword [esp + 0x84]
add esp, 8
test eax, eax
mov dword [esp + 0x84], 0
jle 0x41d88b
jmp 0x41d420
mov eax, dword [esp + 0x94]
mov ecx, dword [eax]
mov ebx, dword [esp + 0x78]
xor edx, edx
cmp ecx, ebx
jge 0x41d445
mov esi, edi
sub esi, eax
mov dword [esi + eax], ecx
mov ecx, dword [eax + 4]
add eax, 4
inc edx
cmp ecx, ebx
jl 0x41d437
mov eax, dword [esp + 0x78]
xor ebx, ebx
mov dword [edi + edx*4 + 4], eax
mov dword [edi + edx*4], eax
xor esi, esi
mov dword [esp + 0x90], ebx
jmp 0x41d460
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x80]
call fcn.0041c890
cmp eax, 8
ja case.default.0x41d478
jmp dword [eax*4 + 0x41e178]
mov edx, dword [esp + 0x78]
cmp dword [edi + esi*4], edx
jge 0x41d7eb
mov ebx, dword [edi + esi*4 + 4]
add esi, 2
jmp 0x41d7eb
test byte [esp + 0x90], 1
mov dword [esp + 0x88], 0
je 0x41d510
lea ecx, [ecx]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x80]
call fcn.0041ca50
mov edx, dword [esp + 0x88]
add edx, eax
cmp eax, 0x40
mov dword [esp + 0x88], edx
jge 0x41d4b0
mov dword [esp + 0x8c], 0
nop
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x80]
call fcn.0041c960
mov edx, dword [esp + 0x8c]
add edx, eax
cmp eax, 0x40
mov dword [esp + 0x8c], edx
jge 0x41d4e0
jmp 0x41d564
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x80]
call fcn.0041c960
mov edx, dword [esp + 0x88]
add edx, eax
cmp eax, 0x40
mov dword [esp + 0x88], edx
jge 0x41d510
mov dword [esp + 0x8c], 0
nop
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x80]
call fcn.0041ca50
mov edx, dword [esp + 0x8c]
add edx, eax
cmp eax, 0x40
mov dword [esp + 0x8c], edx
jge 0x41d540
mov eax, dword [esp + 0x88]
test eax, eax
jg 0x41d57e
mov eax, dword [esp + 0x8c]
test eax, eax
jle 0x41d7eb
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
add ebx, ecx
mov ecx, dword [esp + 0x94]
mov dword [ecx + eax*4], ebx
inc eax
add ebx, edx
mov dword [ecx + eax*4], ebx
inc eax
mov dword [esp + 0x90], eax
mov eax, dword [edi + esi*4]
cmp eax, ebx
jg 0x41d7eb
jmp 0x41d5c0
cmp eax, dword [esp + 0x78]
jge 0x41d7eb
mov eax, dword [edi + esi*4 + 8]
add esi, 2
cmp eax, ebx
jle 0x41d5c0
jmp 0x41d7eb
mov eax, dword [esp + 0x90]
mov ebx, dword [edi + esi*4]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x78]
mov dword [ecx + eax*4], ebx
inc eax
mov dword [esp + 0x90], eax
cmp dword [edi + esi*4], edx
jge 0x41d7eb
inc esi
jmp 0x41d7eb
mov eax, dword [edi + esi*4]
mov ecx, dword [esp + 0x94]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x90]
mov dword [ecx + eax*4], ebx
mov ecx, dword [esp + 0x78]
inc eax
mov dword [esp + 0x90], eax
cmp dword [edi + esi*4], ecx
jge 0x41d7eb
mov eax, dword [edi + esi*4 + 4]
inc esi
cmp eax, ebx
jg 0x41d7eb
cmp eax, ecx
jge 0x41d7eb
mov eax, dword [edi + esi*4 + 8]
add esi, 2
cmp eax, ebx
jle 0x41d642
jmp 0x41d7eb
mov eax, dword [edi + esi*4]
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x78]
lea ebx, [eax + 2]
mov eax, dword [esp + 0x90]
mov dword [edx + eax*4], ebx
inc eax
mov dword [esp + 0x90], eax
cmp dword [edi + esi*4], ecx
jge 0x41d7eb
mov eax, dword [edi + esi*4 + 4]
inc esi
cmp eax, ebx
jg 0x41d7eb
cmp eax, ecx
jge 0x41d7eb
mov eax, dword [edi + esi*4 + 8]
add esi, 2
cmp eax, ebx
jle 0x41d693
jmp 0x41d7eb
mov eax, dword [edi + esi*4]
mov ecx, dword [esp + 0x94]
lea ebx, [eax + 3]
mov eax, dword [esp + 0x90]
mov dword [ecx + eax*4], ebx
mov ecx, dword [esp + 0x78]
inc eax
mov dword [esp + 0x90], eax
cmp dword [edi + esi*4], ecx
jge 0x41d7eb
mov eax, dword [edi + esi*4 + 4]
inc esi
cmp eax, ebx
jg 0x41d7eb
cmp eax, ecx
jge 0x41d7eb
mov eax, dword [edi + esi*4 + 8]
add esi, 2
cmp eax, ebx
jle 0x41d6e4
jmp 0x41d7eb
mov eax, dword [edi + esi*4]
mov edx, dword [esp + 0x94]
lea ebx, [eax - 1]
mov eax, dword [esp + 0x90]
mov dword [edx + eax*4], ebx
inc eax
test esi, esi
mov dword [esp + 0x90], eax
jle 0x41d722
dec esi
jmp 0x41d723
inc esi
mov eax, dword [edi + esi*4]
cmp eax, ebx
jg 0x41d7eb
mov ecx, dword [esp + 0x78]
cmp eax, ecx
jge 0x41d7eb
mov eax, dword [edi + esi*4 + 8]
add esi, 2
cmp eax, ebx
jle 0x41d732
jmp 0x41d7eb
mov eax, dword [edi + esi*4]
mov ecx, dword [esp + 0x94]
lea ebx, [eax - 2]
mov eax, dword [esp + 0x90]
mov dword [ecx + eax*4], ebx
inc eax
test esi, esi
mov dword [esp + 0x90], eax
jle 0x41d770
dec esi
jmp 0x41d771
inc esi
mov eax, dword [edi + esi*4]
cmp eax, ebx
jg 0x41d7eb
mov ecx, dword [esp + 0x78]
lea esp, [esp]
cmp eax, ecx
jge 0x41d7eb
mov eax, dword [edi + esi*4 + 8]
add esi, 2
cmp eax, ebx
jle 0x41d780
jmp 0x41d7eb
mov eax, dword [edi + esi*4]
mov edx, dword [esp + 0x94]
lea ebx, [eax - 3]
mov eax, dword [esp + 0x90]
mov dword [edx + eax*4], ebx
inc eax
test esi, esi
mov dword [esp + 0x90], eax
jle 0x41d7b7
dec esi
jmp 0x41d7b8
inc esi
mov eax, dword [edi + esi*4]
cmp eax, ebx
jg 0x41d7eb
mov ecx, dword [esp + 0x78]
cmp eax, ecx
jge 0x41d7eb
mov eax, dword [edi + esi*4 + 8]
add esi, 2
cmp eax, ebx
jle 0x41d7c3
jmp 0x41d7eb
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
push str.Illegal_code_in_JBIG2_MMR_bitmap_data
call dword [eax + 0x20]
push eax
call fcn.00405840
add esp, 8
mov edx, dword [esp + 0x78]
cmp ebx, edx
jl 0x41d460
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
mov dword [ecx + eax*4], edx
cmp dword [ecx], edx
jge 0x41d870
mov ebx, ecx
mov dword [esp + 0x90], ecx
mov eax, dword [ebx]
cmp eax, dword [ebx + 4]
jge 0x41d85d
lea esp, [esp]
mov ecx, dword [ebp + 0x10]
imul ecx, dword [esp + 0x84]
mov edx, eax
sar edx, 3
add ecx, edx
mov edx, dword [ebp + 0x14]
lea esi, [ecx + edx]
mov edx, eax
and edx, 7
mov ecx, 7
sub ecx, edx
mov dl, 1
shl dl, cl
or byte [esi], dl
mov ecx, dword [ebx + 4]
inc eax
cmp eax, ecx
jl 0x41d820
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x78]
mov eax, dword [ecx + 8]
add ecx, 8
cmp eax, edx
mov dword [esp + 0x90], ecx
mov ebx, ecx
jl 0x41d815
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x7c]
inc eax
cmp eax, ecx
mov dword [esp + 0x84], eax
jl 0x41d420
mov ebx, dword [esp + 0x98]
test ebx, ebx
jl 0x41d8bb
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x80]
cmp dword [esi + 0xc], ebx
jae 0x41d8e6
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [esi + 0xc]
inc ecx
mov eax, ecx
cmp eax, ebx
mov dword [esi + 0xc], ecx
jb 0x41d8a5
jmp 0x41d8e6
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x80]
call fcn.0041cb80
cmp eax, 0x1001
je 0x41d8e6
mov eax, dword [esi]
push str.Missing_EOFB_in_JBIG2_MMR_bitmap_data
mov ecx, esi
call dword [eax + 0x20]
push eax
call fcn.00405840
add esp, 8
push edi
call fcn.00437650
mov ecx, dword [esp + 0x98]
push ecx
call fcn.00437650
add esp, 8
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x60
ret 0x28
cmp dword [esp + 0x84], ebx
mov dword [esp + 0x1c], ebx
je case.default.0x41d921
mov eax, dword [esp + 0x80]
cmp eax, 3
ja case.default.0x41d921
jmp dword [eax*4 + 0x41e19c]
mov dword [esp + 0x1c], 0x3953
jmp case.default.0x41d921
mov dword [esp + 0x1c], 0x79a
jmp case.default.0x41d921
mov dword [esp + 0x1c], 0xe3
jmp case.default.0x41d921
mov dword [esp + 0x1c], 0x18a
mov eax, dword [esp + 0x7c]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x24], esi
jle 0x41e16a
or edi, 0xffffffff
mov dword [esp + 0x20], edi
jmp 0x41d96d
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp ecx, ebx
je 0x41d9ca
mov edx, dword [eax + 0x3c]
mov ecx, dword [esp + 0x1c]
push edx
push ecx
mov ecx, dword [eax + 0x38]
call fcn.0041c270
test eax, eax
je 0x41d9a0
xor edx, edx
cmp esi, ebx
sete dl
mov esi, edx
mov dword [esp + 0x24], esi
cmp esi, ebx
je 0x41d9ca
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov esi, edi
imul esi, eax
add esi, edx
inc edi
imul edi, eax
mov ecx, eax
shr ecx, 2
add edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp case.default.0x41d9da
mov eax, dword [esp + 0x80]
cmp eax, 3
ja case.default.0x41d9da
jmp dword [eax*4 + 0x41e1ac]
lea eax, [edi - 1]
cmp eax, ebx
jl 0x41da0d
cmp eax, dword [ebp + 0xc]
jge 0x41da0d
cmp dword [ebp + 8], ebx
jle 0x41da0d
mov ecx, dword [ebp + 0x10]
imul ecx, eax
add ecx, dword [ebp + 0x14]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], 7
mov dword [esp + 0x3c], ebx
jmp 0x41da11
mov dword [esp + 0x34], ebx
lea edx, [esp + 0x34]
push edx
mov ecx, ebp
call fcn.0041cdf0
mov esi, eax
lea eax, [esp + 0x34]
push eax
mov ecx, ebp
call fcn.0041cdf0
lea ecx, [esi + esi]
or eax, ecx
cmp edi, ebx
mov dword [esp + 0x74], eax
jl 0x41da5f
cmp edi, dword [ebp + 0xc]
jge 0x41da5f
cmp dword [ebp + 8], ebx
jle 0x41da5f
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
imul edx, edi
add edx, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x30], ebx
jmp 0x41da63
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call fcn.0041cdf0
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
mov edi, eax
call fcn.0041cdf0
mov esi, eax
lea eax, [esp + 0x28]
lea edx, [edi + edi]
push eax
mov ecx, ebp
or esi, edx
call fcn.0041cdf0
mov ebx, dword [esp + 0x94]
mov edi, eax
mov eax, dword [ebx]
lea ecx, [esi + esi]
mov esi, dword [esp + 0x20]
or edi, ecx
mov ecx, dword [esp + 0x90]
lea edx, [esp + 0x40]
push edx
mov edx, dword [ecx]
inc esi
add eax, esi
push eax
push edx
mov ecx, ebp
mov dword [esp + 0x24], 0
call fcn.0041cd80
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x90]
lea eax, [esp + 0x4c]
push eax
mov eax, dword [edx + 4]
add ecx, esi
push ecx
push eax
mov ecx, ebp
call fcn.0041cd80
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [eax + 8]
add edx, esi
push edx
push ecx
mov ecx, ebp
call fcn.0041cd80
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x90]
lea edx, [esp + 0x64]
push edx
mov edx, dword [ecx + 0xc]
add eax, esi
push eax
push edx
mov ecx, ebp
call fcn.0041cd80
mov eax, dword [esp + 0x78]
xor ebx, ebx
test eax, eax
jle case.default.0x41d9da
jmp 0x41db30
lea eax, [esp + 0x40]
push eax
mov ecx, ebp
call fcn.0041cdf0
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x18]
shl ecx, 5
or ecx, edi
shl ecx, 4
or ecx, edx
shl ecx, 1
mov esi, eax
or esi, ecx
lea edx, [esp + 0x4c]
push edx
mov ecx, ebp
shl esi, 1
call fcn.0041cdf0
or esi, eax
lea eax, [esp + 0x58]
push eax
mov ecx, ebp
shl esi, 1
call fcn.0041cdf0
lea ecx, [esp + 0x64]
or esi, eax
push ecx
mov ecx, ebp
shl esi, 1
call fcn.0041cdf0
or esi, eax
mov eax, dword [esp + 0x88]
test eax, eax
je 0x41dbb3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x8c]
inc eax
push eax
push ebx
call fcn.0041cbf0
test eax, eax
je 0x41dbb3
mov dword [esp + 0x98], 0
jmp 0x41dbf9
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x3c]
mov ecx, dword [eax + 0x38]
push edx
push esi
call fcn.0041c270
test eax, eax
mov dword [esp + 0x98], eax
je 0x41dbf9
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x10]
inc eax
imul ecx, eax
mov eax, dword [ebp + 0x14]
mov edx, ebx
sar edx, 3
add ecx, edx
lea esi, [ecx + eax]
mov edx, ebx
and edx, 7
mov ecx, 7
sub ecx, edx
mov al, 1
shl al, cl
or byte [esi], al
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call fcn.0041cdf0
mov edx, dword [esp + 0x74]
lea ecx, [edx + edx]
or eax, ecx
lea edx, [esp + 0x28]
and eax, 7
push edx
mov ecx, ebp
mov dword [esp + 0x78], eax
call fcn.0041cdf0
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x98]
lea ecx, [edi + edi]
or eax, ecx
and eax, 0x1f
mov edi, eax
lea eax, [edx + edx]
or eax, esi
and eax, 0xf
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
inc ebx
cmp ebx, eax
jl 0x41db30
jmp case.default.0x41d9da
lea eax, [edi - 1]
cmp eax, ebx
jl 0x41dc80
cmp eax, dword [ebp + 0xc]
jge 0x41dc80
cmp dword [ebp + 8], ebx
jle 0x41dc80
mov ecx, dword [ebp + 0x10]
imul ecx, eax
add ecx, dword [ebp + 0x14]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], 7
mov dword [esp + 0x3c], ebx
jmp 0x41dc84
mov dword [esp + 0x34], ebx
lea edx, [esp + 0x34]
push edx
mov ecx, ebp
call fcn.0041cdf0
mov ebx, eax
lea eax, [esp + 0x34]
push eax
mov ecx, ebp
call fcn.0041cdf0
mov esi, eax
lea ecx, [ebx + ebx]
lea edx, [esp + 0x34]
or esi, ecx
push edx
mov ecx, ebp
call fcn.0041cdf0
lea ecx, [esi + esi]
or eax, ecx
mov dword [esp + 0x74], eax
xor eax, eax
cmp edi, eax
jl 0x41dce7
cmp edi, dword [ebp + 0xc]
jge 0x41dce7
cmp dword [ebp + 8], eax
jle 0x41dce7
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
imul edx, edi
add edx, ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x30], eax
jmp 0x41dceb
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call fcn.0041cdf0
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
mov esi, eax
call fcn.0041cdf0
mov ebx, eax
lea eax, [esp + 0x28]
lea edx, [esi + esi]
push eax
mov ecx, ebp
or ebx, edx
call fcn.0041cdf0
mov esi, eax
mov eax, dword [esp + 0x94]
lea ecx, [ebx + ebx]
or esi, ecx
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x94]
mov eax, dword [edx]
xor ebx, ebx
inc edi
add ecx, edi
push ecx
push eax
mov ecx, ebp
mov dword [esp + 0x20], edi
call fcn.0041cd80
mov eax, dword [esp + 0x78]
xor edi, edi
test eax, eax
jle case.default.0x41d9da
lea ecx, [esp + 0x40]
push ecx
mov ecx, ebp
call fcn.0041cdf0
mov edx, dword [esp + 0x74]
shl edx, 5
or edx, esi
shl edx, 3
or edx, ebx
shl edx, 1
or eax, edx
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x88]
test eax, eax
je 0x41dda9
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x8c]
push eax
push edi
call fcn.0041cbf0
test eax, eax
je 0x41dda9
mov dword [esp + 0x98], 0
jmp 0x41ddf2
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
mov edx, dword [esp + 0x98]
push ecx
mov ecx, dword [eax + 0x38]
push edx
call fcn.0041c270
test eax, eax
mov dword [esp + 0x98], eax
je 0x41ddf2
mov eax, dword [ebp + 0x10]
imul eax, dword [esp + 0x14]
mov edx, dword [ebp + 0x14]
mov ecx, edi
sar ecx, 3
add eax, ecx
add eax, edx
mov edx, edi
and edx, 7
mov ecx, 7
sub ecx, edx
mov dl, 1
shl dl, cl
or byte [eax], dl
lea eax, [esp + 0x34]
push eax
mov ecx, ebp
call fcn.0041cdf0
mov ecx, dword [esp + 0x74]
lea edx, [ecx + ecx]
or eax, edx
and eax, 0xf
mov dword [esp + 0x74], eax
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call fcn.0041cdf0
lea ecx, [esi + esi]
or eax, ecx
and eax, 0x1f
add ebx, ebx
mov esi, eax
or ebx, dword [esp + 0x98]
mov eax, dword [esp + 0x78]
and ebx, 7
inc edi
cmp edi, eax
jl 0x41dd56
jmp case.default.0x41d9da
lea eax, [edi - 1]
cmp eax, ebx
jl 0x41de6e
cmp eax, dword [ebp + 0xc]
jge 0x41de6e
cmp dword [ebp + 8], ebx
jle 0x41de6e
mov edx, dword [ebp + 0x10]
imul edx, eax
add edx, dword [ebp + 0x14]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], 7
mov dword [esp + 0x3c], ebx
jmp 0x41de72
mov dword [esp + 0x34], ebx
lea eax, [esp + 0x34]
push eax
mov ecx, ebp
call fcn.0041cdf0
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
mov esi, eax
call fcn.0041cdf0
lea edx, [esi + esi]
or eax, edx
cmp edi, ebx
mov dword [esp + 0x74], eax
jl 0x41dec0
cmp edi, dword [ebp + 0xc]
jge 0x41dec0
cmp dword [ebp + 8], ebx
jle 0x41dec0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
imul eax, edi
add eax, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x30], ebx
jmp 0x41dec4
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
call fcn.0041cdf0
lea edx, [esp + 0x28]
push edx
mov ecx, ebp
mov ebx, eax
call fcn.0041cdf0
mov edx, dword [esp + 0x94]
mov esi, eax
lea eax, [ebx + ebx]
or esi, eax
mov eax, dword [edx]
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x94]
mov edx, dword [ecx]
xor ebx, ebx
inc edi
add eax, edi
push eax
push edx
mov ecx, ebp
mov dword [esp + 0x20], edi
call fcn.0041cd80
mov eax, dword [esp + 0x78]
xor edi, edi
test eax, eax
jle case.default.0x41d9da
lea esp, [esp]
lea eax, [esp + 0x40]
push eax
mov ecx, ebp
call fcn.0041cdf0
mov ecx, dword [esp + 0x74]
shl ecx, 4
or ecx, esi
shl ecx, 2
or ecx, ebx
shl ecx, 1
or eax, ecx
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x88]
test eax, eax
je 0x41df73
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x8c]
push edx
push edi
call fcn.0041cbf0
test eax, eax
je 0x41df73
mov dword [esp + 0x98], 0
jmp 0x41dfbc
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
mov edx, dword [esp + 0x98]
push ecx
mov ecx, dword [eax + 0x38]
push edx
call fcn.0041c270
test eax, eax
mov dword [esp + 0x98], eax
je 0x41dfbc
mov eax, dword [ebp + 0x10]
imul eax, dword [esp + 0x14]
mov edx, dword [ebp + 0x14]
mov ecx, edi
sar ecx, 3
add eax, ecx
add eax, edx
mov edx, edi
and edx, 7
mov ecx, 7
sub ecx, edx
mov dl, 1
shl dl, cl
or byte [eax], dl
lea eax, [esp + 0x34]
push eax
mov ecx, ebp
call fcn.0041cdf0
mov ecx, dword [esp + 0x74]
lea edx, [ecx + ecx]
or eax, edx
and eax, 7
mov dword [esp + 0x74], eax
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call fcn.0041cdf0
lea ecx, [esi + esi]
or eax, ecx
and eax, 0xf
add ebx, ebx
mov esi, eax
or ebx, dword [esp + 0x98]
mov eax, dword [esp + 0x78]
and ebx, 3
inc edi
cmp edi, eax
jl 0x41df20
jmp case.default.0x41d9da
cmp edi, ebx
jl 0x41e037
cmp edi, dword [ebp + 0xc]
jge 0x41e037
cmp dword [ebp + 8], ebx
jle 0x41e037
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
imul edx, edi
add edx, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x30], ebx
jmp 0x41e03b
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call fcn.0041cdf0
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
mov ebx, eax
call fcn.0041cdf0
mov ecx, dword [esp + 0x94]
mov esi, eax
lea edx, [ebx + ebx]
or esi, edx
mov edx, dword [ecx]
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x94]
mov ecx, dword [eax]
inc edi
add edx, edi
push edx
push ecx
mov ecx, ebp
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], edi
call fcn.0041cd80
mov eax, dword [esp + 0x78]
xor edi, edi
test eax, eax
jle case.default.0x41d9da
lea esp, [esp]
lea edx, [esp + 0x40]
push edx
mov ecx, ebp
call fcn.0041cdf0
mov ecx, dword [esp + 0x18]
mov ebx, eax
mov eax, esi
shl eax, 4
or eax, ecx
shl eax, 1
or ebx, eax
mov eax, dword [esp + 0x88]
test eax, eax
je 0x41e0e2
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x90]
push edi
call fcn.0041cbf0
test eax, eax
je 0x41e0e2
xor ebx, ebx
jmp 0x41e11f
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x3c]
mov ecx, dword [eax + 0x38]
push edx
push ebx
call fcn.0041c270
mov ebx, eax
test ebx, ebx
je 0x41e11f
mov eax, dword [ebp + 0x10]
imul eax, dword [esp + 0x14]
mov edx, dword [ebp + 0x14]
mov ecx, edi
sar ecx, 3
add eax, ecx
add eax, edx
mov edx, edi
and edx, 7
mov ecx, 7
sub ecx, edx
mov dl, 1
shl dl, cl
or byte [eax], dl
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call fcn.0041cdf0
mov edx, dword [esp + 0x18]
lea ecx, [esi + esi]
or eax, ecx
and eax, 0x1f
mov esi, eax
lea eax, [edx + edx]
or eax, ebx
and eax, 0xf
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
inc edi
cmp edi, eax
jl 0x41e0a0
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x7c]
inc edi
lea ecx, [edi + 1]
cmp ecx, eax
mov dword [esp + 0x20], edi
jl 0x41d969
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x60
ret 0x28