Function at 0x55b060
Capabilities:
Get file size
Query or enumerate registry value
Read file on windows
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x888]
sub esp, 0x888
push 0xffffffffffffffff
push 0x66088e
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x884], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x48], esi
mov edi, dword [ebp + 0x890]
mov ebx, dword [ebp + 0x894]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], 0
cmp dword [esi + 0x88], 0
je 0x55b0c5
call fcn.0055aed0
push 0x70
call fcn.005f4e18
add esp, 4
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x55b0e3
mov ecx, eax
call fcn.005618c0
jmp 0x55b0e5
xor eax, eax
mov byte [ebp - 4], 0
mov dword [esi + 0x88], eax
test eax, eax
je 0x55b13e
mov ecx, dword [esi + 0xd4]
mov dword [eax + 0x64], ecx
mov edx, dword [esi + 0x88]
mov eax, dword [esi + 0xdc]
mov dword [edx + 0x68], eax
mov ecx, dword [esi + 0x88]
mov dword [ecx], edi
push ebx
mov ecx, dword [esi + 0x88]
call fcn.005615d0
test eax, eax
je 0x55b148
mov ecx, dword [esi + 0x88]
test ecx, ecx
je 0x55b134
push 1
call fcn.005550f0
mov dword [esi + 0x88], 0
mov eax, 0x753b
jmp 0x55b6e6
lea ecx, [ebp - 0x14]
call fcn.004024f0
mov byte [ebp - 4], 2
cmp dword [esi + 0xcc], 0
je 0x55b592
mov edx, dword [edi + 0xc8]
mov byte [edx + 0x181], 1
mov dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
push 0x687ba0
mov edx, dword [esi + 0xdc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x55b561
push eax
push eax
push 3
push eax
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x55b24e
lea eax, [ebp - 0x40]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
cmp eax, 0xffffffff
jne 0x55b206
test ecx, ecx
jne 0x55b206
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x55b206
push eax
push str.Error_in_GetFileSize____errcode___ld._n
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f60
add esp, 0xc
mov edx, dword [ebp - 0x14]
push edx
mov ecx, esi
call fcn.00555140
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
jmp 0x55b21b
push 1
push 0
push 0
mov eax, dword [ebp - 0x40]
push eax
call fcn.006254d0
add dword [ebp - 0x20], eax
adc dword [ebp - 0x1c], edx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x20]
or edx, dword [ebp - 0x1c]
je 0x55b299
mov eax, dword [edi + 0xc8]
mov eax, dword [eax + 0x24]
cmp eax, 1
je 0x55b241
cmp eax, 2
je 0x55b241
test eax, eax
jne 0x55b299
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, edi
call fcn.00562360
jmp 0x55b2a5
mov ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00418220
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x18]
push edx
push str.Error_opening_file__s__errcode___ld._n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f60
add esp, 0x10
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00555140
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402560
mov edx, dword [ebp - 0x28]
push edx
lea ecx, [edi + 0x10]
call fcn.0056bd60
mov ebx, eax
test ebx, ebx
je 0x55b319
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
call fcn.00418220
mov byte [ebp - 4], 4
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
push str.Error_opening_file__s__errcode___ld._n
lea edx, [ebp - 0x14]
push edx
call fcn.00402f60
add esp, 0x10
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00555140
mov ecx, dword [esi + 0x88]
test ecx, ecx
je 0x55b2ed
push 1
call fcn.005550f0
mov dword [esi + 0x88], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402560
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402560
mov eax, 0x7534
jmp 0x55b6e6
mov ecx, dword [edi + 0xc8]
cmp dword [ecx + 0xe0], 0
jne 0x55b3f1
cmp dword [ebp - 0x1c], 0
jl 0x55b3f1
jg 0x55b345
cmp dword [ebp - 0x20], 0x800
jb 0x55b3f1
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x55b3f1
push 0x801
push 0
lea eax, [ebp]
push eax
call fcn.00621270
add esp, 0xc
mov dword [ebp - 0x18], 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0x800
lea edx, [ebp]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x55b3ea
cmp dword [ebp - 0x18], 0x800
jne 0x55b3ea
mov byte [ebp - 0x21], 0
push 0x80c
call fcn.005f4e18
add esp, 4
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x55b3d8
lea ecx, [ebp - 0x21]
push ecx
lea edx, [ebp]
push edx
push 0x800
mov ecx, eax
call fcn.005568c0
jmp 0x55b3da
xor eax, eax
mov byte [ebp - 4], 2
mov ecx, dword [edi + 0xc8]
mov dword [ecx + 0xe0], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x60], eax
mov ecx, dword [ebp - 0x1c]
mov dword [edi + 0x64], ecx
mov eax, dword [edi + 0xac]
mov edx, dword [esi + 0xa0]
mov dword [eax], edx
mov ecx, dword [esi + 0xa4]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x38]
cmp eax, 0xffffffff
jne 0x55b435
xor eax, eax
mov dword [esi + 0x94], eax
mov dword [esi + 0xcc], eax
jmp 0x55b502
push eax
push 0x6795fc
lea edx, [ebp + 0x844]
push edx
call fcn.00623a6b
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x3c]
push ecx
xor ebx, ebx
push ebx
push ebx
lea edx, [ebp + 0x844]
push edx
mov eax, dword [esi + 0xdc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x55b47f
mov dword [esi + 0x94], ebx
mov dword [esi + 0xcc], ebx
jmp 0x55b502
mov ecx, dword [ebp - 0x34]
sub ecx, 1
mov edx, dword [ebp - 0x30]
sbb edx, ebx
mov eax, dword [esi + 0x88]
mov eax, dword [eax]
mov dword [eax + 0x78], ecx
mov dword [eax + 0x7c], edx
mov ecx, dword [ebp - 0x3c]
dec ecx
mov dword [esi + 0x94], ecx
mov eax, dword [esi + 0x88]
mov dword [esi + 0x8c], eax
mov edx, dword [edi + 0xc8]
mov ecx, dword [edx + 0x24]
cmp ecx, 4
je 0x55b4c1
cmp ecx, 5
jne 0x55b502
mov ecx, dword [ebp - 0x34]
mov dword [eax + 0x20], ecx
mov edx, dword [esi + 0x88]
mov eax, dword [ebp - 0x3c]
mov dword [edx + 0x28], eax
mov ebx, dword [esi + 0x88]
push 0
push 0xa
lea ecx, [ebp + 0x804]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call fcn.006238f2
add esp, 0xc
push eax
mov eax, dword [ebx + 0x10]
push eax
push 0x678de0
lea ecx, [ebx + 0x2c]
call fcn.00402310
mov ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00418220
mov byte [ebp - 4], 6
mov ecx, dword [esi + 0x88]
mov eax, dword [ecx]
mov edx, dword [eax + 0x7c]
push edx
mov edx, dword [eax + 0x78]
push edx
mov edx, dword [ebp - 0x2c]
push edx
mov edx, dword [eax + 0x64]
push edx
mov eax, dword [eax + 0x60]
push eax
mov ecx, dword [ecx + 0x60]
push ecx
push str.first_listitem_id___ld__startpos___I64d__file__s__endpos___I64d_n
lea edx, [ebp - 0x14]
push edx
call fcn.00402f60
add esp, 0x20
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00555140
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00402560
xor ebx, ebx
jmp 0x55b608
mov ecx, dword [esi + 0x88]
test ecx, ecx
je 0x55b572
push 1
call fcn.005550f0
mov dword [esi + 0x88], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402560
mov eax, 0x7541
jmp 0x55b6e6
push ebx
lea ecx, [edi + 0x10]
call fcn.0056b530
mov ebx, eax
test ebx, ebx
je 0x55b5f9
mov ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00418220
mov byte [ebp - 4], 7
push ebx
mov edx, dword [ebp - 0x2c]
push edx
push str.Error_opening_file__s__errcode___ld._n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f60
add esp, 0x10
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00555140
mov ecx, dword [esi + 0x88]
test ecx, ecx
je 0x55b5e3
push 1
call fcn.005550f0
mov dword [esi + 0x88], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
jmp 0x55b2fe
mov ecx, edi
call fcn.00554d40
xor ebx, ebx
mov dword [esi + 0x94], ebx
mov edx, dword [esi + 0x88]
mov dword [edi + 0xa8], edx
mov eax, dword [esi + 0x88]
mov dword [eax + 0x60], ebx
mov ecx, dword [esi + 0x88]
mov dword [ecx + 0x58], ebx
cmp dword [esi + 0xcc], ebx
jne 0x55b65e
mov eax, dword [esi + 0xdc]
cmp eax, ebx
je 0x55b675
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], 0xffffffff
push 0x10
lea edx, [ebp - 0x3c]
push edx
push ebx
push ebx
push 0x687ba0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x55b675
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x55b675
push eax
mov eax, dword [esi + 0x88]
push eax
mov ecx, esi
call fcn.00558300
mov esi, dword [esi + 0x88]
mov ecx, dword [edi + 0x60]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0x64]
mov dword [esi + 0xc], edx
mov eax, dword [edi + 0x60]
mov dword [edi + 0x70], eax
mov ecx, dword [edi + 0x64]
mov dword [edi + 0x74], ecx
cmp dword [edi + 0x7c], ebx
jl 0x55b6b9
jg 0x55b69f
cmp dword [edi + 0x78], ebx
jbe 0x55b6b9
mov edx, dword [edi + 0xc8]
mov eax, dword [edx + 0x24]
cmp eax, 4
je 0x55b6b9
cmp eax, 5
je 0x55b6b9
mov ecx, edi
call fcn.005625b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402560
xor eax, eax
jmp 0x55b6e6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x884]
xor ecx, ebp
call fcn.00620b8d
add ebp, 0x888
mov esp, ebp
pop ebp
ret 8