Function at 0x10052780
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0xffffffffffffffff
push 0x101bfe63
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x102832a0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp + 0xe8]
push eax
call esi
lea ecx, [ebp + 0x100]
push ecx
call esi
lea edx, [ebp + 0x118]
push edx
call esi
call fcn.10016c90
push 0xc
call fcn.100f5c37
add esp, 4
mov dword [esp + 0x2c], eax
xor ebx, ebx
mov dword [esp + 0x24], ebx
cmp eax, ebx
je 0x100527f2
mov esi, eax
call fcn.10075c40
jmp 0x100527f4
xor eax, eax
mov dword [esp + 0x24], 0xffffffff
mov dword [ebp], eax
mov esi, 0xff
mov eax, dword [esi*4 + 0x102998b0]
cmp eax, ebx
je 0x1005281a
push esi
push eax
mov eax, dword [ebp]
push eax
call fcn.10075cc0
sub esi, 1
jns 0x10052804
push 0x20
call fcn.100f5c37
mov edi, eax
add esp, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], 1
cmp edi, ebx
je 0x1005284d
push edi
xor esi, esi
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x18], ebx
call fcn.100558d0
mov eax, edi
jmp 0x1005284f
xor eax, eax
mov dword [esp + 0x24], 0xffffffff
push 0xc
mov dword [ebp + 4], eax
call fcn.100f5c37
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], 2
cmp esi, ebx
je 0x100528c4
push 0xf8
mov dword [esi + 4], 0x1f
mov dword [esi + 8], ebx
call fcn.10109f92
add esp, 4
cmp eax, ebx
jne 0x100528ae
push str.Out_of_memory_n
call fcn.10107014
add eax, 0x40
push eax
call fcn.10106bd7
add esp, 8
push 1
call fcn.1010a517
mov dword [esi], eax
xor eax, eax
cmp dword [esi + 4], ebx
jle 0x100528c6
mov ecx, dword [esi]
mov dword [ecx + eax*8], ebx
inc eax
cmp eax, dword [esi + 4]
jl 0x100528b7
jmp 0x100528c6
xor esi, esi
mov dword [esp + 0x24], 0xffffffff
push 0x10
mov dword [ebp + 8], esi
call fcn.100f5c37
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], 3
mov edi, 7
cmp esi, ebx
je 0x10052924
push 0x1c
mov dword [esi], 1
mov dword [esi + 4], edi
call fcn.10109f92
add esp, 4
cmp eax, ebx
je 0x10052891
mov dword [esi + 0xc], eax
xor eax, eax
cmp dword [esi + 4], ebx
jle 0x1005291f
mov edx, dword [esi + 0xc]
mov dword [edx + eax*4], ebx
inc eax
cmp eax, dword [esi + 4]
jl 0x10052913
mov dword [esi + 8], ebx
jmp 0x10052926
xor esi, esi
mov dword [esp + 0x24], 0xffffffff
push 0x10
mov dword [ebp + 0xc], esi
call fcn.100f5c37
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], 4
cmp esi, ebx
je 0x10052983
push 0x1c
mov dword [esi], 1
mov dword [esi + 4], edi
call fcn.10109f92
add esp, 4
cmp eax, ebx
je 0x10052891
mov dword [esi + 0xc], eax
xor eax, eax
cmp dword [esi + 4], ebx
jle 0x1005297e
mov ecx, dword [esi + 0xc]
mov dword [ecx + eax*4], ebx
inc eax
cmp eax, dword [esi + 4]
jl 0x10052972
mov dword [esi + 8], ebx
jmp 0x10052985
xor esi, esi
mov dword [esp + 0x24], 0xffffffff
push 0x10
mov dword [ebp + 0x10], esi
call fcn.100f5c37
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], 5
cmp esi, ebx
je 0x100529e1
push 0x1c
mov dword [esi], ebx
mov dword [esi + 4], edi
call fcn.10109f92
add esp, 4
cmp eax, ebx
je 0x10052891
mov dword [esi + 0xc], eax
xor eax, eax
cmp dword [esi + 4], ebx
jle 0x100529dc
lea ecx, [ecx]
mov edx, dword [esi + 0xc]
mov dword [edx + eax*4], ebx
inc eax
cmp eax, dword [esi + 4]
jl 0x100529d0
mov dword [esi + 8], ebx
jmp 0x100529e3
xor esi, esi
mov dword [esp + 0x24], 0xffffffff
push 0x10
mov dword [ebp + 0x14], esi
call fcn.100f5c37
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], 6
cmp esi, ebx
je 0x10052a41
push 0x1c
mov dword [esi], 1
mov dword [esi + 4], edi
call fcn.10109f92
add esp, 4
cmp eax, ebx
je 0x10052891
mov dword [esi + 0xc], eax
xor eax, eax
cmp dword [esi + 4], ebx
jle 0x10052a3c
nop
mov ecx, dword [esi + 0xc]
mov dword [ecx + eax*4], ebx
inc eax
cmp eax, dword [esi + 4]
jl 0x10052a30
mov dword [esi + 8], ebx
jmp 0x10052a43
xor esi, esi
mov dword [esp + 0x24], 0xffffffff
push 0x10
mov dword [ebp + 0x18], esi
call fcn.100f5c37
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], edi
cmp esi, ebx
je 0x10052aa1
push 0x1c
mov dword [esi], 1
mov dword [esi + 4], edi
call fcn.10109f92
add esp, 4
cmp eax, ebx
je 0x10052891
mov dword [esi + 0xc], eax
xor eax, eax
cmp dword [esi + 4], ebx
jle 0x10052a9c
jmp 0x10052a90
mov edx, dword [esi + 0xc]
mov dword [edx + eax*4], ebx
inc eax
cmp eax, dword [esi + 4]
jl 0x10052a90
mov dword [esi + 8], ebx
jmp 0x10052aa3
xor esi, esi
mov dword [esp + 0x24], 0xffffffff
push 0x10
mov dword [ebp + 0x1c], esi
call fcn.100f5c37
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
mov edi, 8
mov dword [esp + 0x24], edi
cmp esi, ebx
je 0x10052aea
push 0x20
mov dword [esi + 4], edi
call fcn.10109f92
add esp, 4
cmp eax, ebx
je 0x10052891
mov dword [esi], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
jmp 0x10052aec
xor esi, esi
mov dword [esp + 0x24], 0xffffffff
push 0x10
mov dword [ebp + 0x20], esi
call fcn.100f5c37
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], 9
cmp esi, ebx
je 0x10052b49
push 0x1c
mov dword [esi], ebx
mov dword [esi + 4], 7
call fcn.10109f92
add esp, 4
cmp eax, ebx
je 0x10052891
mov dword [esi + 0xc], eax
xor eax, eax
cmp dword [esi + 4], ebx
jle 0x10052b44
mov ecx, dword [esi + 0xc]
mov dword [ecx + eax*4], ebx
inc eax
cmp eax, dword [esi + 4]
jl 0x10052b38
mov dword [esi + 8], ebx
jmp 0x10052b4b
xor esi, esi
mov dword [esp + 0x24], 0xffffffff
mov eax, 1
push 0x10
mov dword [ebp + 0x24], esi
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x30], eax
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x38], 2
call fcn.100f5c37
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], 0xa
cmp esi, ebx
je 0x10052bc1
push 0x1c
mov dword [esi], ebx
mov dword [esi + 4], 7
call fcn.10109f92
add esp, 4
cmp eax, ebx
je 0x10052891
mov dword [esi + 0xc], eax
xor eax, eax
cmp dword [esi + 4], ebx
jle 0x10052bbc
lea esp, [esp]
mov edx, dword [esi + 0xc]
mov dword [edx + eax*4], ebx
inc eax
cmp eax, dword [esi + 4]
jl 0x10052bb0
mov dword [esi + 8], ebx
jmp 0x10052bc3
xor esi, esi
mov dword [esp + 0x24], 0xffffffff
push 0x10
mov dword [ebp + 0x3c], esi
call fcn.100f5c37
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], 0xb
cmp esi, ebx
je 0x10052c09
push 0x20
mov dword [esi + 4], edi
call fcn.10109f92
add esp, 4
cmp eax, ebx
je 0x10052891
mov dword [esi], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
jmp 0x10052c0b
xor esi, esi
mov dword [esp + 0x24], 0xffffffff
push 0x10
mov dword [ebp + 0x40], esi
call fcn.100f5c37
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], 0xc
cmp esi, ebx
je 0x10052c51
push 0x20
mov dword [esi + 4], edi
call fcn.10109f92
add esp, 4
cmp eax, ebx
je 0x10052891
mov dword [esi], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
jmp 0x10052c53
xor esi, esi
mov dword [esp + 0x24], 0xffffffff
mov eax, 1
push 0x20
mov dword [ebp + 0x44], esi
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x4c], eax
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
call fcn.100f5c37
mov edi, eax
add esp, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], 0xd
cmp edi, ebx
je 0x10052cbd
push edi
mov esi, 5
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x18], ebx
call fcn.100558d0
mov eax, dword [edi + 0x1c]
mov ecx, dword [str.UTF_8]
mov dword [eax], ecx
mov dl, byte [0x10203b74]
mov byte [eax + 4], dl
mov eax, edi
jmp 0x10052cbf
xor eax, eax
or edi, 0xffffffff
mov dword [esp + 0x24], edi
mov dword [ebp + 0x6c], eax
mov eax, 1
push 0x10
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x74], eax
mov dword [ebp + 0x78], ebx
call fcn.100f5c37
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], 0xe
cmp esi, ebx
je 0x10052d16
push 0x20
mov dword [esi + 4], 8
call fcn.10109f92
add esp, 4
cmp eax, ebx
je 0x10052891
mov dword [esi], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
jmp 0x10052d18
xor esi, esi
mov dword [esp + 0x24], edi
fld1
fst qword [ebp + 0xa0]
mov eax, 1
fldz
push 8
fst qword [ebp + 0xa8]
mov dword [ebp + 0x7c], esi
fxch st(1)
mov dword [ebp + 0x80], eax
fstp qword [ebp + 0xb0]
mov dword [ebp + 0x84], eax
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x8c], eax
mov dword [ebp + 0x90], ebx
fstp qword [ebp + 0xd0]
mov dword [ebp + 0x94], edi
mov dword [ebp + 0x98], edi
mov dword [ebp + 0xb8], eax
mov dword [ebp + 0xbc], ebx
mov dword [ebp + 0xc0], ebx
mov dword [ebp + 0xc4], ebx
mov dword [ebp + 0xc8], ebx
call fcn.100f5c37
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], 0xf
cmp esi, ebx
je 0x10052dd5
push 0x10
mov dword [esi + 4], 4
call fcn.10109f92
add esp, 4
cmp eax, ebx
je 0x10052891
mov dword [esi], eax
xor eax, eax
cmp dword [esi + 4], ebx
jle 0x10052dd7
mov ecx, dword [esi]
mov dword [ecx + eax*4], ebx
inc eax
cmp eax, dword [esi + 4]
jl 0x10052dc8
jmp 0x10052dd7
xor esi, esi
mov dword [esp + 0x24], edi
push 8
mov dword [ebp + 0xd8], esi
call fcn.100f5c37
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], 0x10
cmp esi, ebx
je 0x10052e2d
push 0x10
mov dword [esi + 4], 4
call fcn.10109f92
add esp, 4
cmp eax, ebx
je 0x10052891
mov dword [esi], eax
xor eax, eax
cmp dword [esi + 4], ebx
jle 0x10052e2f
nop
mov edx, dword [esi]
mov dword [edx + eax*4], ebx
inc eax
cmp eax, dword [esi + 4]
jl 0x10052e20
jmp 0x10052e2f
xor esi, esi
mov dword [esp + 0x24], edi
push 0x10
mov dword [ebp + 0xdc], esi
call fcn.100f5c37
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], 0x11
cmp eax, ebx
je 0x10052e60
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
jmp 0x10052e62
xor eax, eax
mov dword [esp + 0x24], edi
push 0x10
mov dword [ebp + 0xe0], eax
call fcn.100f5c37
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], 0x12
cmp eax, ebx
je 0x10052e93
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
jmp 0x10052e95
xor eax, eax
mov dword [esp + 0x24], edi
mov dword [ebp + 0xe4], eax
mov dword [ebp + 0x28], ebx
mov ecx, dword [0x10295514]
xor esi, esi
cmp ecx, ebx
je 0x10052ed3
xor eax, eax
mov eax, dword [eax + 0x10295510]
push eax
push ecx
mov ecx, dword [ebp + 8]
push ecx
call fcn.10075cc0
inc esi
lea eax, [esi*8]
mov ecx, dword [eax + 0x10295514]
cmp ecx, ebx
jne 0x10052eb0
push 0x38
call fcn.100f5c37
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0x13
cmp eax, ebx
je 0x10052f09
push 0x3a
push 0x102976f0
push 0x10235de4
mov edi, eax
call fcn.100a22c0
mov dword [esp + 0x2c], eax
or edi, 0xffffffff
jmp 0x10052f0d
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], edi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 4]
mov edx, dword [esp + 0x2c]
mov edi, dword [edx]
jl 0x10052f2b
mov ebx, esi
call fcn.10055570
xor ebx, ebx
push 0xc
call fcn.100f5c37
mov edx, dword [esp + 0x30]
mov ecx, eax
mov dword [ecx], edi
mov dword [ecx + 4], edx
mov edx, dword [edi + 0x1c]
mov edi, dword [edi + 0x18]
add esp, 4
xor eax, eax
cmp edi, ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
jle 0x10052f83
mov edx, dword [esp + 0x2c]
movsx edx, byte [edx]
inc dword [esp + 0x2c]
mov edi, eax
and edx, 0xff
shl edi, 4
add edi, eax
add edx, edi
mov eax, edx
mov edx, dword [esp + 0x14]
inc edx
cmp edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
jl 0x10052f58
xor edx, edx
div dword [esi + 4]
mov eax, dword [esi + 0xc]
push 0x38
mov eax, dword [eax + edx*4]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [eax + edx*4], ecx
inc dword [esi + 8]
call fcn.100f5c37
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0x14
cmp eax, ebx
je 0x10052fd0
push 0x81
push 0x10297a90
push str.ASCII7
mov edi, eax
call fcn.100a22c0
mov dword [esp + 0x2c], eax
jmp 0x10052fd4
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], 0xffffffff
mov esi, dword [ebp + 0x14]
mov edx, dword [esi + 8]
cmp edx, dword [esi + 4]
mov ecx, dword [esp + 0x2c]
mov edi, dword [ecx]
jl 0x10052ff6
mov ebx, esi
call fcn.10055570
xor ebx, ebx
push 0xc
call fcn.100f5c37
mov ecx, eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov dword [ecx], edi
mov edx, dword [edi + 0x1c]
mov edi, dword [edi + 0x18]
add esp, 4
xor eax, eax
cmp edi, ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
jle 0x1005304e
mov edx, dword [esp + 0x2c]
movsx edx, byte [edx]
inc dword [esp + 0x2c]
mov edi, eax
and edx, 0xff
shl edi, 4
add edi, eax
add edx, edi
mov eax, edx
mov edx, dword [esp + 0x14]
inc edx
cmp edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
jl 0x10053023
xor edx, edx
div dword [esi + 4]
mov eax, dword [esi + 0xc]
push 0x38
mov eax, dword [eax + edx*4]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [eax + edx*4], ecx
inc dword [esi + 8]
call fcn.100f5c37
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0x15
cmp eax, ebx
je 0x10053098
push 0x79
push 0x102982a0
push str.Symbol
mov edi, eax
call fcn.100a22c0
mov dword [esp + 0x2c], eax
jmp 0x1005309c
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], 0xffffffff
mov esi, dword [ebp + 0x14]
mov edx, dword [esi + 8]
cmp edx, dword [esi + 4]
mov ecx, dword [esp + 0x2c]
mov edi, dword [ecx]
jl 0x100530be
mov ebx, esi
call fcn.10055570
xor ebx, ebx
push 0xc
call fcn.100f5c37
mov ecx, eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov dword [ecx], edi
mov edx, dword [edi + 0x1c]
mov edi, dword [edi + 0x18]
add esp, 4
xor eax, eax
cmp edi, ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
jle 0x10053116
mov edx, dword [esp + 0x2c]
movsx edx, byte [edx]
inc dword [esp + 0x2c]
mov edi, eax
and edx, 0xff
shl edi, 4
add edi, eax
add edx, edi
mov eax, edx
mov edx, dword [esp + 0x14]
inc edx
cmp edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
jl 0x100530eb
xor edx, edx
div dword [esi + 4]
mov eax, dword [esi + 0xc]
push 0x38
mov eax, dword [eax + edx*4]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [eax + edx*4], ecx
inc dword [esi + 8]
call fcn.100f5c37
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0x16
cmp eax, ebx
je 0x10053160
push 0x1e
push 0x10298a30
push str.ZapfDingbats
mov edi, eax
call fcn.100a22c0
mov dword [esp + 0x2c], eax
jmp 0x10053164
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], 0xffffffff
mov esi, dword [ebp + 0x14]
mov edx, dword [esi + 8]
cmp edx, dword [esi + 4]
mov ecx, dword [esp + 0x2c]
mov edi, dword [ecx]
jl 0x10053186
mov ebx, esi
call fcn.10055570
xor ebx, ebx
push 0xc
call fcn.100f5c37
mov ecx, eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov dword [ecx], edi
mov edx, dword [edi + 0x1c]
mov edi, dword [edi + 0x18]
add esp, 4
xor eax, eax
cmp edi, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], edi
jle 0x100531d5
movsx edi, byte [edx]
mov ebx, eax
and edi, 0xff
shl ebx, 4
add ebx, eax
add edi, ebx
mov eax, edi
mov edi, dword [esp + 0x2c]
inc edi
inc edx
cmp edi, dword [esp + 0x18]
mov dword [esp + 0x2c], edi
jl 0x100531af
xor ebx, ebx
xor edx, edx
div dword [esi + 4]
mov eax, dword [esi + 0xc]
push 0x38
mov eax, dword [eax + edx*4]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [eax + edx*4], ecx
inc dword [esi + 8]
call fcn.100f5c37
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0x17
cmp eax, ebx
je 0x1005321d
push 0x100525b0
push str.UTF_8
mov edi, eax
call fcn.100a2390
mov dword [esp + 0x2c], eax
jmp 0x10053221
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], 0xffffffff
mov esi, dword [ebp + 0x14]
mov edx, dword [esi + 8]
cmp edx, dword [esi + 4]
mov ecx, dword [esp + 0x2c]
mov edi, dword [ecx]
jl 0x10053243
mov ebx, esi
call fcn.10055570
xor ebx, ebx
push 0xc
call fcn.100f5c37
mov ecx, eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov dword [ecx], edi
mov edx, dword [edi + 0x1c]
mov edi, dword [edi + 0x18]
add esp, 4
xor eax, eax
cmp edi, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], edi
jle 0x10053292
movsx edi, byte [edx]
mov ebx, eax
and edi, 0xff
shl ebx, 4
add ebx, eax
add edi, ebx
mov eax, edi
mov edi, dword [esp + 0x2c]
inc edi
inc edx
cmp edi, dword [esp + 0x18]
mov dword [esp + 0x2c], edi
jl 0x1005326c
xor ebx, ebx
xor edx, edx
div dword [esi + 4]
mov eax, dword [esi + 0xc]
push 0x38
mov eax, dword [eax + edx*4]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [eax + edx*4], ecx
inc dword [esi + 8]
call fcn.100f5c37
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0x18
cmp eax, ebx
je 0x100532da
push 0x10052680
push str.UCS_2
mov edi, eax
call fcn.100a2390
mov dword [esp + 0x2c], eax
jmp 0x100532de
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], 0xffffffff
mov esi, dword [ebp + 0x14]
mov edx, dword [esi + 8]
cmp edx, dword [esi + 4]
mov ecx, dword [esp + 0x2c]
mov edi, dword [ecx]
jl 0x10053300
mov ebx, esi
call fcn.10055570
xor ebx, ebx
push 0xc
call fcn.100f5c37
mov ecx, eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov dword [ecx], edi
mov edx, dword [edi + 0x1c]
mov edi, dword [edi + 0x18]
add esp, 4
xor eax, eax
cmp edi, ebx
jle 0x10053341
mov dword [esp + 0x2c], edi
movsx edi, byte [edx]
mov ebx, eax
shl ebx, 4
add ebx, eax
and edi, 0xff
add edi, ebx
inc edx
sub dword [esp + 0x2c], 1
mov eax, edi
jne 0x10053325
xor edx, edx
div dword [esi + 4]
mov eax, dword [esi + 0xc]
push ebp
mov eax, dword [eax + edx*4]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [eax + edx*4], ecx
inc dword [esi + 8]
call fcn.10053380
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4