Function at 0x100439b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8c
mov eax, dword [0x101165b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 0x28]
mov dword [ebp - 0xc80], edx
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0xc84], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc54], ecx
mov ecx, dword [ebp + 0x18]
xor ebx, ebx
push 0x204
mov dword [ebp - 0xc40], edx
mov dword [ebp - 0xc4c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xc88], ecx
mov ecx, dword [ebp + 0x2c]
lea edx, [ebp - 0x618]
push ebx
push edx
mov dword [ebp - 0xc48], eax
mov dword [ebp - 0xc50], ecx
mov dword [ebp - 0x61c], ebx
call fcn.10086410
push 0x204
lea eax, [ebp - 0x820]
push ebx
push eax
mov dword [ebp - 0x824], ebx
call fcn.10086410
push 0x204
lea ecx, [ebp - 0xa28]
push ebx
push ecx
mov dword [ebp - 0xa2c], ebx
call fcn.10086410
push 0x204
lea edx, [ebp - 0x208]
push ebx
push edx
mov dword [ebp - 0x20c], ebx
call fcn.10086410
push 0x204
lea eax, [ebp - 0x410]
push ebx
push eax
mov dword [ebp - 0x414], ebx
call fcn.10086410
push 0x204
lea ecx, [ebp - 0xc30]
push ebx
push ecx
mov dword [ebp - 0xc34], ebx
call fcn.10086410
add esp, 0x48
cmp esi, ebx
je 0x10043ac3
mov edx, dword [ebp - 0xc48]
lea eax, [edx + esi*4 - 4]
cmp dword [eax], ebx
jne 0x10043ac3
dec esi
sub eax, 4
cmp esi, ebx
jne 0x10043ab7
cmp edi, ebx
je 0x10043add
mov eax, dword [ebp - 0xc50]
lea eax, [eax + edi*4 - 4]
cmp dword [eax], ebx
jne 0x10043add
dec edi
sub eax, 4
cmp edi, ebx
jne 0x10043ad1
cmp esi, ebx
jne 0x10043b67
mov ecx, dword [ebp - 0xc88]
cmp edi, ebx
jne 0x10043b14
mov edx, dword [ebp - 0xc80]
mov eax, dword [ebp - 0xc84]
mov dword [ecx], ebx
pop edi
mov dword [edx], ebx
mov dword [eax], ebx
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008600b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc50]
lea edx, [edi*4]
push edx
mov dword [ecx], edi
mov ecx, dword [ebp - 0xc40]
push eax
push ecx
call fcn.10086490
mov edx, dword [ebp - 0xc84]
mov eax, dword [ebp - 0xc80]
mov ecx, dword [ebp - 0xc4c]
add esp, 0xc
pop edi
mov dword [edx], ebx
mov dword [eax], 1
pop esi
mov dword [ecx], 1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008600b
mov esp, ebp
pop ebp
ret
cmp edi, ebx
jne 0x10043bc8
mov edx, dword [ebp - 0xc88]
mov ecx, dword [ebp - 0xc48]
lea eax, [esi*4]
push eax
mov dword [edx], esi
mov edx, dword [ebp - 0xc40]
push ecx
push edx
call fcn.10086490
mov eax, dword [ebp - 0xc84]
mov ecx, dword [ebp - 0xc54]
mov edx, dword [ebp - 0xc80]
add esp, 0xc
pop edi
mov dword [eax], 1
pop esi
mov dword [ecx], 1
mov dword [edx], 1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008600b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc48]
xor ecx, ecx
mov dword [ebp - 0xc78], ecx
cmp dword [eax], ebx
jne 0x10043c04
xor eax, eax
lea esp, [esp]
mov edx, dword [ebp - 0xc50]
cmp dword [edx + eax], ebx
jne 0x10043bfe
mov edx, dword [ebp - 0xc48]
inc ecx
cmp dword [edx + ecx*4], ebx
lea eax, [ecx*4]
je 0x10043be0
mov dword [ebp - 0xc78], ecx
mov eax, dword [ebp - 0xc48]
add ecx, ecx
add ecx, ecx
mov edx, dword [eax + ecx]
add eax, ecx
mov dword [ebp - 0xc8c], ecx
add ecx, dword [ebp - 0xc50]
mov dword [ebp - 0xc60], ebx
mov dword [ebp - 0xc7c], ecx
mov ecx, dword [ecx]
mov dword [ebp - 0xc44], ecx
mov ecx, 1
test cl, dl
jne 0x10043c54
lea esp, [esp]
test dword [ebp - 0xc44], ecx
jne 0x10043c54
inc dword [ebp - 0xc60]
add ecx, ecx
test edx, ecx
je 0x10043c40
mov ebx, dword [ebp - 0xc78]
sub esi, ebx
sub edi, ebx
cmp dword [ebp - 0xc60], 0
mov dword [ebp - 0xc6c], esi
mov dword [ebp - 0xc68], edi
jne 0x10043cab
lea edx, [esi*4]
push edx
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.10086490
mov edx, dword [ebp - 0xc7c]
lea ecx, [edi*4]
push ecx
push edx
lea eax, [ebp - 0xa2c]
push eax
call fcn.10086490
add esp, 0x18
jmp 0x10043de1
xor edx, edx
cmp esi, 1
jbe 0x10043d0d
mov ecx, 0x20
sub ecx, dword [ebp - 0xc60]
lea esi, [edx + 1]
mov dword [ebp - 0xc44], ecx
jmp 0x10043cd6
mov ecx, dword [ebp - 0xc44]
mov edi, dword [eax + 4]
mov ebx, dword [eax]
shl edi, cl
mov ecx, dword [ebp - 0xc60]
shr ebx, cl
inc esi
inc edx
add eax, 4
xor edi, ebx
mov dword [ebp + edx*4 - 0x828], edi
cmp esi, dword [ebp - 0xc6c]
jb 0x10043cd0
mov edi, dword [ebp - 0xc68]
mov esi, dword [ebp - 0xc6c]
mov ebx, dword [ebp - 0xc78]
mov eax, dword [ebp - 0xc48]
lea ecx, [edx + ebx]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0xc60]
shr eax, cl
mov dword [ebp + edx*4 - 0x824], eax
test esi, esi
je 0x10043d44
lea eax, [ebp + esi*4 - 0x828]
cmp dword [eax], 0
jne 0x10043d3e
sub eax, 4
dec esi
jne 0x10043d33
mov dword [ebp - 0xc6c], esi
xor edx, edx
cmp edi, 1
jbe 0x10043da7
mov eax, dword [ebp - 0xc7c]
mov ecx, 0x20
sub ecx, dword [ebp - 0xc60]
lea esi, [edx + 1]
mov dword [ebp - 0xc44], ecx
jmp 0x10043d76
mov ecx, dword [ebp - 0xc44]
mov edi, dword [eax + 4]
mov ebx, dword [eax]
shl edi, cl
mov ecx, dword [ebp - 0xc60]
shr ebx, cl
inc esi
inc edx
add eax, 4
xor edi, ebx
mov dword [ebp + edx*4 - 0xa30], edi
cmp esi, dword [ebp - 0xc68]
jb 0x10043d70
mov edi, dword [ebp - 0xc68]
mov ebx, dword [ebp - 0xc78]
mov eax, dword [ebp - 0xc50]
lea ecx, [edx + ebx]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0xc60]
shr eax, cl
mov dword [ebp + edx*4 - 0xa2c], eax
test edi, edi
je 0x10043de1
lea eax, [ebp + edi*4 - 0xa30]
lea ecx, [ecx]
cmp dword [eax], 0
jne 0x10043ddb
sub eax, 4
dec edi
jne 0x10043dd0
mov dword [ebp - 0xc68], edi
mov eax, dword [ebp - 0xc6c]
lea ecx, [eax*4]
push ecx
lea edx, [ebp - 0x824]
mov dword [ebp - 0xc48], eax
push edx
lea eax, [ebp - 0x61c]
push eax
call fcn.10086490
mov eax, dword [ebp - 0xc68]
lea ecx, [eax*4]
push ecx
lea edx, [ebp - 0xa2c]
mov dword [ebp - 0xc64], eax
mov eax, dword [ebp - 0xc40]
push edx
push eax
call fcn.10086490
mov ecx, dword [ebp - 0xc4c]
mov edi, 1
mov ebx, edi
mov eax, ebx
xor esi, esi
add esp, 0x18
mov dword [ecx], eax
mov dword [ebp - 0xc44], eax
mov dword [ebp - 0xc74], eax
xor eax, eax
mov dword [ebp - 0xc3c], ebx
mov dword [ebp - 0x20c], edi
mov dword [ebp - 0xc38], esi
mov dword [ebp - 0xc5c], esi
mov dword [ebp - 0xc58], edi
mov dword [ebp - 0xc70], eax
mov dword [ebp - 0xc50], eax
lea ecx, [ecx]
test byte [ebp - 0x61c], 1
jne 0x1004408e
lea ecx, [ecx]
xor eax, eax
cmp dword [ebp - 0xc48], 1
jbe 0x10043ecc
lea ecx, [eax + 1]
mov edi, edi
mov ebx, dword [ebp + eax*4 - 0x61c]
mov edx, dword [ebp + eax*4 - 0x618]
shl edx, 0x1f
shr ebx, 1
xor edx, ebx
mov dword [ebp + eax*4 - 0x61c], edx
inc ecx
inc eax
cmp ecx, dword [ebp - 0xc48]
jb 0x10043ea0
mov ebx, dword [ebp - 0xc3c]
mov ecx, dword [ebp - 0xc48]
shr dword [ebp + eax*4 - 0x61c], 1
lea eax, [ebp + eax*4 - 0x61c]
test ecx, ecx
je 0x10043f01
lea eax, [ebp + ecx*4 - 0x620]
jmp 0x10043ef0
cmp dword [eax], 0
jne 0x10043efb
sub eax, 4
dec ecx
jne 0x10043ef0
mov dword [ebp - 0xc48], ecx
test byte [ebp - 0x20c], 1
jne 0x10043f17
test byte [ebp - 0x414], 1
je 0x10043fb1
cmp dword [ebp - 0xc74], 0
mov ecx, dword [ebp - 0xc68]
lea eax, [ebp - 0xa2c]
lea edx, [ebp - 0x20c]
jle 0x10043f47
push eax
push ecx
push edx
push ebx
mov eax, edx
push eax
lea ecx, [ebp - 0xc3c]
push ecx
call fcn.10001550
jmp 0x10043f64
push edx
push ebx
push eax
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0xc3c]
push eax
call fcn.10001690
mov dword [ebp - 0xc74], eax
mov edx, dword [ebp - 0xc6c]
add esp, 0x18
cmp dword [ebp - 0xc50], 0
lea ecx, [ebp - 0x824]
push ecx
mov ecx, dword [ebp - 0xc38]
push edx
lea eax, [ebp - 0x414]
push eax
mov edx, eax
push ecx
lea eax, [ebp - 0xc38]
push edx
push eax
jge 0x10043f9d
call fcn.10001550
jmp 0x10043fa8
call fcn.10001690
mov dword [ebp - 0xc50], eax
mov ebx, dword [ebp - 0xc3c]
add esp, 0x18
xor eax, eax
cmp ebx, 1
jbe 0x10043fe8
lea ecx, [eax + 1]
jmp 0x10043fc0
mov ebx, dword [ebp + eax*4 - 0x20c]
mov edx, dword [ebp + eax*4 - 0x208]
shr ebx, 1
shl edx, 0x1f
xor edx, ebx
mov ebx, dword [ebp - 0xc3c]
mov dword [ebp + eax*4 - 0x20c], edx
inc ecx
inc eax
cmp ecx, ebx
jb 0x10043fc0
shr dword [ebp + eax*4 - 0x20c], 1
lea eax, [ebp + eax*4 - 0x20c]
test ebx, ebx
je 0x10044012
lea eax, [ebp + ebx*4 - 0x210]
cmp dword [eax], 0
jne 0x1004400c
sub eax, 4
dec ebx
jne 0x10044001
mov dword [ebp - 0xc3c], ebx
xor eax, eax
cmp dword [ebp - 0xc38], 1
jbe 0x1004404c
lea ecx, [eax + 1]
mov ebx, dword [ebp + eax*4 - 0x414]
mov edx, dword [ebp + eax*4 - 0x410]
shl edx, 0x1f
shr ebx, 1
xor edx, ebx
mov dword [ebp + eax*4 - 0x414], edx
inc ecx
inc eax
cmp ecx, dword [ebp - 0xc38]
jb 0x10044020
mov ebx, dword [ebp - 0xc3c]
mov ecx, dword [ebp - 0xc38]
shr dword [ebp + eax*4 - 0x414], 1
lea eax, [ebp + eax*4 - 0x414]
test ecx, ecx
je 0x10044081
lea eax, [ebp + ecx*4 - 0x418]
jmp 0x10044070
cmp dword [eax], 0
jne 0x1004407b
sub eax, 4
dec ecx
jne 0x10044070
mov dword [ebp - 0xc38], ecx
test byte [ebp - 0x61c], 1
je 0x10043e90
mov eax, dword [ebp - 0xc40]
test byte [eax], 1
jne 0x10044280
mov edx, dword [ebp - 0xc64]
xor eax, eax
cmp edx, 1
jbe 0x100440dc
mov ebx, dword [ebp - 0xc40]
lea ecx, [eax + 1]
mov edx, dword [ebx + eax*4 + 4]
mov ebx, dword [ebx + eax*4]
shl edx, 0x1f
shr ebx, 1
xor edx, ebx
mov ebx, dword [ebp - 0xc40]
mov dword [ebx + eax*4], edx
mov edx, dword [ebp - 0xc64]
inc ecx
inc eax
cmp ecx, edx
jb 0x100440b3
mov ebx, dword [ebp - 0xc3c]
mov ecx, dword [ebp - 0xc40]
shr dword [ecx + eax*4], 1
test edx, edx
je 0x10044101
lea eax, [ecx + edx*4 - 4]
lea ecx, [ecx]
cmp dword [eax], 0
jne 0x100440fb
sub eax, 4
dec edx
jne 0x100440f0
mov dword [ebp - 0xc64], edx
mov eax, dword [ebp - 0xc54]
test byte [eax], 1
jne 0x1004411b
mov ecx, dword [ebp - 0xc4c]
test byte [ecx], 1
je 0x100441b7
cmp dword [ebp - 0xc70], 0
lea edx, [ebp - 0xa2c]
jle 0x10044149
mov eax, dword [ebp - 0xc68]
push edx
push eax
mov eax, dword [ebp - 0xc54]
push eax
push esi
push eax
lea ecx, [ebp - 0xc5c]
push ecx
call fcn.10001550
jmp 0x10044166
mov ecx, dword [ebp - 0xc68]
push eax
push esi
push edx
push ecx
push eax
lea edx, [ebp - 0xc5c]
push edx
call fcn.10001690
mov dword [ebp - 0xc70], eax
mov ecx, dword [ebp - 0xc6c]
add esp, 0x18
cmp dword [ebp - 0xc44], 0
lea eax, [ebp - 0x824]
push eax
mov eax, dword [ebp - 0xc4c]
push ecx
push eax
push edi
lea edx, [ebp - 0xc58]
push eax
push edx
jge 0x10044197
call fcn.10001550
jmp 0x100441a2
call fcn.10001690
mov dword [ebp - 0xc44], eax
mov edx, dword [ebp - 0xc64]
mov edi, dword [ebp - 0xc58]
mov esi, dword [ebp - 0xc5c]
add esp, 0x18
xor eax, eax
cmp esi, 1
jbe 0x100441f0
mov edx, dword [ebp - 0xc54]
lea ecx, [eax + 1]
mov ebx, dword [edx + eax*4 + 4]
mov edx, dword [edx + eax*4]
shr edx, 1
shl ebx, 0x1f
xor ebx, edx
mov edx, dword [ebp - 0xc54]
mov dword [edx + eax*4], ebx
inc ecx
inc eax
cmp ecx, esi
jb 0x100441c7
mov ebx, dword [ebp - 0xc3c]
mov edx, dword [ebp - 0xc64]
mov ecx, dword [ebp - 0xc54]
shr dword [ecx + eax*4], 1
test esi, esi
je 0x10044212
lea eax, [ecx + esi*4 - 4]
cmp dword [eax], 0
jne 0x1004420c
sub eax, 4
dec esi
jne 0x10044201
mov dword [ebp - 0xc5c], esi
xor eax, eax
cmp edi, 1
jbe 0x1004424b
mov edx, dword [ebp - 0xc4c]
lea ecx, [eax + 1]
mov ebx, dword [edx + eax*4 + 4]
mov edx, dword [edx + eax*4]
shr edx, 1
shl ebx, 0x1f
xor ebx, edx
mov edx, dword [ebp - 0xc4c]
mov dword [edx + eax*4], ebx
inc ecx
inc eax
cmp ecx, edi
jb 0x10044222
mov ebx, dword [ebp - 0xc3c]
mov edx, dword [ebp - 0xc64]
mov ecx, dword [ebp - 0xc4c]
shr dword [ecx + eax*4], 1
test edi, edi
je 0x10044271
lea eax, [ecx + edi*4 - 4]
lea esp, [esp]
cmp dword [eax], 0
jne 0x1004426b
sub eax, 4
dec edi
jne 0x10044260
mov dword [ebp - 0xc58], edi
mov eax, dword [ebp - 0xc40]
test byte [eax], 1
je 0x100440a3
mov ecx, dword [ebp - 0xc40]
mov edx, dword [ebp - 0xc64]
push ecx
mov ecx, dword [ebp - 0xc48]
push edx
lea eax, [ebp - 0x61c]
push eax
push ecx
lea edx, [ebp - 0xc34]
push edx
lea eax, [ebp - 0xc7c]
push eax
call fcn.10001690
mov ecx, dword [ebp - 0xc7c]
add esp, 0x18
test ecx, ecx
je 0x100442d4
lea edx, [ebp + ecx*4 - 0xc38]
cmp dword [edx], 0
jne 0x100442ce
sub edx, 4
dec ecx
jne 0x100442c3
mov dword [ebp - 0xc7c], ecx
test eax, eax
jns 0x100444d7
mov eax, dword [ebp - 0xc40]
mov dword [ebp - 0xc64], ecx
add ecx, ecx
add ecx, ecx
push ecx
lea edx, [ebp - 0xc34]
push edx
push eax
call fcn.10086490
add esp, 0xc
cmp dword [ebp - 0xc70], 0
jne 0x1004433c
mov eax, dword [ebp - 0xc74]
neg eax
lea ecx, [ebx*4]
push ecx
lea edx, [ebp - 0x20c]
mov dword [ebp - 0xc70], eax
mov eax, dword [ebp - 0xc54]
push edx
mov esi, ebx
push eax
mov dword [ebp - 0xc5c], esi
call fcn.10086490
add esp, 0xc
jmp 0x1004439c
mov ecx, dword [ebp - 0xc70]
imul ecx, dword [ebp - 0xc74]
mov eax, dword [ebp - 0xc54]
test ecx, ecx
jle 0x1004437c
lea edx, [ebp - 0x20c]
push edx
push ebx
push eax
push esi
push eax
lea eax, [ebp - 0xc5c]
push eax
call fcn.10001690
add esp, 0x18
imul eax, dword [ebp - 0xc70]
mov dword [ebp - 0xc70], eax
jmp 0x10044396
lea ecx, [ebp - 0x20c]
push ecx
push ebx
push eax
push esi
push eax
lea edx, [ebp - 0xc5c]
push edx
call fcn.10001550
add esp, 0x18
mov esi, dword [ebp - 0xc5c]
test esi, esi
je 0x100443c1
mov eax, dword [ebp - 0xc54]
lea eax, [eax + esi*4 - 4]
lea ebx, [ebx]
cmp dword [eax], 0
jne 0x100443bb
sub eax, 4
dec esi
jne 0x100443b0
mov dword [ebp - 0xc5c], esi
mov eax, dword [ebp - 0xc44]
lea edx, [ebp - 0x414]
test eax, eax
jne 0x10044405
mov edi, dword [ebp - 0xc38]
mov eax, dword [ebp - 0xc50]
neg eax
lea ecx, [edi*4]
push ecx
mov dword [ebp - 0xc44], eax
mov eax, dword [ebp - 0xc4c]
push edx
push eax
mov dword [ebp - 0xc58], edi
call fcn.10086490
add esp, 0xc
jmp 0x1004444f
mov ecx, dword [ebp - 0xc50]
imul ecx, eax
mov eax, dword [ebp - 0xc38]
push edx
push eax
mov eax, dword [ebp - 0xc4c]
push eax
push edi
test ecx, ecx
push eax
lea ecx, [ebp - 0xc58]
push ecx
jle 0x10044441
call fcn.10001690
add esp, 0x18
imul eax, dword [ebp - 0xc44]
mov dword [ebp - 0xc44], eax
jmp 0x10044449
call fcn.10001550
add esp, 0x18
mov edi, dword [ebp - 0xc58]
test edi, edi
je 0x10044471
mov edx, dword [ebp - 0xc4c]
lea eax, [edx + edi*4 - 4]
lea ecx, [ecx]
cmp dword [eax], 0
jne 0x1004446b
sub eax, 4
dec edi
jne 0x10044460
mov dword [ebp - 0xc58], edi
cmp dword [ebp - 0xc48], 0
jne 0x10043e80
cmp dword [ebp - 0xc60], 0
mov ecx, dword [ebp - 0xc84]
mov edx, dword [ebp - 0xc80]
mov eax, dword [ebp - 0xc64]
mov dword [ecx], esi
mov dword [edx], edi
mov edx, dword [ebp - 0xc78]
lea ecx, [eax + edx]
mov edi, ecx
jne 0x10044691
mov esi, dword [ebp - 0xc40]
test edx, edx
je 0x100446e4
mov ecx, dword [ebp - 0xc8c]
add eax, eax
add eax, eax
push eax
lea edx, [esi + ecx]
push esi
push edx
call fcn.10086800
add esp, 0xc
jmp 0x100446e4
lea eax, [ecx*4]
mov dword [ebp - 0xc48], ecx
push eax
lea ecx, [ebp - 0xc34]
push ecx
lea edx, [ebp - 0x61c]
push edx
call fcn.10086490
mov eax, dword [ebp - 0xc70]
add esp, 0xc
cmp dword [ebp - 0xc74], 0
jne 0x1004453a
mov ecx, dword [ebp - 0xc54]
neg eax
mov dword [ebp - 0xc74], eax
lea eax, [esi*4]
push eax
push ecx
lea edx, [ebp - 0x20c]
mov ebx, esi
push edx
mov dword [ebp - 0xc3c], ebx
call fcn.10086490
add esp, 0xc
jmp 0x1004459c
imul eax, dword [ebp - 0xc74]
test eax, eax
lea eax, [ebp - 0x20c]
jle 0x10044576
mov ecx, dword [ebp - 0xc54]
push ecx
push esi
mov edx, eax
push edx
push ebx
push eax
lea ecx, [ebp - 0xc3c]
push ecx
call fcn.10001690
add esp, 0x18
imul eax, dword [ebp - 0xc74]
mov dword [ebp - 0xc74], eax
jmp 0x10044596
mov edx, dword [ebp - 0xc54]
push edx
push esi
push eax
push ebx
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0xc3c]
push edx
call fcn.10001550
add esp, 0x18
mov ebx, dword [ebp - 0xc3c]
test ebx, ebx
je 0x100445b8
lea eax, [ebp + ebx*4 - 0x210]
cmp dword [eax], 0
jne 0x100445b2
sub eax, 4
dec ebx
jne 0x100445a7
mov dword [ebp - 0xc3c], ebx
mov eax, dword [ebp - 0xc50]
test eax, eax
jne 0x100445f6
mov eax, dword [ebp - 0xc44]
mov ecx, dword [ebp - 0xc4c]
neg eax
mov dword [ebp - 0xc50], eax
lea eax, [edi*4]
push eax
push ecx
lea edx, [ebp - 0x414]
push edx
mov dword [ebp - 0xc38], edi
call fcn.10086490
add esp, 0xc
jmp 0x10044660
imul eax, dword [ebp - 0xc44]
test eax, eax
jle 0x10044638
mov eax, dword [ebp - 0xc4c]
mov edx, dword [ebp - 0xc38]
push eax
push edi
lea ecx, [ebp - 0x414]
push ecx
push edx
mov eax, ecx
push eax
lea ecx, [ebp - 0xc38]
push ecx
call fcn.10001690
add esp, 0x18
imul eax, dword [ebp - 0xc50]
mov dword [ebp - 0xc50], eax
jmp 0x10044660
mov edx, dword [ebp - 0xc4c]
mov ecx, dword [ebp - 0xc38]
push edx
push edi
lea eax, [ebp - 0x414]
push eax
push ecx
mov edx, eax
push edx
lea eax, [ebp - 0xc38]
push eax
call fcn.10001550
add esp, 0x18
mov ecx, dword [ebp - 0xc38]
test ecx, ecx
je 0x10044471
lea eax, [ebp + ecx*4 - 0x418]
cmp dword [eax], 0
jne 0x10044471
dec ecx
sub eax, 4
mov dword [ebp - 0xc38], ecx
test ecx, ecx
jne 0x10044675
jmp 0x10044471
mov edx, dword [ebp - 0xc40]
mov dword [edx + ecx*4], 0
test eax, eax
je 0x100446dd
mov esi, 0x20
sub esi, dword [ebp - 0xc60]
lea edx, [edx + ecx*4 + 4]
mov ecx, dword [ebp - 0xc40]
mov ebx, dword [ecx + eax*4 - 4]
dec eax
mov ecx, esi
shr ebx, cl
mov ecx, dword [ebp - 0xc40]
sub edx, 4
xor dword [edx], ebx
mov ebx, dword [ecx + eax*4]
mov ecx, dword [ebp - 0xc60]
shl ebx, cl
mov dword [edx - 4], ebx
test eax, eax
jne 0x100446b1
mov esi, dword [ebp - 0xc40]
inc edi
mov edx, dword [ebp - 0xc8c]
push edx
push 0
push esi
call fcn.10086410
add esp, 0xc
test edi, edi
je 0x1004470b
lea eax, [esi + edi*4 - 4]
mov edi, edi
cmp dword [eax], 0
jne 0x1004470b
sub eax, 4
dec edi
jne 0x10044700
mov eax, dword [ebp - 0xc88]
mov ecx, dword [ebp - 4]
mov dword [eax], edi
mov eax, dword [ebp - 0xc44]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008600b
mov esp, ebp
pop ebp
ret