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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, edx
xor ecx, ecx
cmp dword [esp + 0x7c], 0x10
push edi
mov edi, dword [esp + 0x78]
sete cl
inc ecx
mov dword [esp + 0x48], edi
mov edx, ecx
imul edx, dword [esp + 0x74]
push 0
mov eax, edx
mov dword [esp + 0x18], edx
imul eax, edi
push edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x38], eax
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov ebx, eax
imul ebx, ecx
mov ecx, edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ebx
call fcn.1002d3f0
add esp, 8
test eax, eax
jne 0x100344a1
mov dword [esi + 0xc], eax
jmp 0x100344c1
mov eax, dword [esp + 0x30]
imul eax, dword [esp + 0x7c]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
mov dword [esp + 0x24], eax
add esp, 4
mov dword [esi + 0xc], edi
test edi, edi
jne 0x100344e4
mov ecx, dword [0x102c23c0]
mov eax, dword fs:[0x2c]
pop edi
pop esi
pop ebp
mov eax, dword [eax + ecx*4]
pop ebx
mov dword [eax + 0xc], str.outofmem
xor eax, eax
add esp, 0x5c
ret
mov esi, dword [esp + 0x28]
test esi, esi
js 0x100353da
mov ecx, dword [esp + 0x78]
test ecx, ecx
js 0x100353da
je 0x1003450f
xor edx, edx
mov eax, accept
div ecx
cmp esi, eax
jg 0x100353da
imul esi, ecx
mov dword [esp + 0x38], esi
test esi, esi
js 0x100353da
mov ecx, dword [esp + 0x80]
test ecx, ecx
js 0x100353da
je 0x10034540
xor edx, edx
mov eax, accept
div ecx
cmp esi, eax
jg 0x100353da
mov eax, esi
imul eax, ecx
cmp eax, 0x7ffffff8
jg 0x100353da
add eax, 7
shr eax, 3
mov dword [esp + 0x50], eax
inc eax
imul eax, dword [esp + 0x7c]
cmp dword [esp + 0x70], eax
jae 0x10034589
mov ecx, dword [0x102c23c0]
mov eax, dword fs:[0x2c]
pop edi
pop esi
pop ebp
mov eax, dword [eax + ecx*4]
pop ebx
mov dword [eax + 0xc], str.not_enough_pixels
xor eax, eax
add esp, 0x5c
ret
mov eax, dword [esp + 0x7c]
xor esi, esi
mov dword [esp + 0x4c], esi
test eax, eax
je 0x10034fde
mov dword [esp + 0x20], edi
nop
movzx ecx, byte [ebp]
mov eax, esi
imul eax, dword [esp + 0x30]
inc ebp
mov dword [esp + 0x34], ecx
add eax, edi
mov dword [esp + 0x68], eax
mov edx, eax
mov dword [esp + 0x10], edx
cmp ecx, 4
ja 0x1003503b
cmp dword [esp + 0x80], 8
jge 0x100345fb
mov ebx, dword [esp + 0x78]
mov edi, dword [esp + 0x50]
cmp edi, ebx
ja 0x10035018
mov eax, dword [esp + 0x74]
imul eax, ebx
mov ebx, 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x48], edi
sub eax, edi
add edx, eax
mov dword [esp + 0x10], edx
mov edi, edx
sub edi, dword [esp + 0x30]
mov dword [esp + 0x1c], edi
test esi, esi
jne 0x10034614
movzx ecx, byte [ecx + 0x101a2144]
mov dword [esp + 0x34], ecx
test ebx, ebx
jle 0x100346e8
mov eax, edi
mov edx, ebp
mov edi, dword [esp + 0x10]
sub eax, ebp
mov dword [esp + 0x2c], eax
sub edi, ebp
mov esi, ebx
nop
cmp ecx, 6
ja case.default.0x10034635
jmp dword [ecx*4 + 0x10035400]
inc edx
sub esi, 1
jne 0x10034630
jmp 0x100346e0
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [edi + edx - 1], al
sub esi, 1
jne case.0x10034635.0
jmp 0x100346e0
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [edi + edx - 1], al
sub esi, 1
jne case.0x10034635.1
jmp 0x100346e0
mov al, byte [eax + edx]
lea edx, [edx + 1]
add al, byte [edx - 1]
mov byte [edi + edx - 1], al
sub esi, 1
je 0x100346e0
mov eax, dword [esp + 0x2c]
jmp case.0x10034635.2
mov al, byte [eax + edx]
lea edx, [edx + 1]
shr al, 1
add al, byte [edx - 1]
mov byte [edi + edx - 1], al
sub esi, 1
je 0x100346e0
mov eax, dword [esp + 0x2c]
jmp case.0x10034635.3
mov cl, byte [eax + edx]
lea edx, [edx + 1]
xor al, al
cmp al, cl
sbb al, al
and al, cl
add al, byte [edx - 1]
mov byte [edi + edx - 1], al
sub esi, 1
je 0x100346e0
mov eax, dword [esp + 0x2c]
jmp case.0x10034635.4
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [edi + edx - 1], al
sub esi, 1
jne case.0x10034635.5
jmp 0x100346e0
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [edi + edx - 1], al
sub esi, 1
jne case.0x10034635.6
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x80]
cmp eax, 8
jne 0x1003471b
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x28]
cmp ecx, eax
je 0x10034704
mov byte [edx + ecx], 0xff
add ebp, ecx
add edi, eax
lea ecx, [eax + edx]
mov dword [esp + 0x10], ebp
mov esi, ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
jmp 0x10034767
cmp eax, 0x10
jne 0x1003474b
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x74]
je 0x10034730
mov word [edx + ebx], 0xffff
mov eax, dword [esp + 0x14]
add ebp, ebx
add edi, eax
mov dword [esp + 0x10], ebp
mov esi, ebp
mov dword [esp + 0x24], edi
lea ecx, [edx + eax]
mov dword [esp + 0x1c], ecx
jmp 0x1003476b
inc ebp
lea ecx, [edx + 1]
inc edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x24], edi
mov esi, ebp
mov dword [esp + 0x1c], ecx
cmp eax, 8
jl 0x10034cbf
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
cmp edx, dword [esp + 0x74]
je 0x10034cbf
mov edx, dword [esp + 0x34]
cmp edx, 6
ja case.default.0x10034788
mov ebp, esi
jmp dword [edx*4 + 0x1003541c]
mov edx, dword [esp + 0x78]
mov ebp, esi
dec edx
mov dword [esp + 0x34], edx
cmp edx, 1
jb case.default.0x10034788
test ebx, ebx
jle 0x100347c6
mov edi, ebp
mov edx, ecx
sub edi, ecx
mov esi, ebx
nop
mov al, byte [edi + edx]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub esi, 1
jne 0x100347b0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
mov byte [ecx + ebx], 0xff
add ebp, ebx
add ecx, eax
sub edx, 1
mov dword [esp + 0x34], edx
jne 0x100347a3
jmp case.default.0x10034788
mov edx, dword [esp + 0x78]
mov ebp, esi
lea edi, [edx - 1]
mov dword [esp + 0x34], edi
cmp edi, 1
jb 0x10034c91
mov edx, ecx
mov dword [esp + 0x10], ebp
sub edx, eax
mov dword [esp + 0x2c], edx
nop
xor esi, esi
test ebx, ebx
jle 0x10034830
mov edi, ebp
mov ebp, dword [esp + 0x2c]
sub edi, ecx
nop
mov al, byte [esi + ebp]
lea edx, [esi + ecx]
add al, byte [edi + edx]
inc esi
mov byte [edx], al
cmp esi, ebx
jl 0x10034810
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x34]
mov byte [ecx + ebx], 0xff
add ebp, ebx
add edx, eax
mov dword [esp + 0x10], ebp
add ecx, eax
mov dword [esp + 0x2c], edx
sub edi, 1
mov dword [esp + 0x34], edi
jne 0x10034800
jmp case.default.0x10034788
mov edx, dword [esp + 0x78]
mov ebp, esi
dec edx
mov dword [esp + 0x2c], edx
cmp edx, 1
jb case.default.0x10034788
lea edx, [ecx + ebx]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x34], edx
mov edx, 0x20
sub edx, ebx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x2c]
nop
xor esi, esi
test ebx, ebx
jle 0x100349a6
cmp ebx, 0x40
jb 0x1003496b
lea eax, [ebp - 1]
lea edx, [ecx - 1]
add eax, ebx
add edx, ebx
cmp ecx, eax
ja 0x100348a9
cmp edx, ebp
jae 0x1003496b
lea eax, [edi - 1]
add eax, ebx
cmp ecx, eax
ja 0x100348ba
cmp edx, edi
jae 0x1003496b
mov eax, ebx
and eax, 0x8000003f
jns 0x100348c8
dec eax
or eax, 0xffffffc0
inc eax
mov edx, ebx
mov ebx, edi
sub ebx, ebp
sub edx, eax
mov dword [esp + 0x40], ebx
lea eax, [ebp + 0x10]
mov ebx, ecx
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x44]
sub ebx, ebp
add edx, dword [esp + 0x34]
mov dword [esp + 0x3c], ebx
mov ebx, edi
mov ebp, dword [esp + 0x3c]
sub ebx, ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x54], ebx
nop dword [eax + eax]
movups xmm0, xmmword [eax - 0x10]
mov ebx, dword [esp + 0x54]
lea eax, [eax + 0x40]
movups xmm1, xmmword [esi + edi]
lea edx, [edx + 0x40]
paddb xmm1, xmm0
movups xmm0, xmmword [eax - 0x40]
movups xmmword [edx - 0x60], xmm1
movups xmm1, xmmword [eax + ecx - 0x40]
paddb xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [eax + ebp - 0x40], xmm1
movups xmm1, xmmword [edx + ebx - 0x40]
mov ebx, dword [esp + 0x18]
paddb xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [edx - 0x40], xmm1
movups xmm1, xmmword [edi + esi + 0x30]
add esi, 0x40
paddb xmm1, xmm0
movups xmmword [edx - 0x30], xmm1
cmp esi, dword [esp + 0x58]
jl 0x10034900
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x58], esi
cmp esi, ebx
jge 0x1003499e
mov dword [esp + 0x58], edi
lea edx, [esi + ebp]
mov eax, ecx
mov dword [esp + 0x58], ebx
sub eax, ebp
sub edi, ebp
sub ebx, esi
mov dword [esp + 0x54], eax
mov esi, eax
mov al, byte [edi + edx]
lea edx, [edx + 1]
add al, byte [edx - 1]
mov byte [esi + edx - 1], al
sub ebx, 1
jne 0x10034984
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x34]
add ebp, ebx
add ecx, eax
mov dword [esp + 0x10], ebp
add edi, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edi
mov byte [esi], 0xff
add esi, eax
sub edx, 1
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], edx
jne 0x10034880
jmp case.default.0x10034788
mov edx, dword [esp + 0x78]
mov ebp, esi
dec edx
mov dword [esp + 0x2c], edx
cmp edx, 1
jb case.default.0x10034788
mov esi, dword [esp + 0x2c]
mov edx, ecx
sub edx, eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x34], edx
nop dword [eax + eax]
mov dword [esp + 0x58], 0
test ebx, ebx
jle 0x10034a64
sub edi, ebp
mov esi, ebp
sub ecx, ebp
mov dword [esp + 0x54], edi
mov edi, dword [esp + 0x58]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x44]
nop word [eax + eax]
movzx edx, byte [edx + edi]
lea esi, [esi + 1]
movzx eax, byte [ecx + esi - 1]
inc edi
add edx, eax
shr edx, 1
add dl, byte [esi - 1]
mov byte [esi + ebp - 1], dl
mov edx, dword [esp + 0x34]
cmp edi, ebx
jl 0x10034a30
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov byte [ecx + ebx], 0xff
add ebp, ebx
add ecx, eax
mov dword [esp + 0x10], ebp
add edx, eax
mov dword [esp + 0x1c], ecx
add edi, eax
mov dword [esp + 0x34], edx
sub esi, 1
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], esi
jne 0x10034a00
jmp case.default.0x10034788
mov edx, dword [esp + 0x78]
mov ebp, esi
dec edx
mov dword [esp + 0x34], edx
cmp edx, 1
jb case.default.0x10034788
mov esi, dword [esp + 0x34]
mov edx, ecx
sub edx, eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x44], edx
test ebx, ebx
jle 0x10034b7a
mov dword [esp + 0x58], edx
mov eax, edi
sub eax, ecx
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x14]
mov edx, edi
mov ecx, dword [esp + 0x58]
sub edx, ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
movzx eax, byte [ecx + eax]
movzx edi, byte [edx + ebp]
movzx edx, byte [ecx]
mov dword [esp + 0x2c], eax
mov esi, edx
sub esi, eax
mov dword [esp + 0x5c], edi
add edi, esi
mov dword [esp + 0x3c], edx
mov eax, edi
sub edi, dword [esp + 0x2c]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x58], eax
mov eax, esi
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x54], eax
mov eax, edi
cdq
mov esi, eax
mov eax, dword [esp + 0x58]
xor esi, edx
sub esi, edx
mov edx, dword [esp + 0x54]
cmp eax, edx
jg 0x10034b34
cmp eax, esi
jle 0x10034b43
mov eax, dword [esp + 0x2c]
cmp edx, esi
cmovle eax, dword [esp + 0x5c]
mov dword [esp + 0x3c], eax
mov al, byte [ebp]
inc ebp
add al, byte [esp + 0x3c]
mov edx, dword [esp + 0x64]
mov byte [ecx + ebx], al
inc ecx
sub dword [esp + 0x40], 1
mov eax, dword [esp + 0x60]
jne 0x10034ae2
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x34]
mov byte [ecx + ebx], 0xff
add ebp, ebx
add ecx, eax
mov dword [esp + 0x10], ebp
add edx, eax
mov dword [esp + 0x1c], ecx
add edi, eax
mov dword [esp + 0x44], edx
sub esi, 1
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], esi
jne 0x10034ab6
jmp case.default.0x10034788
mov edx, dword [esp + 0x78]
mov ebp, esi
lea edi, [edx - 1]
mov dword [esp + 0x44], edi
cmp edi, 1
jb 0x10034c91
mov edx, ecx
mov dword [esp + 0x10], ebp
sub edx, eax
mov dword [esp + 0x34], edx
nop word [eax + eax]
xor esi, esi
test ebx, ebx
jle 0x10034c02
mov edi, ebp
mov ebp, dword [esp + 0x34]
sub edi, ecx
nop
mov al, byte [esi + ebp]
lea edx, [esi + ecx]
shr al, 1
inc esi
add al, byte [edi + edx]
mov byte [edx], al
cmp esi, ebx
jl 0x10034be0
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x44]
mov byte [ecx + ebx], 0xff
add ebp, ebx
add edx, eax
mov dword [esp + 0x10], ebp
add ecx, eax
mov dword [esp + 0x34], edx
sub edi, 1
mov dword [esp + 0x44], edi
jne 0x10034bd0
jmp case.default.0x10034788
mov edx, dword [esp + 0x78]
mov ebp, esi
dec edx
mov dword [esp + 0x2c], edx
cmp edx, 1
jb case.default.0x10034788
mov esi, dword [esp + 0x2c]
mov edx, ecx
sub edx, eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x34], edx
nop
xor edi, edi
test ebx, ebx
jle 0x10034c72
mov dword [esp + 0x64], ebp
sub ebp, ecx
nop dword [eax]
mov dl, byte [edx + edi]
lea esi, [edi + ecx]
mov al, byte [esi + ebp]
inc edi
add al, dl
mov edx, dword [esp + 0x34]
mov byte [esi], al
cmp edi, ebx
jl 0x10034c50
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov byte [ecx + ebx], 0xff
add ebp, ebx
add edx, eax
mov dword [esp + 0x10], ebp
add ecx, eax
mov dword [esp + 0x34], edx
sub esi, 1
mov dword [esp + 0x2c], esi
jne 0x10034c40
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x80]
cmp ecx, 0x10
jne 0x10034fc5
test edx, edx
je 0x10034fc5
mov ecx, dword [esp + 0x68]
inc ecx
add ecx, ebx
mov byte [ecx], 0xff
add ecx, eax
sub edx, 1
jne 0x10034cb0
jmp 0x10034fbe
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
dec esi
imul esi, ebx
mov dword [esp + 0x2c], esi
cmp edx, 6
ja case.default.0x10034cd8
jmp dword [edx*4 + 0x10035438]
push esi
push ebp
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp case.default.0x10034cd8
xor edi, edi
test esi, esi
jle case.default.0x10034cd8
mov eax, ecx
sub eax, ebx
mov dword [esp + 0x68], eax
mov eax, ebp
mov ebx, dword [esp + 0x68]
sub eax, ecx
mov dword [esp + 0x64], eax
mov ebp, eax
nop
mov al, byte [ebx + edi]
lea edx, [ecx + edi]
add al, byte [edx + ebp]
inc edi
mov byte [edx], al
cmp edi, esi
jl 0x10034d10
jmp 0x10034fb4
xor edx, edx
mov dword [esp + 0x34], edx
test esi, esi
jle case.default.0x10034cd8
cmp esi, 0x40
jb 0x10034e27
lea eax, [ebp - 1]
mov dword [esp + 0x34], edx
add eax, esi
cmp ecx, eax
ja 0x10034d56
lea eax, [ecx - 1]
add eax, esi
cmp eax, ebp
jae 0x10034e27
lea eax, [edi - 1]
add eax, esi
cmp ecx, eax
ja 0x10034d6c
lea eax, [ecx - 1]
add eax, esi
cmp eax, edi
jae 0x10034e27
mov eax, esi
and eax, 0x8000003f
jns 0x10034d7a
dec eax
or eax, 0xffffffc0
inc eax
mov ebx, esi
sub ebx, eax
lea eax, [ecx + 0x20]
mov dword [esp + 0x58], ebx
mov ebx, edi
sub ebx, ebp
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], ebx
lea eax, [ebp + 0x10]
mov esi, dword [esp + 0x64]
mov ebx, ecx
sub ebx, ebp
mov dword [esp + 0x60], ebx
mov ebx, edi
sub ebx, ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x5c]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edi + edx]
lea ebx, [ebx + 0x40]
paddb xmm1, xmm0
movups xmm0, xmmword [eax - 0x40]
movups xmmword [ebx - 0x60], xmm1
movups xmm1, xmmword [esi + eax - 0x40]
paddb xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [ecx + eax - 0x40], xmm1
movups xmm1, xmmword [ebx + ebp - 0x40]
paddb xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [ebx - 0x40], xmm1
movups xmm1, xmmword [edi + edx + 0x30]
add edx, 0x40
paddb xmm1, xmm0
movups xmmword [ebx - 0x30], xmm1
cmp edx, dword [esp + 0x58]
jl 0x10034db4
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x68], edx
mov dword [esp + 0x34], edx
cmp edx, esi
jge case.default.0x10034cd8
mov ebx, esi
add edx, ebp
sub edi, ebp
sub ecx, ebp
sub ebx, dword [esp + 0x34]
mov al, byte [edx + edi]
lea edx, [edx + 1]
add al, byte [edx - 1]
mov byte [edx + ecx - 1], al
sub ebx, 1
jne 0x10034e33
jmp 0x10034fb8
mov dword [esp + 0x64], 0
test esi, esi
jle case.default.0x10034cd8
mov eax, ecx
mov dword [esp + 0x68], ebp
sub eax, ebx
sub edi, ebp
sub ecx, ebp
mov dword [esp + 0x60], eax
mov ebx, ebp
mov ebp, dword [esp + 0x64]
movzx eax, byte [eax + ebp]
lea ebx, [ebx + 1]
movzx edx, byte [ebx + edi - 1]
inc ebp
add edx, eax
mov eax, dword [esp + 0x60]
shr edx, 1
add dl, byte [ebx - 1]
mov byte [ebx + ecx - 1], dl
cmp ebp, esi
jl 0x10034e70
jmp 0x10034fb4
test esi, esi
jle case.default.0x10034cd8
mov eax, ecx
mov dword [esp + 0x34], esi
sub eax, ebx
mov edx, ebp
mov dword [esp + 0x68], eax
mov eax, edi
sub eax, ecx
mov dword [esp + 0x3c], edx
sub edi, ebp
mov dword [esp + 0x5c], eax
mov ebp, dword [esp + 0x68]
nop dword [eax]
movzx eax, byte [eax + ebp]
movzx esi, byte [edi + edx]
movzx edx, byte [ebp]
mov dword [esp + 0x44], eax
mov ecx, edx
sub ecx, eax
mov dword [esp + 0x60], esi
add esi, ecx
mov dword [esp + 0x40], edx
mov eax, esi
sub esi, dword [esp + 0x44]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x68], eax
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x64], eax
mov eax, esi
cdq
mov ecx, eax
mov eax, dword [esp + 0x68]
xor ecx, edx
sub ecx, edx
mov edx, dword [esp + 0x64]
cmp eax, edx
jg 0x10034f13
cmp eax, ecx
jle 0x10034f22
mov eax, dword [esp + 0x44]
cmp edx, ecx
cmovle eax, dword [esp + 0x60]
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x3c]
mov al, byte [edx]
inc edx
add al, byte [esp + 0x40]
mov byte [ebx + ebp], al
inc ebp
sub dword [esp + 0x34], 1
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x3c], edx
jne 0x10034ec0
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
jmp case.default.0x10034cd8
xor edi, edi
test esi, esi
jle case.default.0x10034cd8
mov eax, ecx
sub eax, ebx
mov dword [esp + 0x68], eax
mov eax, ebp
mov ebx, dword [esp + 0x68]
sub eax, ecx
mov dword [esp + 0x64], eax
mov ebp, eax
nop dword [eax]
mov al, byte [ebx + edi]
lea edx, [ecx + edi]
shr al, 1
inc edi
add al, byte [edx + ebp]
mov byte [edx], al
cmp edi, esi
jl 0x10034f70
jmp 0x10034fb4
xor edi, edi
test esi, esi
jle case.default.0x10034cd8
mov eax, ecx
mov dword [esp + 0x68], ebp
sub eax, ebx
sub ebp, ecx
mov dword [esp + 0x64], eax
mov ebx, eax
nop word [eax + eax]
lea esi, [ecx + edi]
mov al, byte [esi + ebp]
add al, byte [ebx + edi]
inc edi
mov byte [esi], al
mov esi, dword [esp + 0x2c]
cmp edi, esi
jl 0x10034fa0
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
add ebp, esi
mov ecx, dword [esp + 0x80]
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x7c]
inc esi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x4c], esi
cmp esi, eax
jb 0x100345a0
cmp ecx, 8
jge 0x10035396
test eax, eax
je 0x100353cd
mov eax, dword [esp + 0x74]
imul eax, dword [esp + 0x78]
sub eax, dword [esp + 0x50]
add eax, edi
mov dword [esp + 0x50], eax
cmp dword [esp + 0x84], 0
mov edx, edi
mov esi, eax
jne 0x1003505e
mov bl, byte [ecx + 0x10181d8c]
jmp 0x10035060
mov ecx, dword [0x102c23c0]
mov eax, dword fs:[0x2c]
pop edi
pop esi
pop ebp
mov eax, dword [eax + ecx*4]
pop ebx
mov dword [eax + 0xc], str.invalid_width
xor eax, eax
add esp, 0x5c
ret
mov ecx, dword [0x102c23c0]
mov eax, dword fs:[0x2c]
pop edi
pop esi
pop ebp
mov eax, dword [eax + ecx*4]
pop ebx
mov dword [eax + 0xc], str.invalid_filter
xor eax, eax
add esp, 0x5c
ret
mov bl, 1
cmp ecx, 4
jne 0x100350be
mov ebp, dword [esp + 0x38]
cmp ebp, 2
jl 0x100350ac
mov edi, ebp
shr edi, 1
mov eax, edi
neg eax
lea ebp, [ebp + eax*2]
nop word [eax + eax]
movzx ecx, byte [esi]
shr cl, 4
movzx ecx, cl
movzx eax, bl
imul ecx, eax
movzx eax, bl
mov byte [edx], cl
movzx ecx, byte [esi]
inc esi
and cl, 0xf
movzx ecx, cl
imul ecx, eax
mov byte [edx + 1], cl
add edx, 2
sub edi, 1
jne 0x10035080
test ebp, ebp
jle 0x100352f6
mov cl, byte [esi]
shr cl, 4
jmp 0x100352eb
cmp ecx, 2
jne 0x1003517b
mov ebp, dword [esp + 0x38]
cmp ebp, 4
jl 0x10035137
mov edi, ebp
shr edi, 2
mov eax, edi
neg eax
lea ebp, [ebp + eax*4]
movzx ecx, byte [esi]
shr cl, 6
movzx ecx, cl
movzx eax, bl
imul ecx, eax
movzx eax, bl
mov byte [edx], cl
movzx ecx, byte [esi]
shr cl, 4
and cl, 3
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 1], cl
movzx ecx, byte [esi]
shr cl, 2
and cl, 3
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 2], cl
movzx ecx, byte [esi]
inc esi
and cl, 3
movzx ecx, cl
imul ecx, eax
mov byte [edx + 3], cl
add edx, 4
sub edi, 1
jne 0x100350e1
test ebp, ebp
jle 0x1003514c
mov cl, byte [esi]
shr cl, 6
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp ebp, 1
jle 0x10035165
mov cl, byte [esi]
shr cl, 4
and cl, 3
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp ebp, 2
jle 0x100352f6
mov cl, byte [esi]
shr cl, 2
and cl, 3
jmp 0x100352eb
cmp ecx, 1
jne 0x100352f6
mov edi, dword [esp + 0x38]
cmp edi, 8
jl 0x1003524d
mov ebp, edi
shr ebp, 3
mov eax, ebp
neg eax
lea edi, [edi + eax*8]
nop dword [eax]
movzx ecx, byte [esi]
shr cl, 7
movzx ecx, cl
movzx eax, bl
imul ecx, eax
movzx eax, bl
mov byte [edx], cl
movzx ecx, byte [esi]
shr cl, 6
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 1], cl
movzx ecx, byte [esi]
shr cl, 5
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 2], cl
movzx ecx, byte [esi]
shr cl, 4
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 3], cl
movzx ecx, byte [esi]
shr cl, 3
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 4], cl
movzx ecx, byte [esi]
shr cl, 2
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 5], cl
movzx ecx, byte [esi]
shr cl, 1
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 6], cl
movzx ecx, byte [esi]
inc esi
and cl, 1
movzx ecx, cl
imul ecx, eax
mov byte [edx + 7], cl
add edx, 8
sub ebp, 1
jne 0x100351a0
test edi, edi
jle 0x10035262
mov cl, byte [esi]
shr cl, 7
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 1
jle 0x1003527b
mov cl, byte [esi]
shr cl, 6
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 2
jle 0x10035294
mov cl, byte [esi]
shr cl, 5
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 3
jle 0x100352ad
mov cl, byte [esi]
shr cl, 4
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 4
jle 0x100352c6
mov cl, byte [esi]
shr cl, 3
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 5
jle 0x100352df
mov cl, byte [esi]
shr cl, 2
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 6
jle 0x100352f6
mov cl, byte [esi]
shr cl, 1
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
cmp edx, dword [esp + 0x74]
je 0x10035363
mov ecx, dword [esp + 0x78]
dec ecx
cmp edx, 1
jne 0x10035324
test ecx, ecx
js 0x10035363
mov byte [edi + ecx*2 + 1], 0xff
mov al, byte [edi + ecx]
mov byte [edi + ecx*2], al
sub ecx, 1
jns 0x10035312
jmp 0x10035363
test ecx, ecx
js 0x10035363
lea esi, [edi + 1]
lea esi, [esi + ecx*2]
lea edx, [edi + 2]
add esi, ecx
lea edx, [edx + ecx*4]
nop word [eax + eax]
sub ecx, 1
mov byte [edx + 1], 0xff
movzx eax, byte [esi + 1]
lea esi, [esi - 3]
mov byte [edx], al
lea edx, [edx - 4]
movzx eax, byte [esi + 3]
mov byte [edx + 3], al
movzx eax, byte [esi + 2]
mov byte [edx + 2], al
jns 0x10035340
mov eax, dword [esp + 0x50]
add edi, dword [esp + 0x30]
add eax, dword [esp + 0x30]
sub dword [esp + 0x7c], 1
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x20], edi
mov dword [esp + 0x50], eax
jne 0x10035002
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x5c
ret
cmp ecx, 0x10
jne 0x100353cd
mov ebx, dword [esp + 0x74]
mov edx, edi
imul ebx, dword [esp + 0x78]
imul ebx, eax
test ebx, ebx
je 0x100353cd
nop dword [eax]
movzx ecx, byte [edi]
lea edx, [edx + 2]
movzx eax, byte [edx - 1]
lea edi, [edi + 2]
shl cx, 8
or cx, ax
mov word [edx - 2], cx
sub ebx, 1
jne 0x100353b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x5c
ret
mov ecx, dword [0x102c23c0]
mov eax, dword fs:[0x2c]
pop edi
pop esi
pop ebp
mov eax, dword [eax + ecx*4]
pop ebx
mov dword [eax + 0xc], str.too_large
xor eax, eax
add esp, 0x5c
ret