Function at 0x5be1c0
Capabilities:
Terminate process

Disassembly:
sub esp, 0xc
cmp word [ecx + 0x3c], 0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], 0
jle 0x5be31c
lea eax, [ecx + 0x2c]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
movsx eax, word [eax + 8]
mov dword [esp + 0x18], eax
mov ebp, dword [ecx + eax*4 + 0x54]
test ebp, ebp
je 0x5be349
mov eax, dword [ebp + 0x118]
test eax, eax
jne 0x5be2fc
mov edx, dword [ecx + 0x10c0]
mov eax, dword [ecx + 0x10c8]
mov byte [edx + eax], 0xff
mov edx, dword [ecx + 0x10c8]
inc edx
mov dword [ecx + 0x10c8], edx
mov eax, edx
mov edx, dword [ecx + 0x10c0]
mov byte [edx + eax], 0xc4
mov eax, dword [ecx + 0x10c8]
inc eax
xor edi, edi
mov dword [ecx + 0x10c8], eax
mov esi, eax
mov eax, 1
xor edx, edx
mov dl, byte [eax + ebp + 4]
add edi, edx
inc eax
cmp eax, 0x10
jle 0x5be248
mov ebx, dword [ecx + 0x10c0]
lea eax, [edi + 0x13]
mov edx, eax
sar edx, 8
mov byte [ebx + esi], dl
mov esi, dword [ecx + 0x10c8]
inc esi
mov bl, byte [esp + 0x18]
mov dword [ecx + 0x10c8], esi
mov edx, esi
mov esi, dword [ecx + 0x10c0]
mov byte [esi + edx], al
mov edx, dword [ecx + 0x10c8]
inc edx
mov esi, 1
mov dword [ecx + 0x10c8], edx
mov eax, edx
mov edx, dword [ecx + 0x10c0]
mov byte [edx + eax], bl
mov eax, dword [ecx + 0x10c8]
inc eax
mov dword [ecx + 0x10c8], eax
mov edx, dword [ecx + 0x10c0]
mov bl, byte [esi + ebp + 4]
mov byte [edx + eax], bl
mov eax, dword [ecx + 0x10c8]
inc eax
inc esi
cmp esi, 0x10
mov dword [ecx + 0x10c8], eax
jle 0x5be2ad
xor esi, esi
test edi, edi
jle 0x5be2f2
mov edx, dword [ecx + 0x10c0]
mov bl, byte [esi + ebp + 0x15]
mov byte [edx + eax], bl
mov eax, dword [ecx + 0x10c8]
inc eax
inc esi
cmp esi, edi
mov dword [ecx + 0x10c8], eax
jl 0x5be2d3
mov dword [ebp + 0x118], 1
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
movsx edx, word [ecx + 0x3c]
inc eax
add edi, 4
cmp eax, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
jl 0x5be1e1
mov edx, dword [ecx + 0x6c]
test edx, edx
je 0x5be3f7
mov eax, dword [ecx + 0x18]
imul eax, edx
cmp eax, 0xffff
jle 0x5be35e
push 0
push 0
push sym.CDViewer.exe____C__0DP_BJLJ_LosslessCompression_5_9_5EmitDri__CI__CJ_5_
call fcn.0062dd90
push 0xffffffffffffffff
call fcn.005e246f
push 0
push 0
push sym.CDViewer.exe_unsigned_char_string
call fcn.0062dd90
push 1
call fcn.005e246f
mov edx, dword [ecx + 0x10c0]
mov esi, dword [ecx + 0x10c8]
mov byte [edx + esi], 0xff
mov esi, dword [ecx + 0x10c8]
inc esi
mov dword [ecx + 0x10c8], esi
mov edx, esi
mov esi, dword [ecx + 0x10c0]
mov byte [esi + edx], 0xdd
mov edx, dword [ecx + 0x10c8]
mov esi, dword [ecx + 0x10c0]
inc edx
mov dword [ecx + 0x10c8], edx
mov byte [esi + edx], 0
mov ebp, dword [ecx + 0x10c8]
mov esi, dword [ecx + 0x10c0]
inc ebp
mov edx, ebp
mov dword [ecx + 0x10c8], ebp
mov byte [esi + edx], 4
mov ebx, dword [ecx + 0x10c8]
mov edi, dword [ecx + 0x10c0]
inc ebx
mov edx, eax
mov esi, ebx
sar edx, 8
mov dword [ecx + 0x10c8], ebx
mov byte [edi + esi], dl
mov edx, dword [ecx + 0x10c8]
mov esi, dword [ecx + 0x10c0]
inc edx
mov dword [ecx + 0x10c8], edx
mov byte [esi + edx], al
mov eax, dword [ecx + 0x10c8]
inc eax
mov dword [ecx + 0x10c8], eax
mov eax, dword [ecx + 0x10c0]
mov edx, dword [ecx + 0x10c8]
mov byte [eax + edx], 0xff
mov edx, dword [ecx + 0x10c8]
inc edx
mov dword [ecx + 0x10c8], edx
mov eax, edx
mov edx, dword [ecx + 0x10c0]
mov byte [edx + eax], 0xda
mov eax, dword [ecx + 0x10c8]
inc eax
mov edi, dword [ecx + 0x10c0]
mov dword [ecx + 0x10c8], eax
mov esi, eax
movsx eax, word [ecx + 0x3c]
lea eax, [eax + eax + 6]
mov edx, eax
sar edx, 8
mov byte [edi + esi], dl
mov ebx, dword [ecx + 0x10c8]
mov esi, dword [ecx + 0x10c0]
inc ebx
mov edx, ebx
mov dword [ecx + 0x10c8], ebx
mov byte [esi + edx], al
mov edi, dword [ecx + 0x10c8]
mov esi, dword [ecx + 0x10c0]
mov dl, byte [ecx + 0x3c]
inc edi
mov eax, edi
mov dword [ecx + 0x10c8], edi
xor edi, edi
mov byte [esi + eax], dl
mov esi, dword [ecx + 0x10c8]
inc esi
cmp word [ecx + 0x3c], di
mov dword [ecx + 0x10c8], esi
mov eax, esi
jle 0x5be4d9
lea esi, [ecx + 0x2c]
mov edx, dword [esi]
mov ebx, dword [ecx + 0x10c0]
add esi, 4
mov dl, byte [edx]
mov byte [ebx + eax], dl
mov eax, dword [ecx + 0x10c8]
mov ebx, dword [ecx + 0x10c0]
inc eax
mov dword [ecx + 0x10c8], eax
mov edx, dword [esi - 4]
mov dl, byte [edx + 8]
shl dl, 4
mov byte [ebx + eax], dl
mov ebx, dword [ecx + 0x10c8]
movsx edx, word [ecx + 0x3c]
inc ebx
inc edi
cmp edi, edx
mov dword [ecx + 0x10c8], ebx
mov eax, ebx
jl 0x5be492
mov esi, dword [ecx + 0x10c0]
mov edx, dword [ecx + 0x64]
mov byte [esi + eax], dl
mov ebx, dword [ecx + 0x10c8]
mov edx, dword [ecx + 0x10c0]
inc ebx
mov eax, ebx
mov dword [ecx + 0x10c8], ebx
mov byte [edx + eax], 0
mov edi, dword [ecx + 0x10c8]
mov edx, dword [ecx + 0x68]
mov esi, dword [ecx + 0x10c0]
inc edi
and dl, 0xf
mov eax, edi
mov dword [ecx + 0x10c8], edi
pop edi
mov byte [esi + eax], dl
mov eax, dword [ecx + 0x10c8]
inc eax
pop esi
pop ebp
mov dword [ecx + 0x10c8], eax
pop ebx
add esp, 0xc
ret