Function at 0x5402d0
Capabilities:
Encrypt data using rc4 ksa
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], 0
mov dword [esi + 0x20], 0
mov byte [esi + 0xc0], 0
mov dword [esi + 0xa4], 1
cmp eax, 0x20
jl 0x540984
mov dword [esi + 0xb4], 1
lea esp, [esp]
mov dword [esi + 0x3c], 1
jmp 0x540330
mov eax, dword [esi + 0xb4]
shl eax, 5
add eax, dword [esi + 0x3c]
mov dword [esi + eax*4 + 0x36c], 0
inc dword [esi + 0x3c]
cmp dword [esi + 0x3c], 0x10
jle 0x540330
inc dword [esi + 0xb4]
cmp dword [esi + 0xb4], 4
jle 0x540320
mov dword [esi + 0xa0], 1
mov dword [esi + 0x6c], 0
mov byte [esi + 0xc1], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x78], 0
push dword [edi + 4]
push 1
call fcn.00592c0b
mov dword [esi], eax
push dword [edi]
push 1
push dword [edi + 4]
push eax
call fcn.00595b79
mov eax, dword [esi + 0x98]
add esp, 0x18
mov edi, dword [esi]
lea edx, [eax + 1]
movzx ecx, byte [eax + edi]
mov eax, ecx
mov dword [esi + 0x98], edx
mov dword [esi + 0x54], eax
lea eax, [edx + 1]
movzx ecx, byte [edx + edi]
mov dword [esi + 0x98], eax
mov eax, ecx
mov dword [esi + 0x54], eax
lea ecx, [ecx]
mov edi, dword [esi + 0x94]
mov edx, dword [esi + 0x98]
cmp edx, edi
jg 0x5403f4
mov eax, dword [esi]
mov cl, byte [edx + eax]
lea eax, [edx + 1]
mov dword [esi + 0x98], eax
movzx eax, cl
mov dword [esi + 0x54], eax
cmp dword [esi + 0x54], 0xff
jne 0x540984
mov edx, dword [esi + 0x98]
cmp edx, edi
jg 0x54041f
mov eax, dword [esi]
mov cl, byte [edx + eax]
lea eax, [edx + 1]
mov dword [esi + 0x98], eax
movzx eax, cl
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x540440
cmp eax, 1
je 0x540440
cmp eax, 0xd0
jl 0x540439
cmp eax, 0xd7
jle 0x540440
cmp eax, 0xff
jne 0x540447
mov dword [esi + 0x5c], 0
cmp dword [esi + 0x98], edi
jge 0x540455
cmp dword [esi + 0x5c], 0
je 0x5403d6
mov eax, dword [esi + 0x98]
mov ebx, dword [esi]
mov cl, byte [eax + ebx]
inc eax
mov dword [esi + 0x98], eax
movzx ecx, cl
shl ecx, 8
mov dl, byte [eax + ebx]
inc eax
mov dword [ebp + 8], eax
mov dword [esi + 0x98], eax
movzx eax, dl
mov edx, dword [ebp + 8]
add eax, ecx
mov dword [esi + 0xa8], eax
lea ecx, [edx - 2]
add ecx, eax
mov dword [esi + 0xac], ecx
cmp ecx, edi
jg 0x540984
mov eax, dword [esi + 0x5c]
cmp eax, 0xc3
jne 0x5404ac
mov byte [esi + 0xc0], 1
cmp eax, 0xdd
ja case.0x5404be.1
movzx eax, byte [eax + 0x5419e8]
jmp dword [eax*4 + 0x5419d0]
mov al, byte [ebx + edx]
lea ecx, [edx + 1]
mov dword [esi + 0x98], ecx
movzx eax, al
mov dword [esi + 0x68], eax
lea eax, [ecx + 1]
mov bl, byte [ebx + ecx]
lea edi, [eax + 1]
mov ecx, dword [esi]
mov dword [esi + 0x98], eax
mov dl, byte [ecx + eax]
movzx ecx, bl
mov ebx, dword [esi]
shl ecx, 8
mov dword [esi + 0x98], edi
movzx eax, dl
add ecx, eax
lea eax, [edi + 1]
mov dword [esi + 0xa0], ecx
mov cl, byte [ebx + edi]
lea edi, [eax + 1]
mov dword [esi + 0x98], eax
mov dl, byte [eax + ebx]
movzx ecx, cl
shl ecx, 8
movzx eax, dl
add ecx, eax
mov dword [esi + 0x98], edi
cmp byte [esi + 0xc0], 0
lea eax, [edi + 1]
mov dword [esi + 0xa4], ecx
movzx ecx, byte [edi + ebx]
mov dword [esi + 0x98], eax
mov eax, ecx
mov dword [esi + 0x70], eax
je 0x540552
cmp eax, 1
je 0x54055f
cmp eax, 3
je 0x54055f
push str.Unable_to_extract_this_file_format
call fcn.005927a9
add esp, 4
mov eax, dword [esi + 0x98]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0xac]
mov dword [esi + 0x98], eax
jmp case.0x5404be.0
mov dword [esi + 0xb4], 1
mov ecx, dword [esi + 0x98]
mov eax, dword [esi]
mov dl, byte [ecx + eax]
lea eax, [ecx + 1]
mov dword [esi + 0x98], eax
movzx eax, dl
mov dword [esi + 0x64], eax
mov dword [esi + 0x60], 0
mov dword [esi + 0x3c], 1
jmp 0x5405b0
mov ecx, dword [esi + 0x98]
mov eax, dword [esi]
mov dl, byte [ecx + eax]
lea eax, [ecx + 1]
mov dword [esi + 0x98], eax
mov eax, dword [esi + 0xb4]
shl eax, 5
add eax, dword [esi + 0x3c]
movzx ecx, dl
mov dword [esi + eax*4 + 0xec], ecx
mov edx, dword [esi + 0xb4]
mov eax, edx
mov edi, dword [esi + 0x3c]
shl eax, 5
add eax, edi
lea ecx, [esi + eax*4]
mov eax, dword [ecx + 0xec]
add dword [esi + 0x60], eax
cmp dword [ecx + 0xec], 0
je 0x540606
mov dword [esi + edx*4 + 0xc4], edi
inc dword [esi + 0x3c]
cmp dword [esi + 0x3c], 0x10
jle 0x5405b0
cmp dword [esi + 0x60], 0x11
jg 0x5409b2
mov dword [esi + 0x3c], 0
mov eax, dword [esi + 0xb4]
shl eax, 5
add eax, dword [esi + 0x3c]
lea eax, [eax + eax*2]
mov dword [esi + eax*4 + 0xb98], 0xffffffff
mov eax, dword [esi + 0xb4]
shl eax, 5
add eax, dword [esi + 0x3c]
lea eax, [eax + eax*2]
mov dword [esi + eax*4 + 0xb90], 0xffffffff
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0xb4]
add eax, 0xf7
shl ecx, 5
add eax, ecx
lea eax, [eax + eax*2]
mov dword [esi + eax*4], 0xffffffff
inc dword [esi + 0x3c]
cmp dword [esi + 0x3c], 0x1f
jle 0x540620
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 1
jmp 0x540690
mov ecx, dword [esi + 0xb4]
shl ecx, 5
add ecx, dword [esi + 0x3c]
cmp dword [esi + ecx*4 + 0xec], 0
jle 0x54076f
mov eax, dword [esi + 0x38]
inc eax
mov dword [esi + ecx*4 + 0x36c], eax
mov eax, dword [esi + 0xb4]
shl eax, 5
add eax, dword [esi + 0x3c]
mov dword [esi + 0x34], 1
cmp dword [esi + eax*4 + 0xec], 1
jl 0x54076f
jmp 0x5406e0
mov ecx, dword [esi + 0x98]
mov eax, dword [esi]
inc dword [esi + 0x38]
mov dl, byte [ecx + eax]
lea eax, [ecx + 1]
mov dword [esi + 0x98], eax
mov eax, dword [esi + 0xb4]
shl eax, 5
add eax, dword [esi + 0x38]
movzx ecx, dl
mov dword [esi + 0x54], ecx
lea eax, [eax + eax*2]
mov dword [esi + eax*4 + 0xb98], ecx
mov ecx, dword [esi + 0xb4]
mov eax, dword [esi + 0x54]
mov dword [esi + ecx*4 + 0xd8], eax
mov eax, dword [esi + 0x54]
test eax, eax
js 0x5409a3
cmp eax, 0x10
jg 0x5409a3
mov eax, dword [esi + 0xb4]
shl eax, 5
add eax, dword [esi + 0x38]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x3c]
mov dword [esi + ecx*4 + 0xb90], eax
inc dword [esi + 0x34]
mov eax, dword [esi + 0xb4]
mov ecx, dword [esi + 0x34]
shl eax, 5
add eax, dword [esi + 0x3c]
cmp ecx, dword [esi + eax*4 + 0xec]
jle 0x5406e0
inc dword [esi + 0x3c]
cmp dword [esi + 0x3c], 0x10
jle 0x540690
mov eax, dword [esi + 0xb4]
mov dword [esi + 0x28], 1
mov dword [esi + 0x2c], 0
lea eax, [eax + eax*2]
shl eax, 7
mov eax, dword [eax + esi + 0xb9c]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0xb4]
shl eax, 5
add eax, dword [esi + 0x28]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + ecx*4 + 0xb90]
jne 0x5407fd
jmp 0x5407c0
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0xb4]
add eax, 0xf7
shl ecx, 5
add eax, ecx
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x2c]
mov dword [esi + ecx*4], eax
inc dword [esi + 0x28]
inc dword [esi + 0x2c]
mov eax, dword [esi + 0xb4]
shl eax, 5
add eax, dword [esi + 0x28]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + ecx*4 + 0xb90]
je 0x5407c0
mov ebx, dword [esi + 0x28]
mov edx, dword [esi + 0x60]
cmp ebx, edx
jg 0x540840
mov edi, dword [esi + 0xb4]
mov ecx, dword [esi + 0x30]
shl edi, 5
lea eax, [ebx + edi]
lea eax, [eax + eax*2]
cmp dword [esi + eax*4 + 0xb90], ecx
jle 0x540840
mov edx, dword [esi + 0x2c]
add edx, edx
lea eax, [edi + ebx]
inc ecx
mov dword [esi + 0x2c], edx
lea eax, [eax + eax*2]
mov dword [esi + 0x30], ecx
cmp dword [esi + eax*4 + 0xb90], ecx
jg 0x540825
mov edx, dword [esi + 0x60]
cmp dword [esi + 0x28], edx
jle 0x5407a0
mov eax, dword [esi + 0xac]
inc dword [esi + 0xb4]
sub eax, dword [esi + 0x98]
mov ecx, dword [esi + 0xb4]
cmp eax, 0x12
jge 0x540583
lea eax, [ecx - 1]
mov dword [esi + 0xb8], eax
mov eax, dword [esi + 0xac]
mov dword [esi + 0x98], eax
jmp case.0x5404be.0
mov cl, byte [ebx + edx]
lea eax, [edx + 1]
mov dword [esi + 0x98], eax
mov al, byte [ebx + eax]
movzx ecx, cl
movzx eax, al
shl ecx, 8
add ecx, eax
mov eax, dword [esi + 0xac]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x98], eax
jmp case.0x5404be.0
cmp dword [esi + 0x78], 0
jg 0x540984
mov al, byte [ebx + edx]
lea ecx, [edx + 1]
movzx edi, al
mov dword [esi + 0x98], ecx
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], ecx
test edi, edi
jle 0x540904
mov dword [esi + 0x3c], 0
xor edx, edx
mov edi, edi
movzx eax, byte [ebx + ecx]
inc edx
inc ecx
mov dword [esi + 0x54], eax
mov dword [esi + 0x98], ecx
movzx eax, byte [ebx + ecx]
inc ecx
mov dword [esi + 0x98], ecx
mov dword [esi + 0x58], eax
mov dword [esi + 0x3c], edx
cmp edx, edi
jl 0x5408e0
mov eax, dword [esi + 0x98]
mov cl, byte [eax + ebx]
lea edx, [eax + 1]
movzx eax, cl
lea ecx, [edx + 1]
mov dword [esi + 0x98], edx
mov dword [esi + 0x80], eax
movzx eax, byte [edx + ebx]
mov dword [esi + 0x84], eax
mov dword [esi + 0x98], ecx
movzx eax, byte [ebx + ecx]
mov dword [esi + 0x88], eax
and eax, 0x10
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0xac]
mov dword [esi + 0x98], eax
jmp case.0x5404be.0
mov dword [esi + 0x98], ecx
mov eax, dword [esi + 0x98]
cmp eax, dword [esi + 0x94]
jge 0x540971
cmp dword [esi + 0x5c], 0xda
jne 0x5403d0
mov eax, dword [esi + 0x98]
mov byte [esi + 0xc1], 1
mov dword [esi + 0x90], eax
cmp byte [esi + 0xc1], 0
jne 0x5409c1
push dword [esi]
call fcn.00592c4b
add esp, 4
pop edi
pop esi
mov eax, 2
pop ebx
pop ebp
ret 0x10
push str.Huffman_size_array_corrupted_n
call fcn.005927a9
add esp, 4
jmp 0x540984
push str.Huffman_table_corrupted_n
call fcn.005927a9
add esp, 4
jmp 0x540984
cmp byte [esi + 0xc0], 0
je 0x54098d
mov eax, dword [esi + 0xa4]
cmp eax, dword [ebp + 0xc]
jne 0x540997
mov eax, dword [esi + 0xa0]
cmp eax, dword [ebp + 0x10]
jne 0x540997
mov eax, dword [esi + 0x98]
mov edx, dword [esi]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x34], eax
mov edi, edi
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x34]
mov al, byte [edx + eax]
mov byte [edx + ecx], al
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi]
cmp byte [edx + ecx], 0xff
jne 0x540a22
mov al, byte [edx + ecx + 1]
test al, al
jne 0x540a17
lea eax, [ecx + 1]
mov dword [esi + 0x3c], eax
jmp 0x540a22
cmp al, 0xd9
jne 0x540a22
mov dword [esi + 0x34], 0xfffffd66
inc dword [esi + 0x3c]
inc dword [esi + 0x34]
jns 0x5409f0
mov dword [esi + 0x5f0], 1
mov dword [esi + 0x5f4], 3
mov dword [esi + 0x5f8], 7
mov dword [esi + 0x5fc], 0xf
mov dword [esi + 0x600], 0x1f
mov dword [esi + 0x604], 0x3f
mov dword [esi + 0x608], 0x7f
mov dword [esi + 0x60c], 0xff
mov dword [esi + 0x610], 0x1ff
mov dword [esi + 0x614], 0x3ff
mov dword [esi + 0x618], 0x7ff
mov dword [esi + 0x61c], 0xfff
mov dword [esi + 0x620], 0x1fff
mov dword [esi + 0x624], 0x3fff
mov dword [esi + 0x628], 0x7fff
mov dword [esi + 0x62c], 0xffff
mov dword [esi + 0x630], 0x1ffff
mov eax, dword [esi + 0xb8]
mov ecx, dword [esi + 0x70]
cmp eax, ecx
jge 0x540bd6
cmp eax, 1
jge 0x540b03
push str.Lossless_JPEG_decoding_error:_no_Huffman_tables_n
call fcn.005927a9
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
mov dword [esi + 0xb4], 2
cmp ecx, 2
jl 0x540bd6
jmp 0x540b20
mov dword [esi + 0x3c], 0
jmp 0x540b30
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0xb4]
shl eax, 5
lea edx, [ecx + ecx*2]
add ecx, 0xf7
add eax, ecx
lea ecx, [eax + eax*2]
mov eax, dword [esi + edx*4 + 0xd14]
mov dword [esi + ecx*4], eax
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0xb4]
shl ecx, 5
add ecx, eax
lea edx, [eax + eax*2]
mov eax, dword [esi + edx*4 + 0xd18]
lea ecx, [ecx + ecx*2]
mov dword [esi + ecx*4 + 0xb98], eax
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0xb4]
shl ecx, 5
add ecx, eax
lea edx, [eax + eax*2]
mov eax, dword [esi + edx*4 + 0xd10]
lea ecx, [ecx + ecx*2]
mov dword [esi + ecx*4 + 0xb90], eax
mov ecx, dword [esi + 0xb4]
mov eax, dword [esi + 0x3c]
shl ecx, 5
add ecx, eax
mov eax, dword [esi + eax*4 + 0x16c]
mov dword [esi + ecx*4 + 0xec], eax
inc dword [esi + 0x3c]
cmp dword [esi + 0x3c], 0x1f
jle 0x540b30
inc dword [esi + 0xb4]
mov eax, dword [esi + 0xb4]
cmp eax, dword [esi + 0x70]
jle 0x540b20
mov dword [esi + 0xb4], 1
mov dword [esi + 0x3c], 0
jmp 0x540bf0
mov eax, dword [esi + 0xb4]
lea ecx, [eax + eax*8]
mov eax, dword [esi + 0x3c]
lea eax, [eax + ecx*2]
mov byte [eax + esi + 0x634], 0x7b
inc dword [esi + 0x3c]
cmp dword [esi + 0x3c], 0x11
jle 0x540bf0
inc dword [esi + 0xb4]
cmp dword [esi + 0xb4], 4
jle 0x540be0
mov dword [esi + 0xb4], 1
lea esp, [esp]
mov dword [esi + 0x3c], 0
jmp 0x540c40
mov eax, dword [esi + 0xb4]
shl eax, 8
add eax, dword [esi + 0x3c]
mov byte [eax + esi + 0x68e], 0xff
inc dword [esi + 0x3c]
cmp dword [esi + 0x3c], 0xff
jle 0x540c40
inc dword [esi + 0xb4]
cmp dword [esi + 0xb4], 4
jle 0x540c30
cmp dword [esi + 0x70], 1
mov dword [esi + 0xb4], 1
jl 0x540dce
jmp 0x540c90
mov dword [esi + 0x38], 0
mov dword [esi + 0x24], 1
mov edi, edi
mov eax, dword [esi + 0xb4]
shl eax, 5
add eax, dword [esi + 0x24]
cmp dword [esi + eax*4 + 0xec], 0
jle 0x540dac
mov dword [esi + 0x34], 1
cmp dword [esi + eax*4 + 0xec], 1
jl 0x540dac
nop
mov edx, dword [esi + 0xb4]
mov eax, edx
inc dword [esi + 0x38]
shl eax, 5
add eax, dword [esi + 0x38]
lea eax, [eax + eax*2]
mov ecx, dword [esi + eax*4 + 0xb98]
lea eax, [edx + edx*8]
mov dword [esi + 0xbc], ecx
lea ecx, [ecx + eax*2]
mov al, byte [esi + 0x24]
mov byte [ecx + esi + 0x634], al
mov edi, dword [esi + 0xb4]
mov ecx, edi
mov eax, dword [esi + 0x38]
mov ebx, dword [esi + 0x24]
add eax, 0xf7
shl ecx, 5
neg ebx
add eax, ecx
lea ecx, [ebx + 8]
lea eax, [eax + eax*2]
mov eax, dword [esi + eax*4]
shl eax, cl
and eax, 0xff
cmp dword [esi + 0x24], 8
mov dword [esi + 0x28], eax
jge 0x540d7b
mov eax, dword [esi + ebx*4 + 0x60c]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x50], 0
test eax, eax
jl 0x540d8d
lea esp, [esp]
mov edx, dword [esi + 0xb4]
mov ecx, dword [esi + 0x50]
mov al, byte [esi + 0xbc]
shl edx, 8
add edx, dword [esi + 0x28]
add edx, esi
mov byte [edx + ecx + 0x68e], al
inc dword [esi + 0x50]
mov eax, dword [esi + 0x50]
cmp eax, dword [esi + 0x3c]
jle 0x540d50
jmp 0x540d8d
shl edi, 8
add edi, eax
mov al, byte [esi + 0xbc]
mov byte [edi + esi + 0x68e], al
inc dword [esi + 0x34]
mov eax, dword [esi + 0xb4]
mov ecx, dword [esi + 0x34]
shl eax, 5
add eax, dword [esi + 0x24]
cmp ecx, dword [esi + eax*4 + 0xec]
jle 0x540cd0
inc dword [esi + 0x24]
cmp dword [esi + 0x24], 8
jle 0x540ca0
inc dword [esi + 0xb4]
mov eax, dword [esi + 0xb4]
cmp eax, dword [esi + 0x70]
jle 0x540c90
mov eax, dword [esi + 0xa4]
mov ebx, dword [esi + 0x70]
mov edi, dword [esi + 0xa0]
mov ecx, dword [esi + 0x68]
sub ecx, dword [esi + 0x6c]
inc dword [esi + 0x98]
dec ecx
imul eax, ebx
mov dword [esi + 0x50], 0
mov dword [esi + 0x3c], 0
imul edi, eax
mov dword [esi + 0xa4], eax
mov eax, 1
shl eax, cl
cmp dword [esi + 0x68], 8
mov dword [esi + 0x14], eax
mov dword [esi + 0x9c], edi
je 0x5410fb
mov ecx, dword [ebp + 0x14]
lea eax, [edi + edi]
push eax
push 0
push ecx
mov dword [esi + 8], ecx
call fcn.00595760
mov eax, dword [esi + 0x80]
add esp, 0xc
add eax, 0xfffffffe
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
cmp eax, 4
ja case.default.0x540e4f
jmp dword [eax*4 + 0x541ac8]
mov eax, dword [esi + 0xa4]
dec eax
mov dword [esi + 0x40], eax
jmp 0x540e83
mov eax, dword [esi + 0xa4]
mov dword [esi + 0x40], eax
jmp 0x540e83
mov ecx, dword [esi + 0xa4]
mov dword [esi + 0x48], ecx
lea eax, [ecx - 1]
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], 0
cmp dword [esi + 0xa4], 1
mov dword [esi + 0x34], 1
jl 0x540ecd
mov ecx, dword [esi + 0x3c]
test ecx, ecx
jle 0x540ea5
mov eax, dword [esi + 8]
movzx eax, word [eax + ecx*2 - 2]
mov dword [esi + 0x14], eax
push 1
mov ecx, esi
call fcn.00541b10
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 8]
add ax, word [esi + 0x14]
mov word [ecx + edx*2], ax
inc dword [esi + 0x34]
inc dword [esi + 0x3c]
mov eax, dword [esi + 0x34]
cmp eax, dword [esi + 0xa4]
jle 0x540e93
mov eax, dword [esi + 0xa0]
cmp eax, 1
jle 0x5419bc
mov dword [esi + 0x38], 2
cmp eax, 2
jl 0x5419bc
lea esp, [esp]
mov ecx, dword [esi + 0x3c]
sub ecx, dword [esi + 0xa4]
mov eax, dword [esi + 8]
push 1
movzx eax, word [eax + ecx*2]
mov ecx, esi
mov dword [esi + 0x14], eax
call fcn.00541b10
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 8]
add ax, word [esi + 0x14]
mov word [ecx + edx*2], ax
inc dword [esi + 0x3c]
mov eax, dword [esi + 0x80]
mov edi, dword [esi + 0x3c]
cmp eax, 4
jne 0x540fb4
cmp dword [esi + 0xa4], 2
mov dword [esi + 0x34], 2
jl 0x5410d6
mov edx, dword [esi + 8]
mov eax, edi
sub eax, dword [esi + 0x44]
push 1
movzx ecx, word [edx + eax*2 - 2]
mov eax, edi
sub eax, dword [esi + 0x48]
sub edi, dword [esi + 0x40]
movzx eax, word [edx + eax*2 - 2]
sub ecx, eax
movzx eax, word [edx + edi*2 - 2]
add ecx, eax
mov dword [esi + 0x14], ecx
mov ecx, esi
call fcn.00541b10
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 8]
add ax, word [esi + 0x14]
mov word [ecx + edx*2], ax
inc dword [esi + 0x34]
inc dword [esi + 0x3c]
mov eax, dword [esi + 0x34]
mov edi, dword [esi + 0x3c]
cmp eax, dword [esi + 0xa4]
jle 0x540f43
jmp 0x5410d6
mov ecx, dword [esi + 0xa4]
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], ecx
lea eax, [ecx - 1]
mov dword [esi + 0x40], eax
jmp 0x540e83
cmp eax, 5
je 0x541073
cmp eax, 6
je 0x541073
mov dword [esi + 0x34], 2
cmp eax, 7
jne 0x54102b
cmp dword [esi + 0xa4], 2
jl 0x5410d6
nop
mov ecx, dword [esi + 8]
mov eax, edi
sub eax, dword [esi + 0xa4]
push 1
movzx edx, word [ecx + eax*2]
movzx eax, word [ecx + edi*2 - 2]
mov ecx, esi
add edx, eax
sar edx, 1
mov dword [esi + 0x14], edx
call fcn.00541b10
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 8]
add ax, word [esi + 0x14]
mov word [ecx + edx*2], ax
inc dword [esi + 0x34]
inc dword [esi + 0x3c]
mov eax, dword [esi + 0x34]
mov edi, dword [esi + 0x3c]
cmp eax, dword [esi + 0xa4]
jle 0x540fe0
jmp 0x5410d6
cmp dword [esi + 0xa4], 2
jl 0x5410d6
sub edi, dword [esi + 0x40]
mov ecx, esi
mov eax, dword [esi + 8]
push 1
movzx eax, word [eax + edi*2 - 2]
mov dword [esi + 0x14], eax
call fcn.00541b10
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 8]
add ax, word [esi + 0x14]
mov word [ecx + edx*2], ax
inc dword [esi + 0x34]
inc dword [esi + 0x3c]
mov eax, dword [esi + 0x34]
mov edi, dword [esi + 0x3c]
cmp eax, dword [esi + 0xa4]
jle 0x541038
jmp 0x5410d6
cmp dword [esi + 0xa4], 2
mov dword [esi + 0x34], 2
jl 0x5410d6
mov edx, dword [esi + 8]
mov eax, edi
sub eax, dword [esi + 0x44]
push 1
movzx ecx, word [edx + eax*2 - 2]
mov eax, edi
sub eax, dword [esi + 0x48]
sub edi, dword [esi + 0x40]
movzx eax, word [edx + eax*2 - 2]
sub ecx, eax
movzx eax, word [edx + edi*2 - 2]
sar ecx, 1
add ecx, eax
mov dword [esi + 0x14], ecx
mov ecx, esi
call fcn.00541b10
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 8]
add ax, word [esi + 0x14]
mov word [ecx + edx*2], ax
inc dword [esi + 0x34]
inc dword [esi + 0x3c]
mov eax, dword [esi + 0x34]
mov edi, dword [esi + 0x3c]
cmp eax, dword [esi + 0xa4]
jle 0x541083
inc dword [esi + 0x38]
mov eax, dword [esi + 0x38]
cmp eax, dword [esi + 0xa0]
jle 0x540ef0
push dword [esi]
call fcn.00592c4b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
push edi
push 0
push eax
mov dword [esi + 4], eax
call fcn.00595760
mov eax, dword [esi + 0x80]
add esp, 0xc
add eax, 0xfffffffe
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
cmp ebx, 3
jne 0x541694
cmp eax, 4
ja case.0x541132.2
jmp dword [eax*4 + 0x541adc]
mov eax, dword [esi + 0xa4]
sub eax, 3
mov dword [esi + 0x40], eax
jmp 0x541168
mov eax, dword [esi + 0xa4]
mov dword [esi + 0x40], eax
jmp 0x541168
mov ecx, dword [esi + 0xa4]
mov dword [esi + 0x48], ecx
lea eax, [ecx - 3]
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], 0
mov eax, dword [esi + 0x14]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
mov eax, 0x55555556
imul dword [esi + 0xa4]
mov dword [esi + 0x3c], 0
mov eax, edx
mov dword [esi + 0x34], 1
shr eax, 0x1f
add eax, edx
cmp eax, 1
jl 0x541236
lea ebx, [ebx]
push 1
mov ecx, esi
call fcn.00541b10
add al, byte [esi + 0x14]
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 4]
push 2
mov byte [edx + ecx], al
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 4]
movzx eax, byte [ecx + eax]
mov dword [esi + 0x14], eax
lea eax, [ecx + 1]
mov ecx, esi
mov dword [esi + 0x3c], eax
call fcn.00541b10
add al, byte [esi + 0x18]
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 4]
push 3
mov byte [edx + ecx], al
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 4]
movzx eax, byte [ecx + eax]
mov dword [esi + 0x18], eax
lea eax, [ecx + 1]
mov ecx, esi
mov dword [esi + 0x3c], eax
call fcn.00541b10
add al, byte [esi + 0x1c]
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 4]
mov byte [edx + ecx], al
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 4]
movzx eax, byte [ecx + eax]
inc dword [esi + 0x34]
mov dword [esi + 0x1c], eax
lea eax, [ecx + 1]
mov dword [esi + 0x3c], eax
mov eax, 0x55555556
imul dword [esi + 0xa4]
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esi + 0x34], eax
jle 0x5411a0
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x541243
mov eax, dword [esi + 0x9c]
mov dword [esi + 0xac], eax
lea esp, [esp]
mov eax, dword [esi + 0x9c]
cmp dword [esi + 0xac], eax
jle 0x541264
mov dword [esi + 0xac], eax
mov edi, dword [esi + 0x3c]
mov eax, edi
mov ebx, dword [esi + 0xa4]
cdq
idiv ebx
inc eax
imul eax, ebx
mov dword [esi + 0x10], eax
lea eax, [ebx + 1]
cmp edi, eax
jle 0x5412b1
mov ecx, dword [esi + 0x68]
mov eax, 1
sub ecx, dword [esi + 0x6c]
dec ecx
shl eax, cl
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
jmp 0x5412c9
mov ecx, dword [esi + 0xa4]
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], ecx
lea eax, [ecx - 3]
mov dword [esi + 0x40], eax
jmp 0x541168
mov ecx, edi
sub ecx, ebx
add ecx, dword [esi + 4]
movzx eax, byte [ecx]
mov dword [esi + 0x14], eax
movzx eax, byte [ecx + 1]
mov dword [esi + 0x18], eax
movzx eax, byte [ecx + 2]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x80]
cmp eax, 4
jne 0x5413c7
mov eax, dword [esi + 0xac]
dec eax
cmp edi, eax
jge 0x541662
lea ebx, [ebx]
push 1
mov ecx, esi
call fcn.00541b10
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 4]
add al, byte [esi + 0x14]
push 2
mov byte [edx + ecx], al
mov ecx, esi
inc dword [esi + 0x3c]
call fcn.00541b10
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 4]
add al, byte [esi + 0x18]
push 3
mov byte [edx + ecx], al
mov ecx, esi
inc dword [esi + 0x3c]
call fcn.00541b10
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 4]
add al, byte [esi + 0x1c]
mov byte [edx + ecx], al
inc dword [esi + 0x3c]
mov ebx, dword [esi + 0x3c]
mov edi, dword [esi + 0x10]
cmp ebx, edi
jne 0x54136b
mov edx, dword [esi + 0xa4]
mov ecx, ebx
sub ecx, edx
add ecx, dword [esi + 4]
movzx eax, byte [ecx]
mov dword [esi + 0x14], eax
movzx eax, byte [ecx + 1]
mov dword [esi + 0x18], eax
movzx eax, byte [ecx + 2]
mov dword [esi + 0x1c], eax
lea eax, [edi + edx]
mov dword [esi + 0x10], eax
jmp 0x5413b3
mov ecx, dword [esi + 4]
mov edi, ecx
sub edi, dword [esi + 0xa4]
add edi, ebx
lea edx, [ecx + ebx]
movzx ecx, byte [edx - 3]
movzx eax, byte [edi - 3]
sub ecx, eax
movzx eax, byte [edi]
add ecx, eax
mov dword [esi + 0x14], ecx
movzx eax, byte [edi - 2]
movzx ecx, byte [edx - 2]
sub ecx, eax
movzx eax, byte [edi + 1]
add ecx, eax
mov dword [esi + 0x18], ecx
movzx eax, byte [edi - 1]
movzx ecx, byte [edx - 1]
sub ecx, eax
movzx eax, byte [edi + 2]
add ecx, eax
mov dword [esi + 0x1c], ecx
mov eax, dword [esi + 0xac]
dec eax
cmp ebx, eax
jl 0x5412f0
jmp 0x541662
cmp eax, 5
je 0x541570
cmp eax, 6
je 0x541570
cmp eax, 7
mov eax, dword [esi + 0xac]
jne 0x5414bd
dec eax
cmp edi, eax
jge 0x541662
push 1
mov ecx, esi
call fcn.00541b10
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 4]
add al, byte [esi + 0x14]
push 2
mov byte [edx + ecx], al
mov ecx, esi
inc dword [esi + 0x3c]
call fcn.00541b10
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 4]
add al, byte [esi + 0x18]
push 3
mov byte [edx + ecx], al
mov ecx, esi
inc dword [esi + 0x3c]
call fcn.00541b10
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 4]
add al, byte [esi + 0x1c]
mov byte [edx + ecx], al
inc dword [esi + 0x3c]
mov ebx, dword [esi + 0x3c]
mov edi, dword [esi + 0x10]
cmp ebx, edi
jne 0x54146c
mov edx, dword [esi + 0xa4]
mov ecx, ebx
sub ecx, edx
add ecx, dword [esi + 4]
movzx eax, byte [ecx]
mov dword [esi + 0x14], eax
movzx eax, byte [ecx + 1]
mov dword [esi + 0x18], eax
movzx eax, byte [ecx + 2]
mov dword [esi + 0x1c], eax
lea eax, [edi + edx]
mov dword [esi + 0x10], eax
jmp 0x5414a9
mov ecx, dword [esi + 4]
mov edi, ecx
sub edi, dword [esi + 0xa4]
lea edx, [ecx + ebx]
movzx eax, byte [edi + ebx]
movzx ecx, byte [edx - 3]
add ecx, eax
sar ecx, 1
mov dword [esi + 0x14], ecx
movzx eax, byte [edi + ebx + 1]
movzx ecx, byte [edx - 2]
add ecx, eax
sar ecx, 1
mov dword [esi + 0x18], ecx
movzx ecx, byte [edx - 1]
movzx eax, byte [edi + ebx + 2]
add ecx, eax
sar ecx, 1
mov dword [esi + 0x1c], ecx
mov eax, dword [esi + 0xac]
dec eax
cmp ebx, eax
jl 0x5413f1
jmp 0x541662
dec eax
cmp edi, eax
jge 0x541662
push 1
mov ecx, esi
call fcn.00541b10
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 4]
add al, byte [esi + 0x14]
push 2
mov byte [edx + ecx], al
mov ecx, esi
inc dword [esi + 0x3c]
call fcn.00541b10
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 4]
add al, byte [esi + 0x18]
push 3
mov byte [edx + ecx], al
mov ecx, esi
inc dword [esi + 0x3c]
call fcn.00541b10
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 4]
add al, byte [esi + 0x1c]
mov byte [edx + ecx], al
inc dword [esi + 0x3c]
mov edi, dword [esi + 0x3c]
mov ecx, edi
mov ebx, dword [esi + 0x10]
cmp edi, ebx
jne 0x541541
mov edx, dword [esi + 0xa4]
sub ecx, edx
add ecx, dword [esi + 4]
movzx eax, byte [ecx]
mov dword [esi + 0x14], eax
movzx eax, byte [ecx + 1]
mov dword [esi + 0x18], eax
movzx eax, byte [ecx + 2]
mov dword [esi + 0x1c], eax
lea eax, [ebx + edx]
mov dword [esi + 0x10], eax
jmp 0x54155c
sub ecx, dword [esi + 0x40]
add ecx, dword [esi + 4]
movzx eax, byte [ecx - 3]
mov dword [esi + 0x14], eax
movzx eax, byte [ecx - 2]
mov dword [esi + 0x18], eax
movzx eax, byte [ecx - 1]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xac]
dec eax
cmp edi, eax
jl 0x5414c6
jmp 0x541662
mov eax, dword [esi + 0xac]
dec eax
cmp edi, eax
jge 0x541662
nop
push 1
mov ecx, esi
call fcn.00541b10
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 4]
add al, byte [esi + 0x14]
push 2
mov byte [edx + ecx], al
mov ecx, esi
inc dword [esi + 0x3c]
call fcn.00541b10
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 4]
add al, byte [esi + 0x18]
push 3
mov byte [edx + ecx], al
mov ecx, esi
inc dword [esi + 0x3c]
call fcn.00541b10
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 4]
add al, byte [esi + 0x1c]
mov byte [edx + ecx], al
inc dword [esi + 0x3c]
mov edi, dword [esi + 0x3c]
mov ebx, dword [esi + 0x10]
cmp edi, ebx
jne 0x5415fb
mov edx, dword [esi + 0xa4]
mov ecx, edi
sub ecx, edx
add ecx, dword [esi + 4]
movzx eax, byte [ecx]
mov dword [esi + 0x14], eax
movzx eax, byte [ecx + 1]
mov dword [esi + 0x18], eax
movzx eax, byte [ecx + 2]
mov dword [esi + 0x1c], eax
lea eax, [ebx + edx]
mov dword [esi + 0x10], eax
jmp 0x541653
mov ecx, dword [esi + 4]
mov ebx, ecx
sub ebx, dword [esi + 0x48]
mov edx, ecx
sub ecx, dword [esi + 0x40]
add ebx, edi
sub edx, dword [esi + 0x44]
add edx, edi
add edi, ecx
movzx eax, byte [ebx - 3]
movzx ecx, byte [edx - 3]
sub ecx, eax
movzx eax, byte [edi - 3]
sar ecx, 1
add ecx, eax
mov dword [esi + 0x14], ecx
movzx eax, byte [ebx - 2]
movzx ecx, byte [edx - 2]
sub ecx, eax
movzx eax, byte [edi - 2]
sar ecx, 1
add ecx, eax
mov dword [esi + 0x18], ecx
movzx eax, byte [ebx - 1]
movzx ecx, byte [edx - 1]
sub ecx, eax
movzx eax, byte [edi - 1]
mov edi, dword [esi + 0x3c]
sar ecx, 1
add ecx, eax
mov dword [esi + 0x1c], ecx
mov eax, dword [esi + 0xac]
dec eax
cmp edi, eax
jl 0x541580
cmp dword [esi + 0x20], 1
jl 0x5419bc
mov eax, dword [esi + 0xac]
sub eax, 2
cmp eax, dword [esi + 0x9c]
jle 0x541250
push dword [esi]
call fcn.00592c4b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
cmp eax, 4
ja case.0x541699.2
jmp dword [eax*4 + 0x541af0]
mov eax, dword [esi + 0xa4]
dec eax
mov dword [esi + 0x40], eax
jmp 0x5416cd
mov eax, dword [esi + 0xa4]
mov dword [esi + 0x40], eax
jmp 0x5416cd
mov ecx, dword [esi + 0xa4]
mov dword [esi + 0x48], ecx
lea eax, [ecx - 1]
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], 0
cmp dword [esi + 0xa4], 1
mov dword [esi + 0x3c], 0
mov dword [esi + 0x34], 1
jl 0x54171a
push 1
mov ecx, esi
call fcn.00541b10
add al, byte [esi + 0x14]
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 4]
mov byte [edx + ecx], al
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 4]
movzx eax, byte [ecx + eax]
inc dword [esi + 0x34]
mov dword [esi + 0x14], eax
lea eax, [ecx + 1]
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x34]
cmp eax, dword [esi + 0xa4]
jle 0x5416e4
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x541727
mov eax, dword [esi + 0x9c]
mov dword [esi + 0xac], eax
lea ecx, [ecx]
mov eax, dword [esi + 0x9c]
cmp dword [esi + 0xac], eax
jle 0x541744
mov dword [esi + 0xac], eax
mov edi, dword [esi + 0x3c]
mov eax, edi
mov ebx, dword [esi + 0xa4]
cdq
idiv ebx
inc eax
imul eax, ebx
mov dword [esi + 0x10], eax
lea eax, [ebx + 1]
cmp edi, eax
jle 0x54178b
mov ecx, dword [esi + 0x68]
mov eax, 1
sub ecx, dword [esi + 0x6c]
dec ecx
shl eax, cl
jmp 0x541796
mov ecx, dword [esi + 0xa4]
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], ecx
lea eax, [ecx - 1]
mov dword [esi + 0x40], eax
jmp 0x5416cd
mov eax, dword [esi + 4]
mov ecx, edi
sub ecx, ebx
movzx eax, byte [ecx + eax]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x80]
cmp eax, 4
jne 0x541825
mov eax, dword [esi + 0xac]
dec eax
cmp edi, eax
jge 0x5419a1
push 1
mov ecx, esi
call fcn.00541b10
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 4]
add al, byte [esi + 0x14]
mov byte [edx + ecx], al
inc dword [esi + 0x3c]
mov edi, dword [esi + 0x3c]
mov ebx, dword [esi + 0x10]
cmp edi, ebx
jne 0x5417f5
mov edx, dword [esi + 0xa4]
mov ecx, edi
mov eax, dword [esi + 4]
sub ecx, edx
movzx eax, byte [ecx + eax]
mov dword [esi + 0x14], eax
lea eax, [ebx + edx]
mov dword [esi + 0x10], eax
jmp 0x541815
mov ecx, dword [esi + 4]
mov edx, ecx
sub edx, dword [esi + 0xa4]
movzx ecx, byte [ecx + edi - 1]
movzx eax, byte [edx + edi - 1]
sub ecx, eax
movzx eax, byte [edx + edi]
add ecx, eax
mov dword [esi + 0x14], ecx
mov eax, dword [esi + 0xac]
dec eax
cmp edi, eax
jl 0x5417b7
jmp 0x5419a1
cmp eax, 5
je 0x54191b
cmp eax, 6
je 0x54191b
cmp eax, 7
mov eax, dword [esi + 0xac]
jne 0x5418b9
dec eax
cmp edi, eax
jge 0x5419a1
nop
push 1
mov ecx, esi
call fcn.00541b10
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 4]
add al, byte [esi + 0x14]
mov byte [edx + ecx], al
inc dword [esi + 0x3c]
mov edi, dword [esi + 0x3c]
mov ebx, dword [esi + 0x10]
cmp edi, ebx
jne 0x54188e
mov edx, dword [esi + 0xa4]
mov ecx, edi
mov eax, dword [esi + 4]
sub ecx, edx
movzx eax, byte [ecx + eax]
mov dword [esi + 0x14], eax
lea eax, [ebx + edx]
mov dword [esi + 0x10], eax
jmp 0x5418a9
mov ecx, dword [esi + 4]
mov eax, ecx
sub eax, dword [esi + 0xa4]
movzx edx, byte [eax + edi]
movzx eax, byte [ecx + edi - 1]
add edx, eax
sar edx, 1
mov dword [esi + 0x14], edx
mov eax, dword [esi + 0xac]
dec eax
cmp edi, eax
jl 0x541850
jmp 0x5419a1
dec eax
cmp edi, eax
jge 0x5419a1
push 1
mov ecx, esi
call fcn.00541b10
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 4]
add al, byte [esi + 0x14]
mov byte [edx + ecx], al
inc dword [esi + 0x3c]
mov edi, dword [esi + 0x3c]
mov ecx, edi
mov ebx, dword [esi + 0x10]
mov eax, dword [esi + 4]
cmp edi, ebx
jne 0x541900
mov edx, dword [esi + 0xa4]
sub ecx, edx
movzx eax, byte [ecx + eax]
mov dword [esi + 0x14], eax
lea eax, [ebx + edx]
mov dword [esi + 0x10], eax
jmp 0x54190b
sub ecx, dword [esi + 0x40]
movzx eax, byte [ecx + eax - 1]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xac]
dec eax
cmp edi, eax
jl 0x5418c2
jmp 0x5419a1
mov eax, dword [esi + 0xac]
dec eax
cmp edi, eax
jge 0x5419a1
lea ebx, [ebx]
push 1
mov ecx, esi
call fcn.00541b10
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 4]
add al, byte [esi + 0x14]
mov byte [edx + ecx], al
inc dword [esi + 0x3c]
mov edi, dword [esi + 0x3c]
mov ebx, dword [esi + 0x10]
cmp edi, ebx
jne 0x54196e
mov edx, dword [esi + 0xa4]
mov ecx, edi
mov eax, dword [esi + 4]
sub ecx, edx
movzx eax, byte [ecx + eax]
mov dword [esi + 0x14], eax
lea eax, [ebx + edx]
mov dword [esi + 0x10], eax
jmp 0x541996
mov edx, dword [esi + 4]
mov eax, edx
sub eax, dword [esi + 0x44]
movzx ecx, byte [eax + edi - 1]
mov eax, edx
sub eax, dword [esi + 0x48]
sub edx, dword [esi + 0x40]
movzx eax, byte [eax + edi - 1]
sub ecx, eax
movzx eax, byte [edx + edi - 1]
sar ecx, 1
add ecx, eax
mov dword [esi + 0x14], ecx
mov eax, dword [esi + 0xac]
dec eax
cmp edi, eax
jl 0x541930
cmp dword [esi + 0x20], 1
jl 0x5419bc
mov eax, dword [esi + 0xac]
sub eax, 2
cmp eax, dword [esi + 0x9c]
jle 0x541730
push dword [esi]
call fcn.00592c4b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10