Function at 0x55d340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x8d600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
xor edx, edx
push ebx
push esi
push edi
mov eax, dword [ecx + 0x358]
mov edi, dword [ecx + 0x368]
mov ebx, dword [ecx + 0x364]
mov esi, dword [ecx + 0x36c]
mov dword [ebp - 0x154], ecx
mov ecx, 0x14
mov dword [ebp - 0x150], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x140], esi
cmp edx, ecx
jbe 0x55d3e0
inc ecx
movzx eax, cx
cmp eax, edx
jb 0x55d3c1
lea eax, [edx - 0x14]
movzx ecx, ax
lea edi, [esi + 0x28]
shr ecx, 1
mov eax, 0x140014
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
lea eax, [edx - 0x14]
mov byte [ebp - 0x101], 0
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x118], 0
nop word [eax + eax]
xor esi, esi
mov dword [ebp - 0x10c], 0x14
mov dword [ebp - 0x134], esi
cmp eax, 0x14
jbe 0x55d4bb
mov eax, dword [ebp + 0xc]
mov edx, 0x14
add eax, 0xffffffec
mov dword [ebp - 0x12c], eax
nop dword [eax]
mov eax, dword [ebp - 0x140]
movzx ecx, word [eax + edx*2]
lea eax, [eax + edx*2]
mov dword [ebp - 0x13c], eax
mov eax, ecx
cmp eax, dword [ebp - 0x12c]
jae 0x55d499
nop dword [eax]
imul eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov bl, byte [ebp - 0x101]
add eax, edx
cmp byte [eax + edi], bl
mov ebx, dword [ebp - 0x130]
mov edi, dword [ebp - 0x128]
ja 0x55d47e
inc ecx
movzx eax, cx
cmp eax, dword [ebp - 0x12c]
jb 0x55d450
jmp 0x55d499
mov edx, dword [ebp - 0x10c]
movzx eax, si
inc esi
mov word [edi + eax*2], cx
mov word [ebx + eax*2], dx
mov eax, dword [ebp - 0x13c]
mov word [eax], cx
mov eax, dword [ebp - 0x10c]
inc eax
movzx edx, ax
mov dword [ebp - 0x10c], eax
cmp edx, dword [ebp - 0x108]
jb 0x55d430
mov dword [ebp - 0x134], esi
xor edi, edi
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x12c], edi
xor eax, eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x114], edx
cmp ax, si
jae 0x55d610
movzx eax, si
mov dword [ebp - 0x13c], eax
lea eax, [edx + 1]
or ecx, 0xffffffff
movzx esi, ax
mov dword [ebp - 0x120], ecx
cmp si, word [ebp - 0x134]
jae 0x55d563
mov edi, dword [ebp - 0x134]
nop word [eax + eax]
movzx edx, si
movzx eax, word [ebx + edx*2 - 2]
movzx ecx, word [ebx + edx*2]
sub ecx, eax
cmp ecx, 1
jg 0x55d551
mov ecx, dword [ebp - 0x128]
movzx eax, word [ecx + edx*2 - 2]
movzx ecx, word [ecx + edx*2]
sub ecx, eax
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
jg 0x55d551
movzx ecx, si
inc esi
mov dword [ebp - 0x120], ecx
cmp si, di
jb 0x55d510
jmp 0x55d557
mov ecx, dword [ebp - 0x120]
mov edi, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x114]
movsx eax, cx
mov dword [ebp - 0x114], eax
cmp eax, dword [ebp - 0x13c]
jge 0x55d5e0
cmp cx, 0xffff
je 0x55d5e0
lea esi, [eax - 5]
movzx eax, dx
cmp esi, eax
jle 0x55d5e0
cmp eax, esi
jge 0x55d5dd
mov ebx, dword [ebp - 0x128]
movzx esi, dx
movzx ecx, word [ebx + eax*2 + 0xa]
inc esi
movzx eax, word [ebx + eax*2]
sub eax, ecx
cdq
mov ecx, eax
movzx eax, di
xor ecx, edx
inc edi
sub ecx, edx
mov edx, dword [ebp - 0x144]
mov word [edx + eax*2], cx
movzx eax, cx
add dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x114]
movzx eax, si
add ecx, 0xfffffffb
cmp eax, ecx
jl 0x55d591
mov ebx, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x12c], edi
movzx edx, cx
inc edx
mov dword [ebp - 0x114], edx
cmp dx, word [ebp - 0x134]
jb 0x55d4e7
test di, di
je 0x55d60a
mov eax, dword [ebp - 0x11c]
xor edx, edx
movzx ecx, di
div ecx
mov ecx, eax
jmp 0x55d610
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x118]
xor eax, eax
mov dword [ebp + edx - 0x100], 0
cmp ax, di
jae 0x55d680
mov edx, dword [ebp - 0x144]
xor esi, esi
movzx eax, di
mov dword [ebp - 0x13c], eax
mov ebx, eax
nop dword [eax + eax]
movzx eax, word [edx]
lea edx, [edx + 2]
sub eax, ecx
imul eax, eax
add esi, eax
sub ebx, 1
jne 0x55d640
mov edx, dword [ebp - 0x118]
mov ebx, dword [ebp - 0x130]
mov dword [ebp + edx - 0x100], esi
test di, di
je 0x55d680
mov eax, esi
cdq
idiv dword [ebp - 0x13c]
mov edx, dword [ebp - 0x118]
mov dword [ebp + edx - 0x100], eax
mov ecx, dword [ebp + edx - 0x100]
mov eax, ecx
mov esi, dword [ebp - 0x110]
neg eax
mov dword [ebp + edx - 0x54], eax
cmp ecx, 0x4e20
jle 0x55d6bd
test esi, esi
jne 0x55d6bd
mov al, byte [ebp - 0x101]
mov esi, 1
movzx ecx, al
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x138], ecx
jmp 0x55d6c3
mov ecx, dword [ebp - 0x138]
mov al, byte [ebp - 0x101]
add edx, 4
inc al
mov dword [ebp - 0x118], edx
mov byte [ebp - 0x101], al
cmp al, 0x14
mov eax, dword [ebp - 0x108]
jb 0x55d400
test esi, esi
je 0x55d712
movzx edx, cx
movzx eax, cx
cmp edx, 0x14
jge 0x55d712
inc eax
cmp ax, 0x14
jb 0x55d6f7
mov eax, 0x14
lea edi, [ebp - 0x58]
sub eax, ecx
lea edi, [edi + edx*4]
movzx ecx, ax
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0055d1f0
add esp, 8
test al, al
jne 0x55d753
lea ecx, [ebp - 0x54]
mov edx, 0x14
mov eax, dword [ecx]
lea ecx, [ecx + 4]
neg eax
mov dword [ecx - 4], eax
sub edx, 1
jne 0x55d731
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0055d1f0
add esp, 8
cmp al, 1
je 0x55d770
cmp esi, 1
je 0x55d770
mov ecx, dword [ebp - 0x94]
mov esi, dword [ebp - 0xa4]
mov dword [ebp - 0x13c], ecx
jmp 0x55d77c
mov esi, dword [ebp - 0xa8]
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x12c], esi
mov ecx, 1
cmp esi, 0x11
jle 0x55d860
cmp al, 2
jb 0x55d860
movzx eax, al
mov dword [ebp - 0x12c], 0x98967f
mov word [ebp - 0x102], ax
cmp cx, ax
ja 0x55d84d
mov ebx, ecx
nop word [eax + eax]
movzx eax, bx
mov eax, dword [ebp + eax*4 - 0xac]
mov dword [ebp - 0x114], eax
mov esi, dword [ebp + eax*4 - 0x58]
mov edi, dword [ebp + eax*4 - 0x54]
mov ecx, dword [ebp + eax*4 - 0x5c]
mov eax, esi
sub eax, edi
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x10c], eax
mov eax, ecx
sub eax, esi
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 0x10c]
add edx, eax
cmp ecx, esi
mov eax, esi
mov dword [ebp - 0x10c], edx
cmovl eax, ecx
cmp esi, edi
cmovl edi, esi
cmp eax, edi
cmovl edi, eax
imul eax, edx, 0x64
cdq
idiv edi
cmp eax, dword [ebp - 0x12c]
jge 0x55d839
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x148], eax
inc ebx
cmp bx, word [ebp - 0x102]
jbe 0x55d7c0
mov ebx, dword [ebp - 0x130]
mov eax, dword [ebp - 0x148]
mov eax, dword [ebp + eax*4 - 0xac]
mov dword [ebp - 0x12c], eax
mov edx, dword [ebp + 0xc]
mov ecx, 3
cmp edx, ecx
jbe 0x55d895
nop dword [eax]
inc ecx
movzx eax, cx
cmp eax, edx
jb 0x55d870
mov edi, dword [ebp - 0x140]
lea eax, [edx - 3]
movzx ecx, ax
add edi, 6
shr ecx, 1
mov eax, 0x30003
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor ecx, ecx
lea eax, [edx - 3]
mov dword [ebp - 0x10c], ecx
mov byte [ebp - 0x101], cl
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x11c], ecx
xor edi, edi
mov dword [ebp - 0x110], 3
mov dword [ebp - 0x124], edi
cmp eax, 3
jb 0x55d964
mov eax, dword [ebp + 0x10]
mov edx, 3
add eax, 0xfffffffd
mov dword [ebp - 0x114], eax
nop
mov eax, dword [ebp - 0x140]
movzx ecx, word [eax + edx*2]
lea eax, [eax + edx*2]
mov dword [ebp - 0x108], eax
mov eax, ecx
cmp eax, dword [ebp - 0x114]
jae 0x55d946
imul edx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
add eax, edx
mov bl, byte [ebp - 0x101]
cmp byte [eax + esi], bl
mov ebx, dword [ebp - 0x130]
mov esi, dword [ebp - 0x128]
ja 0x55d92b
inc ecx
movzx eax, cx
cmp eax, dword [ebp - 0x114]
jb 0x55d901
jmp 0x55d946
mov edx, dword [ebp - 0x110]
movzx eax, di
inc edi
mov word [esi + eax*2], dx
mov word [ebx + eax*2], cx
mov eax, dword [ebp - 0x108]
mov word [eax], cx
mov eax, dword [ebp - 0x110]
inc eax
movzx edx, ax
mov dword [ebp - 0x110], eax
cmp edx, dword [ebp - 0x134]
jbe 0x55d8e0
mov dword [ebp - 0x124], edi
xor edi, edi
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x118], edi
xor eax, eax
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x108], ecx
cmp ax, word [ebp - 0x124]
jae 0x55da97
mov edx, dword [ebp - 0x124]
or eax, 0xffffffff
mov dword [ebp - 0x120], eax
lea eax, [ecx + 1]
movzx esi, ax
cmp si, dx
jae 0x55da6b
nop dword [eax]
movzx edi, si
movzx ecx, word [ebx + edi*2 - 2]
movzx eax, word [ebx + edi*2]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
jg 0x55d9f3
mov ecx, dword [ebp - 0x128]
movzx eax, word [ecx + edi*2 - 2]
movzx ecx, word [ecx + edi*2]
sub ecx, eax
cmp ecx, 1
jg 0x55d9f3
movzx eax, si
inc esi
mov dword [ebp - 0x120], eax
cmp si, word [ebp - 0x124]
jb 0x55d9b0
jmp 0x55d9f9
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x108]
mov edi, dword [ebp - 0x118]
cmp ax, 0xffff
je 0x55da65
cwde
lea edx, [eax - 5]
movzx eax, cx
mov dword [ebp - 0x114], edx
cmp edx, eax
jle 0x55da65
movzx esi, cx
cmp eax, edx
jge 0x55da5c
movzx ecx, word [ebx + eax*2 + 0xa]
inc esi
movzx eax, word [ebx + eax*2]
sub eax, ecx
movzx ecx, di
cdq
inc edi
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 0x144]
mov word [edx + ecx*2], ax
movzx eax, ax
add dword [ebp - 0x110], eax
movzx eax, si
cmp eax, dword [ebp - 0x114]
jl 0x55da23
mov dword [ebp - 0x118], edi
mov eax, dword [ebp - 0x120]
movzx ecx, ax
mov edx, dword [ebp - 0x124]
inc ecx
mov dword [ebp - 0x108], ecx
cmp cx, dx
jb 0x55d991
test di, di
je 0x55da91
mov eax, dword [ebp - 0x110]
xor edx, edx
movzx ecx, di
div ecx
mov edx, eax
jmp 0x55da97
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x11c]
mov dword [ebp + eax - 0x100], 0
xor eax, eax
cmp ax, di
jae 0x55db10
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x108], eax
movzx eax, di
mov dword [ebp - 0x114], eax
mov ebx, eax
movzx eax, word [ecx]
lea ecx, [ecx + 2]
sub eax, edx
imul eax, eax
add dword [ebp - 0x108], eax
sub ebx, 1
jne 0x55dac6
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x108]
mov ebx, dword [ebp - 0x130]
mov dword [ebp + edx - 0x100], eax
test di, di
je 0x55db16
cdq
idiv dword [ebp - 0x114]
mov edx, dword [ebp - 0x11c]
mov dword [ebp + edx - 0x100], eax
jmp 0x55db16
mov edx, dword [ebp - 0x11c]
mov ecx, dword [ebp + edx - 0x100]
mov eax, ecx
neg eax
cmp ecx, 0x4e20
mov ecx, dword [ebp - 0x10c]
mov dword [ebp + edx - 0x54], eax
jle 0x55db53
test ecx, ecx
jne 0x55db53
mov al, byte [ebp - 0x101]
mov ecx, 1
movzx edi, al
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x138], edi
jmp 0x55db59
mov edi, dword [ebp - 0x138]
mov al, byte [ebp - 0x101]
add edx, 4
inc al
mov dword [ebp - 0x11c], edx
mov byte [ebp - 0x101], al
cmp al, 0x14
mov eax, dword [ebp - 0x134]
jb 0x55d8b2
test ecx, ecx
je 0x55dbab
movzx edx, di
movzx eax, di
cmp edx, 0x14
jge 0x55dbab
nop dword [eax]
inc eax
cmp ax, 0x14
jb 0x55db90
mov eax, 0x14
sub eax, edi
lea edi, [ebp - 0x58]
movzx ecx, ax
lea edi, [edi + edx*4]
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0055d1f0
add esp, 8
test al, al
jne 0x55dbf2
lea ecx, [ebp - 0x54]
mov edx, 0x14
nop word [eax + eax]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
neg eax
mov dword [ecx - 4], eax
sub edx, 1
jne 0x55dbd0
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0055d1f0
add esp, 8
cmp al, 1
je 0x55dc13
cmp dword [ebp - 0x10c], 1
je 0x55dc13
mov edx, dword [ebp - 0x94]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x150], edx
jmp 0x55dc19
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x114], ecx
cmp ecx, 0x11
jle 0x55dd00
cmp al, 2
jb 0x55dd00
movzx eax, al
mov ecx, 1
mov dword [ebp - 0x114], 0x98967f
mov word [ebp - 0x102], ax
cmp cx, ax
ja 0x55dced
mov ebx, ecx
nop dword [eax]
nop dword [eax + eax]
movzx eax, bx
mov eax, dword [ebp + eax*4 - 0xac]
mov dword [ebp - 0x10c], eax
mov esi, dword [ebp + eax*4 - 0x58]
mov edi, dword [ebp + eax*4 - 0x54]
mov ecx, dword [ebp + eax*4 - 0x5c]
mov eax, esi
sub eax, edi
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x108], eax
mov eax, ecx
sub eax, esi
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 0x108]
add edx, eax
cmp ecx, esi
mov eax, esi
mov dword [ebp - 0x108], edx
cmovl eax, ecx
cmp esi, edi
cmovl edi, esi
cmp eax, edi
cmovl edi, eax
imul eax, edx, 0x64
cdq
idiv edi
cmp eax, dword [ebp - 0x114]
jge 0x55dcd9
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x148], eax
inc ebx
cmp bx, word [ebp - 0x102]
jbe 0x55dc60
mov ebx, dword [ebp - 0x130]
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp + eax*4 - 0xac]
mov dword [ebp - 0x114], ecx
mov edi, dword [ebp + 0xc]
mov ecx, 3
mov esi, dword [ebp + 0x10]
cmp edi, ecx
jbe 0x55dd5f
mov eax, dword [ebp - 0x134]
cmp eax, 0x10
jb 0x55dd5f
mov ebx, dword [ebp - 0x140]
and eax, 0xf
mov edx, edi
sub edx, eax
movsx eax, si
movd xmm0, eax
mov eax, ecx
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
psubw xmm0, xmmword [0x657da0]
movups xmmword [ebx + eax*2], xmm0
lea eax, [ecx + 8]
add ecx, 0x10
movzx eax, ax
movups xmmword [ebx + eax*2], xmm0
movzx eax, cx
cmp eax, edx
jb 0x55dd41
mov ebx, dword [ebp - 0x130]
movzx eax, cx
cmp eax, edi
jae 0x55dd7c
lea edx, [esi - 3]
mov esi, dword [ebp - 0x140]
nop
inc ecx
mov word [esi + eax*2], dx
movzx eax, cx
cmp eax, edi
jb 0x55dd70
xor eax, eax
mov dword [ebp - 0x110], eax
mov byte [ebp - 0x101], al
mov dword [ebp - 0x120], eax
xor esi, esi
mov edi, 3
mov dword [ebp - 0x124], esi
cmp dword [ebp - 0x134], edi
jbe 0x55de2a
mov edx, edi
nop dword [eax + eax]
mov eax, dword [ebp - 0x140]
movzx ecx, word [eax + edx*2]
lea eax, [eax + edx*2]
mov dword [ebp - 0x108], eax
cmp ecx, 3
jbe 0x55de1e
imul edx, dword [ebp + 0x10]
nop dword [eax]
mov esi, dword [ebp + 8]
mov bl, byte [ebp - 0x101]
movzx eax, cx
add eax, edx
cmp byte [eax + esi], bl
mov ebx, dword [ebp - 0x130]
mov esi, dword [ebp - 0x124]
ja 0x55ddfd
add ecx, 0xffff
cmp cx, 3
ja 0x55ddd0
jmp 0x55de1e
mov edx, dword [ebp - 0x128]
movzx eax, si
inc esi
mov dword [ebp - 0x124], esi
mov word [edx + eax*2], di
mov word [ebx + eax*2], cx
mov eax, dword [ebp - 0x108]
mov word [eax], cx
inc edi
movzx edx, di
cmp edx, dword [ebp - 0x134]
jb 0x55ddb0
xor edi, edi
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x11c], edi
xor eax, eax
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x108], ecx
cmp ax, si
jae 0x55df77
nop dword [eax]
or eax, 0xffffffff
mov dword [ebp - 0x10c], eax
lea eax, [ecx + 1]
movzx esi, ax
cmp si, word [ebp - 0x124]
jae 0x55df53
nop dword [eax]
movzx edi, si
movzx ecx, word [ebx + edi*2 - 2]
movzx eax, word [ebx + edi*2]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
jg 0x55deb3
mov ecx, dword [ebp - 0x128]
movzx eax, word [ecx + edi*2 - 2]
movzx ecx, word [ecx + edi*2]
sub ecx, eax
cmp ecx, 1
jg 0x55deb3
movzx eax, si
inc esi
mov dword [ebp - 0x10c], eax
cmp si, word [ebp - 0x124]
jb 0x55de70
jmp 0x55deb9
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x108]
mov edi, dword [ebp - 0x11c]
cmp ax, 0xffff
je 0x55df4d
cwde
lea edx, [eax - 5]
movzx eax, cx
mov dword [ebp - 0x14c], edx
cmp edx, eax
jle 0x55df4d
movzx esi, cx
cmp eax, edx
jge 0x55df3c
nop word [eax + eax]
movzx ecx, word [ebx + eax*2 + 0xa]
inc esi
movzx eax, word [ebx + eax*2]
sub eax, ecx
movzx ecx, di
cdq
inc edi
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 0x144]
mov word [edx + ecx*2], ax
mov edx, dword [ebp - 0x118]
movzx eax, ax
add edx, eax
movzx eax, si
mov dword [ebp - 0x118], edx
cmp eax, dword [ebp - 0x14c]
jl 0x55def0
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x11c], edi
movzx ecx, ax
jmp 0x55df53
mov eax, dword [ebp - 0x10c]
mov edx, dword [ebp - 0x118]
movzx ecx, ax
jmp 0x55df53
mov edx, dword [ebp - 0x118]
inc ecx
mov dword [ebp - 0x108], ecx
cmp cx, word [ebp - 0x124]
jb 0x55de50
test di, di
je 0x55df77
mov eax, edx
movzx ecx, di
xor edx, edx
div ecx
mov edx, eax
mov eax, dword [ebp - 0x120]
mov dword [ebp + eax - 0x100], 0
xor eax, eax
cmp ax, di
jae 0x55dfe4
mov ecx, dword [ebp - 0x144]
xor esi, esi
movzx eax, di
mov dword [ebp - 0x14c], eax
mov ebx, eax
movzx eax, word [ecx]
lea ecx, [ecx + 2]
sub eax, edx
imul eax, eax
add esi, eax
sub ebx, 1
jne 0x55dfa2
mov edx, dword [ebp - 0x120]
mov ebx, dword [ebp - 0x130]
mov dword [ebp + edx - 0x100], esi
test di, di
je 0x55dfea
mov eax, esi
cdq
idiv dword [ebp - 0x14c]
mov edx, dword [ebp - 0x120]
mov dword [ebp + edx - 0x100], eax
jmp 0x55dfea
mov edx, dword [ebp - 0x120]
mov ecx, dword [ebp + edx - 0x100]
mov eax, ecx
neg eax
cmp ecx, 0x4e20
mov ecx, dword [ebp - 0x110]
mov dword [ebp + edx - 0x54], eax
jle 0x55e027
test ecx, ecx
jne 0x55e027
mov al, byte [ebp - 0x101]
mov ecx, 1
movzx esi, al
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x138], esi
jmp 0x55e02d
mov esi, dword [ebp - 0x138]
mov al, byte [ebp - 0x101]
add edx, 4
inc al
mov dword [ebp - 0x120], edx
mov byte [ebp - 0x101], al
cmp al, 0x14
jb 0x55dd90
test ecx, ecx
je 0x55e07b
movzx edx, si
movzx eax, si
cmp edx, 0x14
jge 0x55e07b
nop dword [eax + eax]
inc eax
cmp ax, 0x14
jb 0x55e060
mov eax, 0x14
lea edi, [ebp - 0x58]
sub eax, esi
lea edi, [edi + edx*4]
movzx ecx, ax
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0055d1f0
mov cl, al
add esp, 8
test cl, cl
jne 0x55e0ec
lea ecx, [ebp - 0x54]
mov edx, 0x14
nop dword [eax]
mov eax, dword [ecx]
neg eax
mov dword [ecx], eax
add ecx, 4
sub edx, 1
jne 0x55e0a0
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0055d1f0
mov cl, al
add esp, 8
mov byte [ebp - 0x101], cl
test cl, cl
jne 0x55e0ec
push 0x53f
push str.srcDeskewlib_deskew_preprocess.c
push str.u8_m
call fcn.005cf51d
mov cl, byte [ebp - 0x101]
add esp, 0xc
jmp 0x55e0f1
cmp cl, 1
je 0x55e10e
cmp dword [ebp - 0x110], 1
je 0x55e10e
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x110], edx
jmp 0x55e11a
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x110], eax
cmp eax, 0x11
jle 0x55e1e4
cmp cl, 2
jb 0x55e1e4
movzx eax, cl
mov ebx, 1
mov ecx, ebx
mov dword [ebp - 0x10c], 0x98967f
mov word [ebp - 0x102], ax
cmp cx, ax
ja 0x55e1d7
movzx eax, bx
mov eax, dword [ebp + eax*4 - 0xac]
mov dword [ebp - 0x14c], eax
mov esi, dword [ebp + eax*4 - 0x58]
mov edi, dword [ebp + eax*4 - 0x54]
mov ecx, dword [ebp + eax*4 - 0x5c]
mov eax, esi
sub eax, edi
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x108], eax
mov eax, ecx
sub eax, esi
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 0x108]
add edx, eax
cmp ecx, esi
mov eax, esi
mov dword [ebp - 0x108], edx
cmovl eax, ecx
cmp esi, edi
cmovl edi, esi
cmp eax, edi
cmovl edi, eax
imul eax, edx, 0x64
cdq
idiv edi
cmp eax, dword [ebp - 0x10c]
jge 0x55e1c9
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x148], eax
inc ebx
cmp bx, word [ebp - 0x102]
jbe 0x55e150
mov eax, dword [ebp - 0x148]
mov eax, dword [ebp + eax*4 - 0xac]
mov edx, dword [ebp - 0x114]
cmp dword [ebp - 0x12c], edx
mov ebx, dword [ebp - 0x150]
cmovg edx, dword [ebp - 0x12c]
cmp dword [ebp - 0x13c], ebx
mov ecx, dword [ebp - 0x110]
cmovg ebx, dword [ebp - 0x13c]
mov esi, dword [ebp - 0x154]
cmp ebx, ecx
pop edi
cmovg ecx, ebx
cmp edx, eax
mov dword [esi + 0x34c], ecx
cmovg eax, edx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00525a3e
mov esp, ebp
pop ebp
ret