Function at 0x10055fe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100654b3
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x10077604]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], 0
call fcn.10050520
xor ecx, ecx
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
mov dword [ebp - 0x40], ecx
movq qword [ebp - 0x1c], xmm0
xor esi, esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ecx
mov eax, dword [edi + 0xec]
sub eax, dword [edi + 0xe8]
sar eax, 6
mov byte [ebp - 4], 1
mov dword [ebp - 0x54], esi
test eax, eax
je 0x1005641e
xor edx, edx
mov dword [ebp - 0x3c], edx
mov al, byte [ebp + 0xc]
test al, al
je 0x10056091
cmp dword [ebp + 0x20], 0
ja 0x10056089
mov ecx, dword [edi + 0xe8]
movzx eax, al
cmp dword [ecx + edx + 0x30], eax
jne 0x100563f6
mov eax, ecx
add eax, edx
jmp 0x1005622c
test al, al
jne 0x10056243
cmp dword [ebp + 0x24], 0x10
lea ecx, [ebp - 0x4f]
push 0
lea eax, [ebp + 0x10]
mov word [ebp - 0x50], 0x36
cmovae eax, dword [ebp + 0x10]
push ecx
push eax
mov byte [ebp - 0x4f], 0
call fcn.1000bc30
add esp, 0xc
test eax, eax
jne 0x100560c2
cmp dword [ebp + 0x20], eax
jbe 0x1005636b
mov eax, dword [edi + 0xe8]
add eax, dword [ebp - 0x3c]
push dword [eax + 0x1c]
call fcn.10007f40
mov ecx, dword [edi + 0xe8]
mov edx, eax
mov eax, dword [ebp - 0x3c]
add esp, 4
mov dword [ebp - 0x44], edx
cmp dword [ecx + eax + 0x1c], 0
jbe 0x10056196
cmp dword [ecx + eax + 0x1c], 0x5f5e100
jae 0x10056196
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5c], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x1005612b
mov eax, dword [ecx]
jmp 0x1005612d
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp + 0x10]
push 0
push eax
call fcn.100026e0
mov byte [ebp - 4], 2
mov eax, dword [edi + 0xe8]
sub esp, 0x18
add eax, dword [ebp - 0x3c]
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x10056185
mov edx, dword [ecx]
push 0xffffffffffffffff
push 0
push eax
mov byte [edx], 0
call fcn.100026e0
jmp 0x1005620f
push 0xffffffffffffffff
mov edx, ecx
push 0
push eax
mov byte [edx], 0
call fcn.100026e0
jmp 0x1005620f
test edx, edx
je 0x100563f6
mov eax, dword [edi + 0xe8]
add eax, dword [ebp - 0x3c]
push dword [eax + 0x1c]
movzx eax, byte [edx + 4]
push eax
call fcn.10007f80
sub esp, 0x10
mov dword [ebp - 0x58], eax
mov ecx, esp
mov dword [ebp - 0x5c], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x100561e5
mov eax, dword [ecx]
jmp 0x100561e7
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp + 0x10]
push 0
push eax
call fcn.100026e0
mov byte [ebp - 4], 3
sub esp, 0x18
mov eax, esp
push dword [ebp - 0x58]
push dword [ebp - 0x44]
push eax
call fcn.10009920
add esp, 0xc
mov byte [ebp - 4], 1
call fcn.1000e080
add esp, 0x30
test al, al
je 0x100563f6
mov eax, dword [edi + 0xe8]
add eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100579c0
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x40], ecx
jmp 0x100563f9
cmp dword [ebp + 0x24], 0x10
lea ecx, [ebp - 0x47]
push 0
lea eax, [ebp + 0x10]
mov word [ebp - 0x48], 0x1f
cmovae eax, dword [ebp + 0x10]
push ecx
push eax
mov byte [ebp - 0x47], 0
call fcn.1000bc30
add esp, 0xc
test eax, eax
jne 0x10056274
cmp dword [ebp + 0x20], eax
jbe 0x1005636b
mov ecx, dword [edi + 0xe8]
mov edx, dword [ebp - 0x3c]
movzx eax, byte [ebp + 0xc]
cmp dword [ecx + edx + 0x30], eax
jne 0x100563f6
mov eax, ecx
push dword [eax + edx + 0x1c]
call fcn.10007f40
mov ecx, dword [edi + 0xe8]
mov edx, eax
mov eax, dword [ebp - 0x3c]
add esp, 4
mov dword [ebp - 0x44], edx
cmp dword [ecx + eax + 0x1c], 0
jbe 0x10056301
cmp dword [eax + ecx + 0x1c], 0x5f5e100
jae 0x10056301
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5c], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x100562e6
mov eax, dword [ecx]
jmp 0x100562e8
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp + 0x10]
push 0
push eax
call fcn.100026e0
mov byte [ebp - 4], 4
jmp 0x10056141
test edx, edx
je 0x100563f6
mov eax, dword [edi + 0xe8]
add eax, dword [ebp - 0x3c]
push dword [eax + 0x1c]
movzx eax, byte [edx + 4]
push eax
call fcn.10007f80
sub esp, 0x10
mov dword [ebp - 0x58], eax
mov ecx, esp
mov dword [ebp - 0x5c], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
cmp dword [ecx + 0x14], 0x10
mov dword [ecx + 0x10], 0
jb 0x10056350
mov eax, dword [ecx]
jmp 0x10056352
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp + 0x10]
push 0
push eax
call fcn.100026e0
mov byte [ebp - 4], 5
jmp 0x100561fb
mov eax, dword [edi + 0xe8]
add eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
cmp eax, esi
jae 0x100563cf
cmp ecx, eax
ja 0x100563cf
sub eax, ecx
sar eax, 6
mov dword [ebp - 0x44], eax
cmp esi, dword [ebp - 0x14]
jne 0x100563a5
push 1
lea ecx, [ebp - 0x1c]
call fcn.10057630
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], ecx
shl eax, 6
mov dword [ebp - 0x5c], esi
add eax, ecx
mov dword [ebp - 0x4c], esi
mov byte [ebp - 4], 6
test esi, esi
je 0x100563c3
push eax
mov ecx, esi
call fcn.1004f7a0
mov ecx, dword [ebp - 0x40]
add esi, 0x40
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], esi
jmp 0x100563f9
cmp esi, dword [ebp - 0x14]
jne 0x100563ea
push 1
lea ecx, [ebp - 0x1c]
call fcn.10057630
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x4c], esi
mov byte [ebp - 4], 7
jmp 0x100563b4
mov ecx, dword [ebp - 0x40]
mov eax, dword [edi + 0xec]
mov edx, dword [ebp - 0x54]
sub eax, dword [edi + 0xe8]
inc edx
add dword [ebp - 0x3c], 0x40
sar eax, 6
mov dword [ebp - 0x54], edx
cmp edx, eax
mov edx, dword [ebp - 0x3c]
jb 0x10056060
mov eax, esi
sub eax, ecx
cmp eax, 0x40
jae 0x100564ea
lea esi, [edi + 0xac]
mov edi, 0xc
push 0
push dword [esi]
call fcn.10012be0
add esp, 8
lea esi, [esi + 4]
sub edi, 1
jne 0x10056436
mov edi, dword [ebp - 0x38]
push dword [edi + 0x19c]
push dword [edi + 0x194]
call fcn.10013770
mov esi, dword [ebp - 0x18]
add esp, 8
mov dword [edi + 0x1a0], 1
mov edi, dword [ebp - 0x40]
test edi, edi
je 0x10056bfb
push dword [ebp - 0x5c]
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
call fcn.1004e2a0
mov eax, dword [ebp - 0x14]
add esp, 0x10
sub eax, edi
sar eax, 6
cmp eax, 0x3ffffff
jbe 0x1005649f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
shl eax, 6
cmp eax, 0x1000
jb 0x100564dc
test byte [ebp - 0x1c], 0x1f
je 0x100564b5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [edi - 4]
cmp eax, edi
jb 0x100564c2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
sub edi, eax
cmp edi, 4
jae 0x100564cf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp edi, 0x23
jbe 0x100564da
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edi, eax
push edi
call fcn.1005f686
add esp, 4
jmp 0x10056bfb
lea edx, [ebp - 0x38]
sar eax, 6
push edx
push eax
push esi
push ecx
mov dword [ebp - 0x38], 0x10057800
mov dword [ebp - 0x58], eax
call fcn.1004f370
mov eax, dword [ebp - 0x58]
add esp, 8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100669d0]
divsd xmm0, qword [0x1006cac0]
movsd qword [ebp - 0x60], xmm0
fld qword [ebp - 0x60]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x60]
movsd xmm0, qword [ebp - 0x60]
add esp, 8
andps xmm0, xmmword [0x10069f00]
call fcn.1005f8e1
mov dword [edi + 0x1a0], eax
mov eax, dword [ebp + 8]
lea eax, [eax + eax*2]
shl eax, 2
lea ecx, [eax - 0xc]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x54], ecx
cmp ecx, eax
jge 0x10056bbe
mov edx, dword [ebp - 0x40]
lea eax, [edi + 0xa8]
mov dword [ebp - 0x50], eax
mov esi, 0xffffffc8
mov eax, ecx
shl eax, 6
lea ecx, [edx + 0x1c]
add ecx, eax
mov eax, 0xffffffe4
sub eax, edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x50]
add esi, 0x38
add edx, 4
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x50], edx
cmp esi, 0x310
jg 0x10056bbb
mov eax, dword [ebp - 0x58]
dec eax
cmp dword [ebp - 0x54], eax
jle 0x100565c1
push 0
push dword [edx]
jmp 0x10056b95
push dword [ecx]
call fcn.10007f40
mov edx, dword [ebp - 0x3c]
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, dword [edx]
test ecx, ecx
je 0x100567bb
cmp ecx, 0x5f5e100
jae 0x100567bb
mov ecx, dword [edi + 0xdc]
mov eax, dword [edx - 4]
add edx, dword [ebp - 0x38]
mov dword [ecx + esi + 0x1c], eax
mov ecx, dword [edi + 0xdc]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + edx + 0x1c]
mov dword [esi + ecx + 0x20], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [edi + 0xdc]
add eax, 0x34
add eax, edx
add ecx, 0x24
push eax
add ecx, esi
call fcn.1004fe40
mov eax, dword [ebp - 0x3c]
add eax, 0xffffffe4
push eax
mov eax, dword [edi + 0xdc]
push dword [esi + eax]
call fcn.100136d0
mov eax, dword [edi + 0xdc]
mov ecx, dword [eax + esi + 0x28]
sub ecx, dword [eax + esi + 0x24]
mov esi, eax
add esi, dword [ebp - 0x48]
sar ecx, 2
push ecx
push 1
call fcn.1000dd10
mov ecx, dword [esi + 0x24]
add esp, 0x10
mov eax, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x1005692c
push eax
call fcn.10007f40
mov esi, eax
add esp, 4
mov dword [ebp - 0x7c], esi
test esi, esi
je 0x1005692c
mov dword [ebp - 0x20], 0xf
push dword [ebp - 0x44]
movzx eax, byte [esi + 4]
push eax
mov byte [ebp - 4], 8
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
call fcn.10007f80
add esp, 8
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x100566ba
cmp dword [eax + 0x48], 0
je 0x100566ba
push dword [ebp - 0x44]
push eax
push 0
jmp 0x100566c0
push dword [ebp - 0x44]
push 0
push esi
lea eax, [ebp - 0x78]
push eax
call fcn.100095f0
add esp, 0x10
lea ecx, [ebp - 0x34]
push eax
call fcn.10007e10
lea ecx, [ebp - 0x78]
call fcn.10001840
mov eax, dword [edi + 0xdc]
mov esi, dword [ebp - 0x48]
cmp dword [esi + eax + 0x18], 0
je 0x100567aa
lea eax, [ebp - 0x34]
push eax
mov eax, dword [edi + 0xdc]
mov eax, dword [eax + esi + 0x18]
add eax, 4
push eax
call fcn.1000d880
mov eax, dword [edi + 0xdc]
add esp, 8
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x4c]
mov eax, dword [esi + eax + 0x18]
mov dword [eax + 0x50], ecx
mov eax, dword [edi + 0xdc]
mov eax, dword [eax + esi + 0x18]
mov dword [eax + 0x54], edx
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
mov dword [eax + 0x58], 1
test edx, edx
je 0x1005674c
movsx edx, word [edx + 0x56]
movsx eax, word [ecx + 0x66]
add edx, eax
jmp 0x10056750
movsx edx, word [ecx + 0x66]
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
mov dword [eax + 0x5c], edx
mov eax, dword [edi + 0xdc]
mov ecx, dword [esi + eax + 0x18]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x4c], eax
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
cmp dword [eax], 0
je 0x100567aa
lea eax, [ebp - 0x34]
push eax
mov eax, dword [edi + 0xdc]
mov eax, dword [eax + esi + 0x18]
push dword [eax]
call fcn.10013250
mov eax, dword [edi + 0xdc]
push 1
mov eax, dword [esi + eax + 0x18]
push dword [eax]
call fcn.10012be0
add esp, 0x10
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.10001840
jmp 0x1005692f
test eax, eax
jne 0x100567c5
push eax
jmp 0x10056b90
mov dword [ebp - 0x20], 0xf
movzx eax, byte [eax + 4]
push ecx
push eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
call fcn.10007f80
mov ecx, eax
add esp, 8
mov dword [ebp - 0x48], ecx
test ecx, ecx
je 0x10056802
cmp dword [ecx + 0x48], 0
je 0x10056802
mov eax, dword [ebp - 0x3c]
push dword [eax]
push ecx
push 0
jmp 0x1005680c
mov eax, dword [ebp - 0x3c]
push dword [eax]
push 0
push dword [ebp - 0x44]
lea eax, [ebp - 0x78]
push eax
call fcn.100095f0
add esp, 0x10
lea ecx, [ebp - 0x34]
push eax
call fcn.10007e10
lea ecx, [ebp - 0x78]
call fcn.10001840
push dword [ebp - 0x48]
lea eax, [ebp - 0x78]
push dword [ebp - 0x44]
push eax
call fcn.10009920
push eax
mov eax, dword [edi + 0xdc]
mov byte [ebp - 4], 0xa
push dword [eax + esi]
call fcn.100136d0
add esp, 0x14
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x78]
call fcn.10001840
mov ecx, dword [edi + 0xdc]
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx - 4]
mov dword [esi + ecx + 0x1c], eax
mov ecx, dword [edi + 0xdc]
mov eax, dword [edx]
mov dword [esi + ecx + 0x20], eax
mov eax, dword [edi + 0xdc]
cmp dword [eax + esi + 0x18], 0
je 0x100567aa
lea eax, [ebp - 0x34]
push eax
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
add eax, 4
push eax
call fcn.1000d880
mov eax, dword [edi + 0xdc]
add esp, 8
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
mov eax, dword [esi + eax + 0x18]
mov dword [eax + 0x50], ecx
mov eax, dword [edi + 0xdc]
mov eax, dword [eax + esi + 0x18]
mov dword [eax + 0x54], edx
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
mov dword [eax + 0x58], 1
test edx, edx
je 0x100568e2
movsx edx, word [edx + 0x56]
movsx eax, word [ecx + 0x66]
add edx, eax
jmp 0x100568e6
movsx edx, word [ecx + 0x66]
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
mov dword [eax + 0x5c], edx
mov eax, dword [edi + 0xdc]
mov ecx, dword [esi + eax + 0x18]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x4c], eax
mov eax, dword [edi + 0xdc]
mov eax, dword [eax + esi + 0x18]
cmp dword [eax], 0
je 0x100567aa
lea eax, [ebp - 0x34]
push eax
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
jmp 0x1005678d
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 8]
cmp ecx, 1
jne 0x1005699e
push 0x2e
push dword [eax + 4]
lea eax, [ebp - 0x94]
push eax
call fcn.1000e1e0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xb
jb 0x1005695a
mov eax, dword [eax]
movaps xmm0, xmmword [0x1006cd80]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x30], xmm0
mov byte [ebp - 0x20], 0
nop dword [eax]
mov al, byte [ebp - 0x30]
xor byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0xf
jb 0x10056970
sub esp, 0x18
mov byte [ebp - 0x20], 0
lea eax, [ebp - 0x2f]
mov ecx, esp
push eax
call fcn.100017e0
lea eax, [ebp - 0x78]
push eax
call fcn.100322e0
mov byte [ebp - 4], 0xc
jmp 0x10056a0c
cmp ecx, 2
jne 0x10056a39
push 0x2e
push dword [eax + 4]
lea eax, [ebp - 0x94]
push eax
call fcn.1000e1e0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xd
jb 0x100569c7
mov eax, dword [eax]
movaps xmm0, xmmword [str.vV_V_:V]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x30], xmm0
mov byte [ebp - 0x20], 0
nop dword [eax]
mov al, byte [ebp - 0x30]
xor byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0xf
jb 0x100569e0
sub esp, 0x18
mov byte [ebp - 0x20], 0
lea eax, [ebp - 0x2f]
mov ecx, esp
push eax
call fcn.100017e0
lea eax, [ebp - 0x78]
push eax
call fcn.100322e0
mov byte [ebp - 4], 0xe
push eax
mov eax, dword [edi + 0xdc]
push dword [esi + eax + 4]
call fcn.100136d0
add esp, 0x28
lea ecx, [ebp - 0x78]
call fcn.10001840
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.10001840
mov eax, dword [ebp - 0x3c]
push 0x2e
push dword [eax + 0xc]
lea eax, [ebp - 0x78]
push eax
call fcn.1000e1e0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xf
jb 0x10056a56
mov eax, dword [eax]
movaps xmm0, xmmword [0x1006cd40]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x30], xmm0
mov word [ebp - 0x20], 0x35
nop word [eax + eax]
mov al, byte [ebp - 0x30]
xor byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0x10
jb 0x10056a70
sub esp, 0x18
mov byte [ebp - 0x1f], 0
lea eax, [ebp - 0x2f]
mov ecx, esp
push eax
call fcn.100017e0
lea eax, [ebp - 0x94]
push eax
call fcn.100322e0
push eax
mov eax, dword [edi + 0xdc]
mov byte [ebp - 4], 0x10
push dword [esi + eax + 8]
call fcn.100136d0
mov eax, dword [ebp - 0x80]
add esp, 0x28
cmp eax, 0x10
jb 0x10056acc
inc eax
push 1
push eax
push dword [ebp - 0x94]
call fcn.10002610
add esp, 0xc
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x80], 0xf
mov dword [ebp - 0x84], 0
mov byte [ebp - 0x94], 0
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x10056aff
push 1
inc eax
push eax
push dword [ebp - 0x78]
call fcn.10002610
add esp, 0xc
mov edx, dword [0x10077f2c]
test edx, edx
je 0x10056b55
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx + 8]
cmp eax, 1
jne 0x10056b1f
mov eax, dword [edx + 0x44]
cmp eax, dword [ecx + 4]
jb 0x10056b2c
mov eax, dword [ecx + 8]
cmp eax, 2
jne 0x10056b55
mov eax, dword [edx + 0x48]
cmp eax, dword [ecx + 4]
jae 0x10056b55
mov eax, dword [edi + 0xdc]
push 0xffff0000
push dword [esi + eax + 4]
call fcn.100136a0
mov eax, dword [edi + 0xdc]
push 7
push dword [esi + eax + 0xc]
call fcn.10012b40
push 7
jmp 0x10056b7c
mov eax, dword [edi + 0xdc]
push 0xfffff3ae
push dword [esi + eax + 4]
call fcn.100136a0
mov eax, dword [edi + 0xdc]
push 2
push dword [esi + eax + 0xc]
call fcn.10012b40
push 2
mov eax, dword [edi + 0xdc]
push dword [esi + eax + 0x10]
call fcn.10012b40
add esp, 0x18
push 1
mov eax, dword [ebp - 0x50]
push dword [eax]
call fcn.10012be0
mov edx, dword [ebp - 0x54]
add esp, 8
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, dword [ebp - 0x5c]
add ecx, 0x40
add eax, 0xc
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x3c], ecx
cmp edx, eax
jl 0x10056594
mov esi, dword [ebp - 0x18]
push dword [edi + 0x19c]
push dword [edi + 0x194]
call fcn.10013770
mov edi, dword [ebp - 0x40]
add esp, 8
test edi, edi
je 0x10056bfb
push dword [ebp - 0x5c]
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
call fcn.1004e2a0
mov eax, dword [ebp - 0x14]
sub eax, edi
push 0x40
sar eax, 6
push eax
push edi
call fcn.10002610
add esp, 0x1c
mov eax, dword [ebp + 0x24]
cmp eax, 0x10
jb 0x10056c12
push 1
inc eax
push eax
push dword [ebp + 0x10]
call fcn.10002610
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005f6be
mov esp, ebp
pop ebp
ret 0x20