Function at 0x59e460
Capabilities:
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov esi, ecx
mov eax, dword [ecx + 0x24c]
mov dword [ebp - 0x3c], 0
test eax, eax
jne 0x59f172
mov edi, dword [esi + 4]
mov ebx, dword [esi + 0x34]
mov dword [ebp - 0x2c], 2
cmp dword [esi + 0x14], 0x1c
jb 0x59ed51
lea eax, [esi + 8]
mov dword [ebp - 0x48], eax
push eax
call fcn.005219f0
add esp, 4
mov eax, dword [esi]
cmp eax, 7
mov dword [ebp - 0x24], esi
je 0x59e8d6
mov ecx, ebx
cmp eax, 8
jne 0x59e4c8
mov ebx, edi
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
jmp 0x59e9fb
cmp eax, 9
jne 0x59e4d7
mov ebx, ecx
mov esi, dword [ebp - 0x24]
jmp 0x59e755
mov dword [ebp - 0x28], 0xffffffe1
cmp eax, 0xa
mov esi, dword [ebp - 0x24]
mov ebx, ecx
je 0x59eb08
jmp 0x59ed5d
add ecx, 8
mov dword [esi + 0xc], ecx
shr eax, 8
and eax, dword [ebx*4 + 0x7a3e80]
lea eax, [edx + eax*4]
movzx edx, word [edx + 2]
lea edx, [eax + edx*4]
mov bl, byte [edx]
jmp 0x59e53c
mov edi, dword [esi + 0x10]
movzx ebx, word [edi]
shrd eax, ebx, 0x10
mov dword [esi + 8], eax
xor ecx, 0x10
mov dword [esi + 0xc], ecx
add dword [esi + 0x14], 0xfffffffe
add edi, 2
mov dword [esi + 0x10], edi
shr eax, cl
movzx edi, al
lea edx, [edx + edi*4]
movzx ebx, byte [edx]
cmp ebx, 9
jae 0x59e4f1
mov edi, dword [ebp - 0x20]
movzx eax, bl
add eax, ecx
mov dword [esi + 0xc], eax
mov al, byte [edx + 2]
mov ecx, dword [esi + 0x60]
mov byte [ecx + edi], al
dec dword [esi + 0xc0]
inc edi
mov dword [ebp - 0x20], edi
cmp edi, dword [esi + 0x40]
je 0x59f0e5
mov bh, byte [ebp - 0x10]
mov bl, al
inc dword [ebp - 0x14]
je 0x59e745
cmp dword [esi + 0x14], 0x1b
jbe 0x59ed3b
cmp dword [esi + 0xc0], 0
je 0x59ed68
mov eax, dword [esi + 0x6c]
mov byte [ebp - 0x10], bl
movzx ecx, bl
movzx edx, bh
mov dl, byte [eax + edx + 0x100]
or dl, byte [eax + ecx]
movzx eax, dl
mov ecx, dword [esi + 0x78]
mov edx, dword [esi + 0x70]
movzx eax, byte [edx + eax]
mov edx, dword [ecx + eax*4]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
cmp ecx, 0x10
jb 0x59e52c
jmp 0x59e50f
mov ecx, esi
call fcn.005144f0
jmp 0x59e76e
mov edx, dword [esi + 0x10]
movzx eax, word [edx]
shrd ebx, eax, 0x10
mov dword [esi + 8], ebx
add dword [esi + 0x14], 0xfffffffe
xor ecx, 0x10
add edx, 2
mov eax, ebx
shr eax, cl
mov dword [esi + 0x10], edx
mov edx, ebx
movzx eax, ax
mov dword [ebp - 0x18], eax
sub ecx, 0xfffffff0
mov dword [esi + 0xc], ecx
jb 0x59e616
jmp 0x59e634
mov dword [ebp - 0x14], eax
cmp ecx, 0xf
ja 0x59e5ce
mov eax, edx
shr eax, cl
movzx eax, ax
mov dword [ebp - 0x18], eax
or ecx, 0x10
mov dword [esi + 0xc], ecx
mov eax, dword [esi + 0x10]
mov ebx, edx
movzx edx, word [eax]
shrd ebx, edx, 0x10
mov edx, ebx
mov dword [esi + 8], ebx
add dword [esi + 0x14], 0xfffffffe
xor ecx, 0x10
add eax, 2
mov dword [esi + 0x10], eax
shr edx, cl
and edx, dword [edi*4 + 0x7a3e60]
lea eax, [ecx + edi]
add eax, 0xfffffff0
mov dword [esi + 0xc], eax
shl edx, 0x10
add edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
jmp 0x59e815
add eax, 8
mov dword [esi + 0xc], eax
shr edx, 8
and edx, dword [ecx*4 + 0x7a3e80]
lea ecx, [edi + edx*4]
movzx edx, word [edi + 2]
lea edi, [ecx + edx*4]
mov cl, byte [edi]
jmp 0x59e7a5
lea edi, [eax - 0xa]
mov ecx, eax
add ecx, 0xfffffffc
xor edx, edx
cmp ax, 0xa
setb dl
cmovae ecx, edi
shl ecx, 2
mov eax, 0x605142
shr eax, cl
and eax, 7
mov ecx, dword [esi + 0x48]
add ecx, edx
add ecx, 2
and ecx, 3
mov ecx, dword [esi + ecx*4 + 0x4c]
add eax, ecx
add eax, 0xfffffffd
test eax, eax
mov edx, SysReAllocString
cmovg edx, eax
mov dword [esi + 0x10c], edx
xor edi, edi
jmp 0x59e6f5
mov dword [esi + 0x10c], eax
cmp ax, 3
ja 0x59e678
mov edx, eax
not edx
xor edi, edi
inc edi
mov ecx, eax
shr edi, cl
mov dword [esi + 0xb4], edi
mov eax, dword [esi + 0x48]
add edx, eax
and edx, 3
mov edx, dword [esi + edx*4 + 0x4c]
mov dword [esi + 0x10c], edx
sub eax, edi
mov dword [esi + 0x48], eax
mov ebx, dword [ebp - 0x10]
jmp 0x59e82c
mov ecx, dword [esi + 0x10]
mov ebx, edx
movzx edx, word [ecx]
shrd ebx, edx, 0x10
mov edx, ebx
mov dword [esi + 8], ebx
xor eax, 0x10
mov dword [esi + 0xc], eax
add dword [esi + 0x14], 0xfffffffe
add ecx, 2
mov dword [esi + 0x10], ecx
jmp 0x59e78d
sete al
movzx edi, al
mov dword [esi + 0xb4], edi
mov eax, dword [esi + 0x48]
dec eax
mov dword [esi + 0x48], eax
and eax, 3
mov edx, dword [esi + eax*4 + 0x4c]
mov dword [esi + 0x10c], edx
jmp 0x59e82c
cmp dword [esi + 0xb8], 0
jle 0x59f127
mov ebx, dword [ebp - 0x20]
cmp dword [esi + 0x10c], 0
mov dword [ebp - 0x10], ebx
jns 0x59e720
cmp dword [esi + 0xc8], 0
je 0x59e5c2
mov eax, dword [esi + 0x98]
movzx ecx, byte [esi + 0x104]
mov edi, dword [eax + ecx*4]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
cmp eax, 0x10
jae 0x59e6fd
mov ebx, edx
mov ecx, eax
shr edx, cl
movzx ecx, dl
lea edi, [edi + ecx*4]
movzx ecx, byte [edi]
cmp ecx, 9
jae 0x59e657
movzx ecx, cl
add ecx, eax
mov dword [esi + 0xc], ecx
movzx eax, word [edi + 2]
dec dword [esi + 0xc8]
mov dword [esi + 0xb4], 0
cmp eax, 0xf
jbe 0x59e6c1
mov edx, ebx
movzx edi, byte [esi + eax + 0x270]
cmp edi, 0x10
ja 0x59e5fe
cmp ecx, 0x10
jb 0x59e804
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
movzx eax, word [edx]
shrd ebx, eax, 0x10
mov eax, dword [ebp - 0x14]
mov dword [esi + 8], ebx
add dword [esi + 0x14], 0xfffffffe
xor ecx, 0x10
add edx, 2
mov dword [esi + 0x10], edx
mov edx, ebx
mov ebx, dword [ebp - 0x10]
shr edx, cl
and edx, dword [edi*4 + 0x7a3ea0]
add ecx, edi
mov dword [esi + 0xc], ecx
mov cl, byte [esi + 0xf0]
shl edx, cl
add edx, dword [esi + eax*4 + 0x490]
mov dword [esi + 0x10c], edx
xor edi, edi
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x3c]
cmp eax, ecx
je 0x59e840
cmp ebx, ecx
cmovl ecx, ebx
mov dword [esi + 0x3c], ecx
mov eax, ecx
mov ebx, dword [esi + 0x108]
mov ecx, edx
sub ecx, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edx
jg 0x59eb46
mov ecx, dword [ebp - 0x10]
sub ecx, edx
and ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
mov edi, dword [esi + 0x60]
mov dword [ebp - 0x1c], edi
mov edi, edx
and edi, 3
mov eax, dword [ebp - 0x18]
mov dword [esi + edi*4 + 0x4c], eax
mov eax, ecx
mov ecx, dword [ebp - 0x10]
lea edi, [ebx + ecx]
inc edx
mov dword [esi + 0x48], edx
sub dword [esi + 0xb8], ebx
lea edx, [eax + ebx]
mov ebx, dword [ebp - 0x1c]
movups xmm0, xmmword [ebx + eax]
movups xmmword [ebx + ecx], xmm0
cmp edx, ecx
setg bl
cmp edi, eax
setg bh
test bl, bh
jne 0x59eb02
mov ebx, edi
mov edi, dword [esi + 0x40]
cmp ebx, edi
jge 0x59eb02
cmp edx, edi
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
jge 0x59eee2
cmp edi, 0x11
jge 0x59ead0
cmp dword [esi + 0xb8], 0
jle 0x59eef2
mov ecx, dword [esi + 0x14]
cmp ecx, 0x1c
jb 0x59ed4b
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x59eb3a
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ebx
mov edi, dword [esi + 0x68]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
cmp eax, 0x10
jb 0x59e92c
mov ecx, dword [esi + 0x10]
movzx ebx, word [ecx]
shrd edx, ebx, 0x10
mov dword [esi + 8], edx
xor eax, 0x10
mov dword [esi + 0xc], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0xfffffffe
mov dword [ebp - 0x10], ebx
mov dword [esi + 0x14], ebx
add ecx, 2
mov dword [esi + 0x10], ecx
mov ebx, edx
mov ecx, eax
shr ebx, cl
movzx ecx, bl
lea edi, [edi + ecx*4]
movzx ecx, byte [edi]
cmp ecx, 9
mov dword [ebp - 0x28], edx
jae 0x59ea5b
movzx ecx, cl
add ecx, eax
mov dword [ebp - 0x18], ecx
mov dword [esi + 0xc], ecx
movzx edi, word [edi + 2]
movzx ecx, byte [edi*8 + 0x79f4e2]
movzx eax, byte [edi*8 + 0x79f4e3]
mov dword [ebp - 0x14], eax
movsx ebx, byte [edi*8 + 0x79f4e4]
movzx eax, byte [edi*8 + 0x79f4e5]
mov edx, esi
movzx esi, word [edi*8 + 0x79f4e6]
mov dword [ebp - 0x34], esi
mov esi, edx
movzx edx, word [edi*8 + 0x79f4e8]
mov dword [ebp - 0x30], edx
mov dword [esi + 0x10c], ebx
mov dword [esi + 0xb4], eax
mov edi, dword [esi + 0x74]
mov al, byte [edi + eax]
mov byte [esi + 0x104], al
xor ebx, ebx
test ecx, ecx
jne 0x59ea7c
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
cmp al, 0x10
ja 0x59ed87
cmp ecx, 0x10
jae 0x59ea34
shr edx, cl
and edx, dword [eax*4 + 0x7a3ea0]
add ecx, eax
mov dword [esi + 0xc], ecx
add edx, dword [ebp - 0x30]
mov dword [esi + 0x108], edx
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [esi + 0xc4], eax
add ebx, dword [ebp - 0x34]
je 0x59e752
sub dword [esi + 0xb8], ebx
mov eax, dword [esi + 0xb0]
test eax, eax
jne 0x59ec7e
mov eax, dword [esi + 0x44]
mov edx, dword [ebp - 0x20]
lea ecx, [edx - 1]
and ecx, eax
add edx, 0xfffffffe
and edx, eax
mov eax, dword [esi + 0x60]
mov cl, byte [eax + ecx]
mov byte [ebp - 0x10], cl
mov ecx, ebx
mov bl, byte [ebp - 0x10]
mov bh, byte [eax + edx]
neg ecx
mov dword [ebp - 0x14], ecx
jmp 0x59e571
mov eax, dword [esi + 0x10]
movzx edi, word [eax]
shrd edx, edi, 0x10
mov dword [esi + 8], edx
mov edi, dword [ebp - 0x10]
add edi, 0xfffffffe
mov dword [esi + 0x14], edi
add eax, 2
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x14]
xor ecx, 0x10
jmp 0x59e9cb
add eax, 8
mov dword [esi + 0xc], eax
shr ebx, 8
and ebx, dword [ecx*4 + 0x7a3e80]
lea ecx, [edi + ebx*4]
movzx edi, word [edi + 2]
lea edi, [ecx + edi*4]
mov cl, byte [edi]
jmp 0x59e947
mov dword [ebp - 0x38], ecx
cmp cl, 0x10
mov edx, dword [ebp - 0x28]
ja 0x59ee0b
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x59eab5
mov eax, dword [esi + 0x10]
movzx edi, word [eax]
shrd edx, edi, 0x10
mov dword [esi + 8], edx
mov edi, dword [ebp - 0x10]
add edi, 0xfffffffe
mov dword [ebp - 0x10], edi
mov dword [esi + 0x14], edi
add eax, 2
mov dword [esi + 0x10], eax
xor ecx, 0x10
mov ebx, edx
shr ebx, cl
mov eax, dword [ebp - 0x38]
and ebx, dword [eax*4 + 0x7a3ea0]
add ecx, eax
mov dword [esi + 0xc], ecx
mov eax, dword [ebp - 0x14]
jmp 0x59e9be
mov ecx, dword [ebp - 0x1c]
add edx, ecx
add eax, ecx
cmp edi, 0x21
jae 0x59eae9
movups xmm0, xmmword [eax + 0x10]
movups xmmword [edx + 0x10], xmm0
jmp 0x59e8c9
add edx, 0x10
add eax, 0x10
lea ecx, [edi - 0x10]
push ecx
push eax
push edx
call fcn.005c9580
add esp, 0xc
jmp 0x59e8c9
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov eax, dword [esi + 0x40]
mov ecx, edi
mov edi, ecx
test ecx, ecx
jle 0x59eb34
mov ecx, ebx
sub ecx, dword [esi + 0x10c]
mov edx, dword [esi + 0x60]
and ecx, dword [esi + 0x44]
mov cl, byte [edx + ecx]
mov byte [edx + ebx], cl
inc ebx
lea ecx, [edi - 1]
cmp eax, ebx
jne 0x59eb0d
jmp 0x59eee9
dec edi
jmp 0x59e8c9
mov ecx, esi
call fcn.00514010
jmp 0x59e8d6
cmp edx, 0x7ffffffc
jg 0x59f0fb
mov ebx, dword [ebp - 0x3c]
sub ebx, ecx
mov esi, dword [ebp - 0x24]
jge 0x59ef66
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffffc
mov dword [ebp - 0x28], 0xfffffff4
cmp ecx, 0x1b
ja 0x59ed5d
mov edx, dword [esi + 0x248]
xor ecx, ecx
cmp dword [edx + 0x7c], 0
mov dword [ebp - 0x30], edx
jne 0x59f13a
movzx ecx, cl
mov dword [ebp - 0x20], ecx
mov ecx, dword [edx + ecx*4 + 0xc4]
mov edx, dword [ebp - 0x14]
movzx ebx, byte [ecx + edx]
mov dword [ebp - 0x34], ebx
not eax
mov ebx, dword [ebp - 0x18]
sub ebx, dword [ebp - 0x3c]
add ebx, eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax*4 + 0x7a3ea0]
and eax, ebx
imul eax, edx
mov dword [ebp - 0x1c], ecx
add eax, dword [ecx + edx*4 + 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + eax*4 + 0x1c4]
add dword [esi + 0x48], edi
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0x34]
sar ebx, cl
mov ecx, eax
mov eax, dword [eax + 0xc]
mov edi, eax
cmp ebx, eax
jge 0x59f033
mov eax, dword [ebp - 0x1c]
cmp byte [eax + edx], 0
je 0x59f033
mov eax, ecx
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x14]
cmp byte [ecx + edi], 0
je 0x59ed5d
mov ecx, dword [ecx + 0xa4]
test ecx, ecx
je 0x59f107
mov dword [ebp - 0x28], 0xfffffff5
cmp ebx, dword [eax + 0xc]
jge 0x59ed5d
add ecx, dword [ebp - 0x38]
movsx edx, word [eax + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x60]
add eax, dword [ebp - 0x10]
cmp ebx, edx
je 0x59ec6f
push ebx
push dword [ebp - 0x18]
push edi
push ecx
push eax
call fcn.005bdc80
add esp, 0x14
test eax, eax
je 0x59f113
sub dword [esi + 0xb8], eax
mov ecx, dword [ebp - 0x10]
add ecx, eax
cmp ecx, dword [esi + 0x40]
jge 0x59f020
mov ebx, ecx
jmp 0x59e8c9
push edi
push ecx
push eax
call fcn.005c9580
add esp, 0xc
mov eax, edi
jmp 0x59ec54
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
cmp ecx, 0x18
mov dword [ebp - 0x14], ebx
jae 0x59f1e7
mov edx, dword [esi + 0x100]
shr eax, cl
movzx eax, al
mov bl, byte [edx + eax*4]
movzx edx, word [edx + eax*4 + 2]
neg dword [ebp - 0x14]
jmp 0x59ecf9
mov edx, dword [esi + 0x10]
mov edi, dword [edx]
shrd ebx, edi, 0x18
mov edi, dword [ebp - 0x20]
mov dword [esi + 8], ebx
xor ecx, 0x18
mov dword [esi + 0xc], ecx
add dword [esi + 0x14], 0xfffffffd
add edx, 3
mov dword [esi + 0x10], edx
shr ebx, cl
movzx ecx, bl
mov edx, dword [ebp - 0x10]
mov bl, byte [edx + ecx*4]
movzx edx, word [edx + ecx*4 + 2]
mov ecx, dword [esi + 0x60]
mov byte [ecx + edi], al
dec dword [esi + 0xc0]
inc edi
mov dword [ebp - 0x20], edi
cmp edi, dword [esi + 0x40]
je 0x59f0e5
inc dword [ebp - 0x14]
je 0x59e745
cmp dword [esi + 0x14], 0x1b
jbe 0x59ed3b
cmp dword [esi + 0xc0], 0
je 0x59f17d
mov eax, dword [esi + 0x100]
mov dword [ebp - 0x10], eax
movzx edi, bl
mov ecx, dword [esi + 0xc]
cmp bl, 9
jae 0x59ee8d
add ecx, edi
mov dword [esi + 0xc], ecx
mov ebx, dword [esi + 8]
mov eax, edx
cmp ecx, 0x18
mov edi, dword [ebp - 0x20]
jb 0x59ecc7
jmp 0x59eca8
mov dword [esi], 8
mov edi, dword [ebp - 0x14]
neg edi
mov ebx, dword [ebp - 0x20]
jmp 0x59ed51
mov dword [esi], 7
mov dword [esi + 0x34], ebx
mov dword [esi + 4], edi
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.00514240
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x59e588
mov ebx, dword [ebp - 0x14]
neg ebx
jmp 0x59ea01
cmp ecx, 0x10
jb 0x59edae
mov eax, dword [esi + 0x10]
movzx edi, word [eax]
shrd edx, edi, 0x10
mov dword [esi + 8], edx
mov edi, dword [ebp - 0x10]
add edi, 0xfffffffe
mov dword [ebp - 0x10], edi
mov dword [esi + 0x14], edi
add eax, 2
mov dword [esi + 0x10], eax
xor ecx, 0x10
mov eax, edx
shr eax, cl
movzx eax, ax
add ecx, 0x10
mov dword [esi + 0xc], ecx
cmp ecx, 0x18
jae 0x59edde
shr edx, cl
mov edi, dword [ebp - 0x14]
and edx, dword [edi*4 + 0x7a3e60]
add ecx, edi
add ecx, 0xfffffff0
mov dword [esi + 0xc], ecx
shl edx, 0x10
or edx, eax
jmp 0x59e9d9
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x18], edi
mov esi, ebx
mov ebx, dword [edi]
shrd edx, ebx, 0x18
mov ebx, esi
mov esi, dword [ebp - 0x24]
mov dword [esi + 8], edx
mov edi, dword [ebp - 0x10]
add edi, 0xfffffffd
mov dword [esi + 0x14], edi
mov edi, dword [ebp - 0x18]
add edi, 3
mov dword [esi + 0x10], edi
xor ecx, 0x18
jmp 0x59edc0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x59ee35
mov eax, dword [esi + 0x10]
movzx edi, word [eax]
shrd edx, edi, 0x10
mov dword [esi + 8], edx
mov edi, dword [ebp - 0x10]
add edi, 0xfffffffe
mov dword [ebp - 0x10], edi
mov dword [esi + 0x14], edi
add eax, 2
mov dword [esi + 0x10], eax
xor ecx, 0x10
mov eax, edx
shr eax, cl
movzx edi, ax
add ecx, 0x10
mov dword [esi + 0xc], ecx
cmp ecx, 0x18
jae 0x59f208
mov ebx, edx
shr ebx, cl
mov eax, dword [ebp - 0x38]
and ebx, dword [eax*4 + 0x7a3e60]
add ecx, eax
add ecx, 0xfffffff0
shl ebx, 0x10
or ebx, edi
jmp 0x59eac5
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
shrd ebx, eax, 0x10
mov dword [esi + 8], ebx
add dword [esi + 0x14], 0xfffffffe
xor ecx, 0x10
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [esi + 0x10], eax
jmp 0x59ee97
mov eax, dword [ebp - 0x48]
mov ebx, dword [eax]
cmp ecx, 0x10
jae 0x59ee68
movzx eax, dx
mov dword [ebp - 0x18], eax
mov eax, ebx
shr eax, cl
mov dword [ebp - 0x1c], eax
movzx edx, al
mov eax, dword [ebp - 0x10]
lea edx, [eax + edx*4]
mov eax, dword [ebp - 0x18]
lea eax, [edx + eax*4]
mov dword [ebp - 0x18], eax
lea edx, [ecx + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebp - 0x1c]
shr eax, 8
and eax, dword [edi*4 + 0x7a3e80]
mov edi, dword [ebp - 0x18]
movzx edx, byte [edi + eax*4]
add ecx, edx
add ecx, 8
mov dword [esi + 0xc], ecx
movzx eax, word [edi + eax*4 + 2]
jmp 0x59ed2e
mov ebx, edx
jmp 0x59eb08
mov dword [esi], 0x10
dec edi
jmp 0x59eef8
mov dword [esi], 0xe
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
jmp 0x59ed51
mov esi, dword [edi + 4]
lea edx, [esi - 1]
xor ecx, ecx
dec ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, eax
add cl, 9
mov ebx, edx
sar ebx, cl
inc eax
mov dword [ebp - 0x1c], eax
test ebx, ebx
jne 0x59ef0f
mov ecx, dword [ebp - 0x1c]
mov dword [edi + 0x98], ecx
test esi, esi
jle 0x59ef7d
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x1c]
shl esi, cl
xor eax, eax
xor edx, edx
dec eax
mov ecx, eax
inc eax
cmp dword [edi + ecx*4 + 0x60], edx
jl 0x59ef3d
mov ebx, edx
mov ecx, dword [ebp - 0x1c]
sar ebx, cl
mov byte [edi + ebx + 0x9c], al
add edx, esi
cmp edx, dword [edi + 4]
jl 0x59ef3c
mov eax, dword [edi + 0x98]
mov dword [ebp - 0x1c], eax
jmp 0x59ef7d
mov dword [ebp - 0x18], ebx
mov edi, dword [esi + 0x24c]
mov ecx, dword [edi + 0x98]
mov dword [ebp - 0x1c], ecx
cmp ecx, 0xffffffff
je 0x59ef03
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sar eax, cl
movzx eax, byte [edi + eax + 0x9c]
dec eax
mov edx, dword [ebp - 0x18]
mov ecx, eax
inc eax
cmp dword [edi + ecx*4 + 0x60], edx
jle 0x59ef91
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add ecx, edx
cmp dword [edi + 4], ecx
jl 0x59f000
mov esi, dword [ebp - 0x24]
mov ecx, dword [esi + 0x48]
mov edx, ecx
and edx, 3
mov ebx, dword [esi + 0x10c]
mov dword [esi + edx*4 + 0x4c], ebx
inc ecx
mov dword [esi + 0x48], ecx
mov ecx, dword [ebp - 0x14]
sub dword [esi + 0xb8], ecx
mov dword [edi + 8], eax
mov edx, dword [ebp - 0x18]
sub edx, dword [edi + eax*4 + 0x58]
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0
mov ecx, esi
mov edi, dword [ebp - 0x10]
mov edx, edi
call fcn.007001e0
add eax, edi
mov ecx, eax
cmp eax, dword [esi + 0x40]
jge 0x59f00c
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
jmp 0x59ec68
mov dword [ebp - 0x28], 0xffffffee
jmp 0x59ed5d
mov esi, dword [ebp - 0x24]
mov dword [esi], 0xf
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp - 0x14]
jmp 0x59f02c
mov dword [esi], 0xf
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
mov ebx, ecx
jmp 0x59ed51
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 0xc0]
cmp eax, 2
jae 0x59f059
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x44]
jmp 0x59ebfe
mov esi, eax
xor edx, edx
inc edx
mov ecx, dword [ebp - 0x34]
shl edx, cl
and edx, 0xfffffffe
imul edi, edx
sub dword [ebp - 0x18], edi
xor ebx, ebx
jmp 0x59f07f
mov edx, dword [ebp - 0x18]
mov eax, ebx
inc eax
mov dword [ebp - 0x18], edx
mov ebx, eax
cmp esi, eax
je 0x59f048
cmp dword [ebp - 0x20], ebx
je 0x59f070
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + ebx*4 + 0xc4]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
movzx ecx, byte [eax + ecx]
test ecx, ecx
je 0x59f070
mov edx, dword [ebp - 0x30]
mov edx, dword [edx + ebx*4 + 0x1c4]
xor edi, edi
inc edi
shl edi, cl
and edi, 0xfffffffe
mov eax, edx
imul edi, dword [edx + 0xc]
mov edx, dword [ebp - 0x18]
sub edx, edi
jge 0x59f073
mov edx, dword [ecx*4 + 0x7a3ea0]
mov edi, dword [ebp - 0x18]
and edx, edi
sar edi, cl
mov ecx, dword [ebp - 0x14]
imul edx, ecx
mov ebx, dword [ebp - 0x34]
add edx, dword [ebx + ecx*4 + 0x20]
mov ecx, ebx
mov dword [ebp - 0x38], edx
mov ebx, edi
mov esi, dword [ebp - 0x24]
jmp 0x59ebfe
mov dword [esi], 0xd
mov edi, dword [ebp - 0x14]
not edi
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
jmp 0x59ed46
mov dword [ebp - 0x28], 0xfffffff0
jmp 0x59ed5d
mov dword [ebp - 0x28], 0xffffffed
jmp 0x59ed5d
xor eax, eax
cmp dword [esi + 0x10c], 0x79
jge 0x59ec54
jmp 0x59ed5d
mov dword [esi], 0xe
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
xor edi, edi
jmp 0x59ed46
mov ebx, dword [esi + 0x44]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx - 2]
and edx, ebx
dec ecx
and ecx, ebx
mov ebx, dword [esi + 0x60]
movzx edx, byte [ebx + edx]
movzx ebx, byte [ebx + ecx]
mov ecx, dword [esi + 0x6c]
mov dl, byte [ecx + edx + 0x100]
or dl, byte [ecx + ebx]
movzx ecx, dl
mov edx, dword [ebp - 0x30]
mov cl, byte [edx + ecx + 0x80]
jmp 0x59eb8b
mov eax, dword [eax + 4]
mov dword [ebp - 0x3c], eax
jmp 0x59e480
mov ecx, esi
call fcn.00514240
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
cmp ecx, 0x18
jb 0x59f1ae
mov esi, dword [ebp - 0x24]
mov edx, dword [esi + 0x10]
mov edi, dword [edx]
shrd eax, edi, 0x18
mov dword [esi + 8], eax
xor ecx, 0x18
mov dword [esi + 0xc], ecx
add dword [esi + 0x14], 0xfffffffd
add edx, 3
mov dword [esi + 0x10], edx
shr eax, cl
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0xb0], 0
je 0x59f1d8
mov esi, dword [ebp - 0x24]
mov ecx, dword [esi + 0x100]
movzx eax, al
mov bl, byte [ecx + eax*4]
mov dword [ebp - 0x10], ecx
movzx edx, word [ecx + eax*4 + 2]
jmp 0x59ed15
mov ebx, dword [ebp - 0x14]
neg ebx
xor eax, eax
mov esi, dword [ebp - 0x24]
jmp 0x59ea01
mov edx, dword [esi + 0x10]
mov edi, dword [edx]
shrd eax, edi, 0x18
mov dword [esi + 8], eax
xor ecx, 0x18
mov dword [esi + 0xc], ecx
add dword [esi + 0x14], 0xfffffffd
add edx, 3
mov dword [esi + 0x10], edx
jmp 0x59ec90
mov eax, dword [esi + 0x10]
mov ebx, edi
mov edi, dword [eax]
shrd edx, edi, 0x18
mov dword [esi + 8], edx
mov edi, dword [ebp - 0x10]
add edi, 0xfffffffd
mov dword [ebp - 0x10], edi
mov dword [esi + 0x14], edi
mov edi, ebx
add eax, 3
mov dword [esi + 0x10], eax
xor ecx, 0x18
jmp 0x59ee4b