Function at 0x5bf100
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x652518
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x16c
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov al, byte [esi + 0x31f1]
mov dword [esp + 0x34], ebx
cmp al, bl
je 0x5bf24f
fld qword [esi + 0x31e0]
fcomp qword [0x659b60]
fnstsw ax
test ah, 0x40
je 0x5bf24f
lea eax, [esp + 0x34]
lea ecx, [esp + 0x20]
push eax
lea ebp, [esi + 0x10]
push 0xd
push ecx
mov ecx, ebp
mov byte [esp + 0x2c], 0x46
mov byte [esp + 0x2d], 0x4c
mov byte [esp + 0x2e], 0x56
mov byte [esp + 0x2f], 1
mov byte [esp + 0x30], 5
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], bl
mov byte [esp + 0x33], bl
mov byte [esp + 0x34], 9
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], bl
mov byte [esp + 0x37], bl
mov byte [esp + 0x38], bl
mov dword [esp + 0x1c], 0xd
call fcn.00570a60
mov edi, eax
mov eax, dword [esp + 0x34]
cmp eax, 0xd
jne 0x5bffc9
mov eax, dword [esi + 0xb0]
mov edx, dword [eax + 0x3a8]
mov ecx, dword [eax + 0x3ac]
or edx, ecx
jne 0x5bf1f4
fld qword [eax + 0x378]
fcomp qword [0x659b60]
fnstsw ax
test ah, 0x41
je 0x5bf1f4
mov ecx, dword [esi + 0x31dc]
push 2
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi + 0x31dc]
call fcn.005c45d0
mov edx, dword [esi + 0x68]
mov ecx, 0xd
add edx, ecx
mov byte [esi + 0x31f1], bl
mov dword [esi + 0x68], edx
mov eax, dword [esi + 0x6c]
mov edx, dword [esi + 0x70]
adc eax, ebx
add edx, ecx
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], edx
mov eax, dword [esi + 0x74]
adc eax, ebx
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
add edx, ecx
mov dword [eax], edx
mov edx, dword [eax + 4]
adc edx, ebx
mov dword [eax + 4], edx
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
add edx, ecx
mov dword [eax], edx
mov ecx, dword [eax + 4]
adc ecx, ebx
cmp edi, ebx
mov dword [eax + 4], ecx
je 0x5bffc9
mov edi, dword [esp + 0x190]
mov edx, dword [esp + 0x18c]
lea ecx, [esp + 0x34]
lea ebp, [esi + 0x10]
push ecx
push edi
push edx
mov ecx, ebp
mov dword [esp + 0x1c], edi
call fcn.00570a60
cmp eax, ebx
je 0x5bffc9
cmp edi, dword [esp + 0x34]
jne 0x5bffc9
mov eax, dword [esi + 0x49ac]
mov ecx, dword [esi + 0x49a8]
add eax, 0x96000
cmp ecx, eax
jle 0x5bf2a0
mov ecx, esi
call fcn.005c07f0
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x70]
xor eax, eax
add ecx, edi
mov dword [esi + 0x68], ecx
mov ebp, dword [esi + 0x6c]
adc ebp, eax
add edx, edi
mov dword [esi + 0x70], edx
mov ecx, dword [esi + 0x74]
adc ecx, eax
mov dword [esi + 0x6c], ebp
mov dword [esi + 0x74], ecx
mov ecx, dword [esi + 0x94]
mov ebp, dword [ecx]
add ebp, edi
mov dword [ecx], ebp
mov edx, dword [ecx + 4]
adc edx, eax
mov dword [ecx + 4], edx
mov ecx, dword [esi + 0x98]
mov ebp, dword [ecx]
add ebp, edi
lea edi, [esi + 0x424]
mov dword [ecx], ebp
mov edx, dword [ecx + 4]
adc edx, eax
push edi
mov dword [ecx + 4], edx
call fcn.0060b5c4
mov eax, dword [edi]
mov ecx, dword [esi + 0x418]
mov edi, dword [esi + 0xb0]
add esp, 4
sub eax, ecx
mov dword [esi + 0x430], eax
mov dword [esp + 0x30], eax
je 0x5bf3c1
mov ebp, dword [edi + 0x47c]
cmp ebp, ebx
mov dword [esp + 0x1c], ebp
je 0x5bf399
fild dword [esp + 0x1c]
lea ecx, [ebp + 1]
fstp qword [esp + 0x38]
fild dword [esp + 0x30]
mov dword [esp + 0x30], ecx
fstp qword [esp + 0x20]
fild dword [esp + 0x30]
fst qword [esp + 0x78]
fld qword [esp + 0x38]
fmul qword [edi + 0x450]
fadd qword [esp + 0x20]
fdivrp st(1)
fst qword [esp + 0x80]
fstp qword [edi + 0x450]
fld qword [esp + 0x20]
fsub qword [esp + 0x80]
fld qword [0x663828]
call fcn.0060c070
fdiv qword [esp + 0x78]
fld qword [esp + 0x38]
fmul qword [edi + 0x460]
fdiv qword [esp + 0x78]
faddp st(1)
fstp qword [edi + 0x460]
fld qword [esp + 0x20]
jmp 0x5bf3a3
fild dword [esp + 0x30]
fst qword [edi + 0x450]
fcom qword [edi + 0x470]
fnstsw ax
test ah, 0x41
jne 0x5bf3b8
fstp qword [edi + 0x470]
jmp 0x5bf3ba
fstp st(0)
inc ebp
mov dword [edi + 0x47c], ebp
mov ecx, esi
call fcn.00569ea0
mov al, byte [esi + 0x31ec]
mov dword [esi + 0xa4], ebx
cmp al, bl
jne 0x5bf402
mov edx, dword [esi + 0xd4]
mov ecx, dword [esi + 0x49e0]
sub edx, ecx
mov eax, dword [esi + 0x31e8]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ebx
fild qword [esp + 0x20]
fmul qword [0x663820]
fadd qword [eax]
fstp qword [eax]
mov cl, byte [esi + 0x31ec]
mov eax, dword [esi + 0xd4]
mov edi, dword [esi + 0x49e0]
cmp cl, bl
mov dword [esi + 0x49e0], eax
jne 0x5bf4e7
mov ecx, dword [esi + 0x90]
mov edx, dword [ecx + 0x58]
cmp edx, ebx
je 0x5bf493
mov edx, dword [edx + 0x1c]
cmp eax, edx
jb 0x5bf4e7
cmp edi, edx
jae 0x5bf45e
mov ecx, dword [esi + 0x31e8]
sub eax, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
fld qword [ecx]
fild qword [esp + 0x20]
fmul qword [0x663820]
fsubp st(1)
fstp qword [ecx]
mov eax, dword [esi + 0x90]
push 1
mov ecx, dword [eax + 0x58]
mov edx, dword [ecx + 0x1c]
mov byte [esi + 0x31ec], 1
mov dword [esi + 0x3228], edx
mov eax, dword [0x6fd40c]
push eax
mov ecx, esi
call fcn.00567980
mov ecx, dword [esi + 0x31dc]
call fcn.005c3700
jmp 0x5bf4e7
mov edx, dword [ecx + 0x20]
cmp edx, ebx
je 0x5bf4e7
cmp eax, edx
jb 0x5bf4e7
cmp edi, edx
jae 0x5bf4c2
mov ecx, dword [esi + 0x31e8]
sub eax, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
fld qword [ecx]
fild qword [esp + 0x20]
fmul qword [0x663820]
fsubp st(1)
fstp qword [ecx]
mov ecx, dword [esi + 0x90]
mov byte [esi + 0x31ec], 1
push 1
mov edx, dword [ecx + 0x20]
mov ecx, esi
mov dword [esi + 0x3228], edx
mov eax, dword [0x6fd40c]
push eax
call fcn.00567980
mov edx, dword [esi + 0x4a00]
mov eax, dword [esi + 0x49f8]
mov ebp, dword [esi + 0x4a04]
lea edi, [esi + 0x4a00]
cmp edx, eax
jne 0x5bf50f
cmp ebp, dword [esi + 0x49fc]
je 0x5bffc5
mov ecx, dword [esi + 0x4a0c]
xor eax, eax
add ecx, edx
mov edx, dword [esi + 0x6c]
adc eax, ebp
add ecx, 0xf
adc eax, ebx
cmp edx, eax
jl 0x5bffc5
jg 0x5bf538
mov eax, dword [esi + 0x68]
cmp eax, ecx
jb 0x5bffc5
mov ecx, dword [esi + 0x90]
push edi
mov edx, dword [ecx + 0x60]
mov ecx, dword [esi + 0x31dc]
push edx
call fcn.005c3e90
mov ecx, dword [edi]
mov ebp, dword [edi + 4]
mov eax, dword [esi + 0x90]
mov dword [esi + 0x49f8], ecx
mov dword [esi + 0x49fc], ebp
mov edx, dword [eax + 0x58]
cmp edx, ebx
je 0x5bf725
mov ebp, dword [esi + 0xd4]
cmp ebp, dword [edx + 0x1c]
jb 0x5bffc5
mov eax, dword [eax + 0x58]
lea edx, [esp + 0x10]
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [esi + 0x4a0c]
add eax, 0xf
push edx
push eax
mov eax, dword [edi + 4]
push eax
push ecx
mov ecx, dword [esi + 0x4a08]
push ecx
mov ecx, esi
call fcn.005c21b0
test eax, eax
je 0x5bf63f
mov edx, dword [esi + 0x3224]
mov eax, dword [esi + 0x4a0c]
lea ecx, [edx + eax + 0xf]
mov edx, dword [esi + 0x90]
mov eax, dword [edx + 0x58]
mov dword [eax + 0x24], ecx
mov ecx, dword [esi + 0x90]
mov ecx, dword [ecx + 0x58]
call fcn.00567880
mov edx, dword [esi + 0x4a0c]
mov ebp, dword [edi]
mov ecx, edx
xor eax, eax
add ecx, ebp
mov ebp, dword [edi + 4]
adc eax, ebp
add ecx, 0xf
adc eax, ebx
mov ebx, dword [esi + 0x6c]
cmp ebx, eax
jl 0x5bf617
jg 0x5bf602
mov eax, dword [esi + 0x68]
cmp eax, ecx
jbe 0x5bf617
mov ecx, dword [esi + 0x68]
mov ebx, dword [edi]
sub ecx, ebx
sub ecx, edx
sub ecx, 0xf
push ecx
lea ecx, [esi + 0x10]
call fcn.005706f0
mov edx, dword [esi + 0xb0]
push 1
mov byte [edx + 0x311], 1
mov ecx, dword [esi + 0x31dc]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, esi
call fcn.005c1eb0
xor eax, eax
jmp 0x5c003e
cmp dword [esp + 0x10], ebx
je 0x5bf653
mov ecx, esi
call fcn.005bee50
xor eax, eax
jmp 0x5c003e
mov ecx, dword [esi + 0x4a20]
inc ecx
mov eax, ecx
mov dword [esi + 0x4a20], ecx
cmp eax, 0xa
jle 0x5bffc5
mov ecx, dword [esi + 0xb0]
cmp byte [ecx + 0x311], bl
jne 0x5bffc5
mov edx, dword [esi + 0x31dc]
cmp dword [edx + 0x134], ebx
jne 0x5bffc5
push str.cmpkfcount___MAX_CMP_KEYFRAMES__set_NO_REST_n
mov ecx, esi
call fcn.00567a50
mov ecx, dword [esi + 0x31dc]
push 2
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi + 0x90]
xor edi, edi
mov edx, dword [ecx + 0x58]
mov ebp, dword [edx]
cmp ebp, ebx
je 0x5bf6d1
mov edi, dword [ebp + 0xd4]
cmp edi, ebx
jne 0x5bf6d1
mov edi, dword [ebp + 0xd8]
mov eax, dword [ebp + 0xd0]
add edi, eax
mov ecx, esi
call fcn.005bee50
cmp ebp, ebx
je 0x5bffc5
mov dword [ebp + 0x8c], 0xe
mov dword [ebp + 0x84], ebx
mov eax, dword [esi + 0xd4]
cmp eax, edi
jae 0x5bffc5
mov esi, dword [esi + 0x31e8]
sub edi, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
fld qword [esi]
fild qword [esp + 0x20]
xor eax, eax
fmul qword [0x663820]
fsubp st(1)
fstp qword [esi]
jmp 0x5c003e
mov edx, dword [eax + 0x20]
cmp edx, ebx
je 0x5bffc5
cmp dword [esi + 0xd4], edx
jb 0x5bffc5
mov edx, dword [eax + 0x2c]
cmp edx, ebx
je 0x5bf747
mov eax, edx
jmp 0x5bf74a
add eax, 0x30
lea edx, [esp + 0x88]
push edx
push eax
mov eax, dword [esi + 0x4a0c]
add eax, 0xf
push eax
push ebp
push ecx
mov ecx, dword [esi + 0x4a08]
push ecx
mov ecx, esi
call fcn.005c21b0
test eax, eax
je 0x5bf8a6
mov edx, dword [esi + 0x3224]
mov eax, dword [esi + 0x4a0c]
mov ecx, dword [0x6f7b78]
lea ebp, [edx + eax + 0xf]
mov dword [esp + 0x10], ecx
mov edx, dword [esi + 0x90]
lea ecx, [esp + 0x10]
mov dword [esp + 0x184], ebx
mov eax, dword [edx + 0x28]
push eax
push 0x6c9150
push ecx
call fcn.0061fae1
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x40]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esi + 0x31dc]
push eax
mov dword [esp + 0x48], 0x10
mov eax, dword [edx + 0x104]
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x5bf821
push 1
push ebx
push ebx
push ebp
call fcn.0060c730
mov ecx, dword [esp + 0x28]
xor ebp, ebp
add eax, ecx
mov ecx, dword [esi + 0x31dc]
adc edx, ebp
push 0x10
mov dword [esp + 0x30], edx
lea edx, [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
push edx
mov edx, dword [ecx + 0x104]
push ebx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x5bf82d
push str.Error____rtmpcn_l1983_n
mov ecx, esi
call fcn.00567a50
mov edx, dword [esi + 0x4a0c]
mov ebp, dword [edi]
mov ecx, edx
xor eax, eax
add ecx, ebp
mov ebp, dword [edi + 4]
adc eax, ebp
add ecx, 0xf
adc eax, ebx
mov ebx, dword [esi + 0x6c]
cmp ebx, eax
jl 0x5bf86a
jg 0x5bf855
mov eax, dword [esi + 0x68]
cmp eax, ecx
jbe 0x5bf86a
mov ecx, dword [esi + 0x68]
mov ebx, dword [edi]
sub ecx, ebx
sub ecx, edx
sub ecx, 0xf
push ecx
lea ecx, [esi + 0x10]
call fcn.005706f0
mov edx, dword [esi + 0xb0]
push 1
mov byte [edx + 0x311], 1
mov ecx, dword [esi + 0x31dc]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, esi
call fcn.005c1eb0
lea ecx, [esp + 0x10]
mov dword [esp + 0x184], 0xffffffff
call fcn.00622d8a
xor eax, eax
jmp 0x5c003e
cmp dword [esp + 0x88], ebx
je 0x5bffc5
mov ecx, dword [0x6f7b78]
mov dword [esp + 0x14], ecx
mov eax, dword [esi + 0x90]
mov dword [esp + 0x184], 1
add eax, 0x2c
mov ecx, dword [eax]
cmp ecx, ebx
jne 0x5bf8da
lea ecx, [eax + 4]
push ecx
call fcn.0060b6fb
add esp, 4
cmp eax, 0xffffffff
jne 0x5bf912
mov edx, dword [esi + 0x90]
add edx, 0x2c
sub esp, 0xc
mov eax, esp
mov ecx, dword [edx]
push str.Could_not_delete_temp_file__s_n
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov edx, dword [edx + 8]
mov dword [eax + 8], edx
lea eax, [esp + 0x24]
push eax
jmp 0x5bf93a
mov ecx, dword [esi + 0x90]
add ecx, 0x2c
sub esp, 0xc
mov edx, esp
mov eax, dword [ecx]
push str.Delete_temp_file__s_n
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
lea edx, [esp + 0x24]
push edx
call fcn.0061fae1
mov eax, dword [esp + 0x28]
add esp, 0x14
mov ecx, esi
push eax
call fcn.00567a50
mov dword [esi + 0x3224], ebx
mov byte [esi + 0x31ec], bl
mov dword [esi + 0x3228], ebx
mov ecx, dword [0x6f7b78]
mov edi, 0x10
mov dword [esp + 0x18], ecx
mov dword [esp + 0x80], edi
mov edx, dword [esi + 0x90]
lea ecx, [esp + 0x18]
mov byte [esp + 0x184], 2
mov eax, dword [edx + 0x28]
push eax
push 0x6c9150
push ecx
call fcn.0061fae1
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea edx, [esp + 0x80]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edx
mov edx, dword [esi + 0x31dc]
lea eax, [esp + 0x54]
push eax
mov eax, dword [edx + 0x104]
push ebx
push ebx
push ecx
push eax
call ebp
cmp eax, ebx
je 0x5bf9eb
push eax
lea ecx, [esp + 0x18]
push str.Error_reading_registry__errCode___d._n
push ecx
call fcn.0061fae1
mov edx, dword [esp + 0x20]
add esp, 0xc
mov ecx, esi
push edx
call fcn.00567a50
jmp 0x5bffa0
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x9c]
push eax
push str._skf
push ecx
call fcn.0060a593
add esp, 0xc
lea edx, [esp + 0x30]
lea eax, [esp + 0xac]
mov dword [esp + 0x30], edi
push edx
mov edx, dword [esi + 0x31dc]
push eax
push ebx
mov eax, dword [edx + 0x104]
lea ecx, [esp + 0xa8]
push ebx
push ecx
push eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
call ebp
cmp eax, ebx
jne 0x5bfada
mov ecx, dword [esp + 0xb4]
cmp ecx, 0xffffffff
je 0x5bfada
mov eax, dword [esi + 0xd4]
cmp eax, ecx
jbe 0x5bfa89
sub eax, ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x31e8]
fild qword [esp + 0x20]
fmul qword [0x663820]
fstp qword [esp + 0x20]
fld qword [esp + 0x20]
fadd qword [eax]
fstp qword [eax]
jmp 0x5bfada
mov edx, dword [0x6f7b78]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x58]
push eax
push ecx
push edx
lea eax, [esp + 0x2c]
push str.error_2099__id_d__next_d__starttime_ld__ts_ld_n
push eax
mov byte [esp + 0x19c], 3
call fcn.0061fae1
mov ecx, dword [esp + 0x34]
add esp, 0x18
push ecx
mov ecx, esi
call fcn.00567a50
lea ecx, [esp + 0x1c]
mov byte [esp + 0x184], 2
call fcn.00622d8a
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
je 0x5bfdd7
mov edx, dword [0x6f7b78]
mov dword [esp + 0x78], edi
mov dword [esp + 0x1c], edx
push eax
lea eax, [esp + 0x20]
push 0x6c9150
push eax
mov byte [esp + 0x190], 4
call fcn.0061fae1
mov eax, dword [esp + 0x28]
add esp, 0xc
lea ecx, [esp + 0x78]
lea edx, [esp + 0x8c]
push ecx
mov ecx, dword [esi + 0x31dc]
push edx
push ebx
mov edx, dword [ecx + 0x104]
push ebx
push eax
push edx
call ebp
cmp eax, ebx
jne 0x5bfdc4
mov eax, dword [esi + 0x90]
mov ecx, dword [esp + 0x94]
push 0xa
mov dword [eax + 0x20], ecx
mov edx, dword [esi + 0x90]
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0xc0]
mov dword [edx + 0x28], eax
mov edx, dword [esp + 0x90]
push ecx
push edx
call fcn.0060b264
mov ecx, dword [esi + 0x31dc]
mov ebp, dword [esi + 0x90]
add esp, 0xc
add ebp, 0x2c
mov edx, dword [ecx + 0xb0]
mov dword [esp + 0x38], eax
mov dword [esp + 0x10], ebp
mov ecx, dword [edx + 0x10]
mov edx, 0x6c900c
test edx, edx
mov dword [esp + 0x40], ecx
je 0x5bfd5b
cmp ecx, ebx
je 0x5bfd5b
cmp eax, ebx
je 0x5bfd5b
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
mov word [esp + 0x48], bx
lea ecx, [esp + 0x44]
mov byte [esp + 0x184], 5
call fcn.00401070
mov edi, 0x6c900c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5bfc2a
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push 0xffffffffffffffff
push 0x6c900c
push ebx
push ebx
call edi
cmp eax, ebx
mov dword [esp + 0x4c], eax
je 0x5bfc2a
lea eax, [eax + eax + 2]
push eax
call fcn.00622acb
add esp, 4
cmp eax, ebx
mov dword [esp + 0x44], eax
je 0x5bfc2a
mov ecx, dword [esp + 0x4c]
push ecx
push eax
push 0xffffffffffffffff
push 0x6c900c
push ebx
push ebx
call edi
mov dword [esp + 0x4c], eax
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x60]
push edx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x6c], ebx
mov word [esp + 0x68], bx
call fcn.00401f20
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x6c]
push eax
mov byte [esp + 0x188], 6
mov dword [esp + 0x70], ebx
mov dword [esp + 0x78], ebx
mov word [esp + 0x74], bx
call fcn.00401f20
mov ecx, ebp
mov byte [esp + 0x184], 7
call fcn.00401070
mov ebp, dword [esp + 0x60]
cmp ebp, ebx
jne 0x5bfc83
lea ebp, [esp + 0x64]
mov eax, dword [esp + 0x6c]
cmp eax, ebx
jne 0x5bfc8f
lea eax, [esp + 0x70]
mov edi, dword [esp + 0x4c]
push eax
call fcn.00609a4e
mov edx, eax
push ebp
mov dword [esp + 0x40], edx
call fcn.00609a4e
mov ecx, dword [esp + 0x40]
add edi, ecx
lea edi, [eax + edi + 3]
mov dword [esp + 0x40], edi
lea ebp, [edi + edi]
push ebp
call fcn.00622acb
mov edx, dword [esp + 0x1c]
mov edi, eax
add esp, 0xc
cmp edi, ebx
mov dword [edx], edi
je 0x5bfd23
mov ecx, ebp
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x6c]
cmp eax, ebx
mov edi, eax
jne 0x5bfce9
lea edi, [esp + 0x70]
mov ecx, dword [esp + 0x60]
cmp ecx, ebx
jne 0x5bfcf5
lea ecx, [esp + 0x64]
mov eax, dword [esp + 0x44]
cmp eax, ebx
jne 0x5bfd01
lea eax, [esp + 0x48]
push edi
push ecx
mov ecx, dword [edx]
push eax
mov eax, dword [esp + 0x44]
push eax
push ecx
call fcn.006099de
mov edi, dword [esp + 0x24]
mov edx, dword [edi]
push edx
call fcn.00609a4e
add esp, 0x18
mov dword [edi + 8], eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0x184], 6
call fcn.00401070
lea ecx, [esp + 0x60]
mov byte [esp + 0x184], 5
call fcn.00401070
lea ecx, [esp + 0x44]
mov byte [esp + 0x184], 4
call fcn.00401070
mov edi, 0x10
mov eax, dword [esi + 0x90]
lea edx, [esp + 0x8c]
push edi
push edx
mov ecx, dword [eax + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esi + 0x31dc]
mov dword [esp + 0xa0], ebx
push ebx
mov edx, dword [ecx + 0x104]
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0xd4]
cmp ecx, dword [eax + 0x20]
jb 0x5bfdc4
mov byte [esi + 0x31ec], 1
mov edx, dword [eax + 0x20]
mov eax, dword [esi + 0x31e8]
mov dword [esi + 0x3228], edx
fld qword [eax]
fsub qword [esp + 0x20]
fstp qword [eax]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x184], 2
call fcn.00622d8a
jmp 0x5bfe48
mov eax, dword [esi + 0x90]
mov dword [eax + 0x20], ebx
mov ebp, dword [esi + 0x90]
add ebp, 0x2c
mov ecx, ebp
call fcn.00401070
mov ecx, 0x6fc418
test ecx, ecx
je 0x5bfe48
mov edi, ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5bfe48
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push 0xffffffffffffffff
push 0x6fc418
push ebx
push ebx
call edi
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x5bfe48
lea edx, [eax + eax + 2]
push edx
call fcn.00622acb
add esp, 4
cmp eax, ebx
mov dword [ebp], eax
je 0x5bfe48
mov ecx, dword [ebp + 8]
push ecx
push eax
push 0xffffffffffffffff
push 0x6fc418
push ebx
push ebx
call edi
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x31dc]
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ebp, dword [esp + 0x54]
mov ecx, dword [eax + 0x104]
push edx
push ecx
call edi
mov eax, dword [esi + 0x31dc]
lea edx, [esp + 0x9c]
push edx
mov ecx, dword [eax + 0x104]
push ecx
call edi
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push str.Join_with_next__deleting_record_with_num__s_n
push eax
call fcn.0061fae1
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.00567a50
mov edx, dword [esi + 0x90]
lea ecx, [esp + 0x18]
mov eax, dword [edx + 0x60]
push eax
push 0x6c9150
push ecx
call fcn.0061fae1
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea edx, [esp + 0x30]
lea eax, [esp + 0x50]
push edx
mov edx, dword [esi + 0x31dc]
push eax
mov dword [esp + 0x38], 0x10
mov eax, dword [edx + 0x104]
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x5bff0b
push eax
lea ecx, [esp + 0x18]
push str.Error_reading_registry__errCode___d._n
push ecx
call fcn.0061fae1
mov edx, dword [esp + 0x20]
add esp, 0xc
mov ecx, esi
push edx
call fcn.00567a50
cmp ebp, 0xffffffff
mov dword [esp + 0x54], ebp
je 0x5bff23
mov eax, dword [esi + 0x31dc]
dec ebp
mov dword [eax + 0xbc], ebp
jmp 0x5bff41
mov eax, dword [esi + 0x31dc]
mov ecx, dword [eax + 0xc0]
mov dword [eax + 0xbc], ecx
mov edx, dword [esi + 0x31dc]
mov dword [edx + 0xf4], ebx
mov edx, dword [esi + 0x31dc]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x50]
push 0x10
push eax
mov eax, dword [edx + 0x104]
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
lea eax, [esp + 0x28]
push str.Updating_record_with_num__s:_set_ID__d__startPos__I64d__nextID__d_n
push eax
call fcn.0061fae1
mov ecx, dword [esp + 0x30]
add esp, 0x1c
push ecx
mov ecx, esi
call fcn.00567a50
mov ecx, esi
call fcn.0056bd00
lea ecx, [esp + 0x18]
mov byte [esp + 0x184], 1
call fcn.00622d8a
lea ecx, [esp + 0x14]
mov dword [esp + 0x184], 0xffffffff
call fcn.00622d8a
xor eax, eax
jmp 0x5c003e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x34]
mov ebx, eax
mov eax, dword [esp + 0x10]
push ebx
push edx
push eax
lea ecx, [esp + 0x108]
push str.File_write_error__Received__d_bytes__wrote__d_bytes__errCode___ld_n
push ecx
call fcn.0060a593
add esp, 0x14
lea edx, [esp + 0xfc]
mov ecx, esi
push edx
call fcn.00567a50
cmp ebx, 5
jne 0x5c0016
mov eax, dword [0x6fdbdc]
mov ecx, dword [esi + 0x9c]
push eax
call fcn.00570270
mov ecx, esi
call fcn.0056c2e0
test eax, eax
je 0x5c0028
mov eax, 0xfffffffb
jmp 0x5c003e
mov ecx, dword [esi + 0x90]
mov edx, dword [ecx + 0x10]
mov ecx, ebp
push edx
call fcn.00570650
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x178
ret 8