Function at 0x100550c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064473
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x10075604]
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.1004f600
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 0x100554fe
xor edx, edx
mov dword [ebp - 0x3c], edx
mov al, byte [ebp + 0xc]
test al, al
je 0x10055171
cmp dword [ebp + 0x20], 0
ja 0x10055169
mov ecx, dword [edi + 0xe8]
movzx eax, al
cmp dword [ecx + edx + 0x30], eax
jne 0x100554d6
mov eax, ecx
add eax, edx
jmp 0x1005530c
test al, al
jne 0x10055323
cmp dword [ebp + 0x24], 0x10
lea ecx, [ebp - 0x4f]
push 0
lea eax, [ebp + 0x10]
mov word [ebp - 0x50], 0x25
cmovae eax, dword [ebp + 0x10]
push ecx
push eax
mov byte [ebp - 0x4f], 0
call fcn.1000bba0
add esp, 0xc
test eax, eax
jne 0x100551a2
cmp dword [ebp + 0x20], eax
jbe 0x1005544b
mov eax, dword [edi + 0xe8]
add eax, dword [ebp - 0x3c]
push dword [eax + 0x1c]
call fcn.10007eb0
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 0x10055276
cmp dword [ecx + eax + 0x1c], 0x5f5e100
jae 0x10055276
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 0x1005520b
mov eax, dword [ecx]
jmp 0x1005520d
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 0x10055265
mov edx, dword [ecx]
push 0xffffffffffffffff
push 0
push eax
mov byte [edx], 0
call fcn.100026e0
jmp 0x100552ef
push 0xffffffffffffffff
mov edx, ecx
push 0
push eax
mov byte [edx], 0
call fcn.100026e0
jmp 0x100552ef
test edx, edx
je 0x100554d6
mov eax, dword [edi + 0xe8]
add eax, dword [ebp - 0x3c]
push dword [eax + 0x1c]
movzx eax, byte [edx + 4]
push eax
call fcn.10007ef0
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 0x100552c5
mov eax, dword [ecx]
jmp 0x100552c7
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.10009890
add esp, 0xc
mov byte [ebp - 4], 1
call fcn.1000dff0
add esp, 0x30
test al, al
je 0x100554d6
mov eax, dword [edi + 0xe8]
add eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10056aa0
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x40], ecx
jmp 0x100554d9
cmp dword [ebp + 0x24], 0x10
lea ecx, [ebp - 0x47]
push 0
lea eax, [ebp + 0x10]
mov word [ebp - 0x48], 0x2c
cmovae eax, dword [ebp + 0x10]
push ecx
push eax
mov byte [ebp - 0x47], 0
call fcn.1000bba0
add esp, 0xc
test eax, eax
jne 0x10055354
cmp dword [ebp + 0x20], eax
jbe 0x1005544b
mov ecx, dword [edi + 0xe8]
mov edx, dword [ebp - 0x3c]
movzx eax, byte [ebp + 0xc]
cmp dword [ecx + edx + 0x30], eax
jne 0x100554d6
mov eax, ecx
push dword [eax + edx + 0x1c]
call fcn.10007eb0
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 0x100553e1
cmp dword [eax + ecx + 0x1c], 0x5f5e100
jae 0x100553e1
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 0x100553c6
mov eax, dword [ecx]
jmp 0x100553c8
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 0x10055221
test edx, edx
je 0x100554d6
mov eax, dword [edi + 0xe8]
add eax, dword [ebp - 0x3c]
push dword [eax + 0x1c]
movzx eax, byte [edx + 4]
push eax
call fcn.10007ef0
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 0x10055430
mov eax, dword [ecx]
jmp 0x10055432
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 0x100552db
mov eax, dword [edi + 0xe8]
add eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
cmp eax, esi
jae 0x100554af
cmp ecx, eax
ja 0x100554af
sub eax, ecx
sar eax, 6
mov dword [ebp - 0x44], eax
cmp esi, dword [ebp - 0x14]
jne 0x10055485
push 1
lea ecx, [ebp - 0x1c]
call fcn.10056710
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 0x100554a3
push eax
mov ecx, esi
call fcn.1004e880
mov ecx, dword [ebp - 0x40]
add esi, 0x40
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], esi
jmp 0x100554d9
cmp esi, dword [ebp - 0x14]
jne 0x100554ca
push 1
lea ecx, [ebp - 0x1c]
call fcn.10056710
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 0x10055494
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 0x10055140
mov eax, esi
sub eax, ecx
cmp eax, 0x40
jae 0x100555ca
lea esi, [edi + 0xac]
mov edi, 0xc
push 0
push dword [esi]
call fcn.10012b10
add esp, 8
lea esi, [esi + 4]
sub edi, 1
jne 0x10055516
mov edi, dword [ebp - 0x38]
push dword [edi + 0x19c]
push dword [edi + 0x194]
call fcn.100136d0
mov esi, dword [ebp - 0x18]
add esp, 8
mov dword [edi + 0x1a0], 1
mov edi, dword [ebp - 0x40]
test edi, edi
je 0x10055cdb
push dword [ebp - 0x5c]
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
call fcn.1004d380
mov eax, dword [ebp - 0x14]
add esp, 0x10
sub eax, edi
sar eax, 6
cmp eax, 0x3ffffff
jbe 0x1005557f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
shl eax, 6
cmp eax, 0x1000
jb 0x100555bc
test byte [ebp - 0x1c], 0x1f
je 0x10055595
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 0x100555a2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
sub edi, eax
cmp edi, 4
jae 0x100555af
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp edi, 0x23
jbe 0x100555ba
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edi, eax
push edi
call fcn.1005e746
add esp, 4
jmp 0x10055cdb
lea edx, [ebp - 0x38]
sar eax, 6
push edx
push eax
push esi
push ecx
mov dword [ebp - 0x38], 0x100568e0
mov dword [ebp - 0x58], eax
call fcn.1004e450
mov eax, dword [ebp - 0x58]
add esp, 8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100659d0]
divsd xmm0, qword [0x1006ba90]
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 [0x10068ed0]
call fcn.1005e9a1
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 0x10055c9e
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 0x10055c9b
mov eax, dword [ebp - 0x58]
dec eax
cmp dword [ebp - 0x54], eax
jle 0x100556a1
push 0
push dword [edx]
jmp 0x10055c75
push dword [ecx]
call fcn.10007eb0
mov edx, dword [ebp - 0x3c]
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, dword [edx]
test ecx, ecx
je 0x1005589b
cmp ecx, 0x5f5e100
jae 0x1005589b
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.1004ef20
mov eax, dword [ebp - 0x3c]
add eax, 0xffffffe4
push eax
mov eax, dword [edi + 0xdc]
push dword [esi + eax]
call fcn.10013630
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.1000dc90
mov ecx, dword [esi + 0x24]
add esp, 0x10
mov eax, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x10055a0c
push eax
call fcn.10007eb0
mov esi, eax
add esp, 4
mov dword [ebp - 0x7c], esi
test esi, esi
je 0x10055a0c
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.10007ef0
add esp, 8
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x1005579a
cmp dword [eax + 0x48], 0
je 0x1005579a
push dword [ebp - 0x44]
push eax
push 0
jmp 0x100557a0
push dword [ebp - 0x44]
push 0
push esi
lea eax, [ebp - 0x78]
push eax
call fcn.10009560
add esp, 0x10
lea ecx, [ebp - 0x34]
push eax
call fcn.10007d70
lea ecx, [ebp - 0x78]
call fcn.10001840
mov eax, dword [edi + 0xdc]
mov esi, dword [ebp - 0x48]
cmp dword [esi + eax + 0x18], 0
je 0x1005588a
lea eax, [ebp - 0x34]
push eax
mov eax, dword [edi + 0xdc]
mov eax, dword [eax + esi + 0x18]
add eax, 4
push eax
call fcn.1000d800
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 0x1005582c
movsx edx, word [edx + 0x56]
movsx eax, word [ecx + 0x66]
add edx, eax
jmp 0x10055830
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 0x1005588a
lea eax, [ebp - 0x34]
push eax
mov eax, dword [edi + 0xdc]
mov eax, dword [eax + esi + 0x18]
push dword [eax]
call fcn.100131b0
mov eax, dword [edi + 0xdc]
push 1
mov eax, dword [esi + eax + 0x18]
push dword [eax]
call fcn.10012b10
add esp, 0x10
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.10001840
jmp 0x10055a0f
test eax, eax
jne 0x100558a5
push eax
jmp 0x10055c70
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.10007ef0
mov ecx, eax
add esp, 8
mov dword [ebp - 0x48], ecx
test ecx, ecx
je 0x100558e2
cmp dword [ecx + 0x48], 0
je 0x100558e2
mov eax, dword [ebp - 0x3c]
push dword [eax]
push ecx
push 0
jmp 0x100558ec
mov eax, dword [ebp - 0x3c]
push dword [eax]
push 0
push dword [ebp - 0x44]
lea eax, [ebp - 0x78]
push eax
call fcn.10009560
add esp, 0x10
lea ecx, [ebp - 0x34]
push eax
call fcn.10007d70
lea ecx, [ebp - 0x78]
call fcn.10001840
push dword [ebp - 0x48]
lea eax, [ebp - 0x78]
push dword [ebp - 0x44]
push eax
call fcn.10009890
push eax
mov eax, dword [edi + 0xdc]
mov byte [ebp - 4], 0xa
push dword [eax + esi]
call fcn.10013630
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 0x1005588a
lea eax, [ebp - 0x34]
push eax
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
add eax, 4
push eax
call fcn.1000d800
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 0x100559c2
movsx edx, word [edx + 0x56]
movsx eax, word [ecx + 0x66]
add edx, eax
jmp 0x100559c6
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 0x1005588a
lea eax, [ebp - 0x34]
push eax
mov eax, dword [edi + 0xdc]
mov eax, dword [esi + eax + 0x18]
jmp 0x1005586d
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 8]
cmp ecx, 1
jne 0x10055a7e
push 0x2e
push dword [eax + 4]
lea eax, [ebp - 0x94]
push eax
call fcn.1000e150
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xb
jb 0x10055a3a
mov eax, dword [eax]
movaps xmm0, xmmword [0x1006bd60]
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 0x10055a50
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.10031980
mov byte [ebp - 4], 0xc
jmp 0x10055aec
cmp ecx, 2
jne 0x10055b19
push 0x2e
push dword [eax + 4]
lea eax, [ebp - 0x94]
push eax
call fcn.1000e150
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xd
jb 0x10055aa7
mov eax, dword [eax]
movaps xmm0, xmmword [str.wWZW_W]
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 0x10055ac0
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.10031980
mov byte [ebp - 4], 0xe
push eax
mov eax, dword [edi + 0xdc]
push dword [esi + eax + 4]
call fcn.10013630
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.1000e150
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xf
jb 0x10055b36
mov eax, dword [eax]
movaps xmm0, xmmword [0x1006bb80]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x30], xmm0
mov word [ebp - 0x20], 0x5c
nop word [eax + eax]
mov al, byte [ebp - 0x30]
xor byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0x10
jb 0x10055b50
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.10031980
push eax
mov eax, dword [edi + 0xdc]
mov byte [ebp - 4], 0x10
push dword [esi + eax + 8]
call fcn.10013630
mov eax, dword [ebp - 0x80]
add esp, 0x28
cmp eax, 0x10
jb 0x10055bac
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 0x10055bdf
push 1
inc eax
push eax
push dword [ebp - 0x78]
call fcn.10002610
add esp, 0xc
mov edx, dword [0x10075f2c]
test edx, edx
je 0x10055c35
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx + 8]
cmp eax, 1
jne 0x10055bff
mov eax, dword [edx + 0x44]
cmp eax, dword [ecx + 4]
jb 0x10055c0c
mov eax, dword [ecx + 8]
cmp eax, 2
jne 0x10055c35
mov eax, dword [edx + 0x48]
cmp eax, dword [ecx + 4]
jae 0x10055c35
mov eax, dword [edi + 0xdc]
push 0xffff0000
push dword [esi + eax + 4]
call fcn.10013600
mov eax, dword [edi + 0xdc]
push 7
push dword [esi + eax + 0xc]
call fcn.10012a70
push 7
jmp 0x10055c5c
mov eax, dword [edi + 0xdc]
push 0xfffff3ae
push dword [esi + eax + 4]
call fcn.10013600
mov eax, dword [edi + 0xdc]
push 2
push dword [esi + eax + 0xc]
call fcn.10012a70
push 2
mov eax, dword [edi + 0xdc]
push dword [esi + eax + 0x10]
call fcn.10012a70
add esp, 0x18
push 1
mov eax, dword [ebp - 0x50]
push dword [eax]
call fcn.10012b10
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 0x10055674
mov esi, dword [ebp - 0x18]
push dword [edi + 0x19c]
push dword [edi + 0x194]
call fcn.100136d0
mov edi, dword [ebp - 0x40]
add esp, 8
test edi, edi
je 0x10055cdb
push dword [ebp - 0x5c]
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
call fcn.1004d380
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 0x10055cf2
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.1005e77e
mov esp, ebp
pop ebp
ret 0x20