Function at 0x5598f0
Capabilities:
Get file size
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x94
push 0xffffffffffffffff
push 0x66063b
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x90], 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 ebx, dword [ebp + 0x9c]
xor edi, edi
cmp dword [esi + 0xdc], edi
je 0x559ab9
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x14]
call fcn.004024f0
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x94]
inc eax
push eax
push str.insert_from_reg__ID___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
mov dword [ebp - 0x40], 0x10
mov eax, dword [esi + 0x94]
inc eax
push eax
push 0x6795fc
lea ecx, [ebp + 0x40]
push ecx
call fcn.00623a6b
add esp, 0xc
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x38]
push eax
push edi
push edi
lea ecx, [ebp + 0x40]
push ecx
mov edx, dword [esi + 0xdc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x559aad
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x44], eax
push 0x70
call fcn.005f4e18
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
cmp eax, edi
je 0x5599df
mov ecx, eax
call fcn.005618c0
mov edi, eax
mov byte [ebp - 4], 1
test edi, edi
je 0x559aad
mov ecx, dword [esi + 0xd4]
mov dword [edi + 0x64], ecx
mov edx, dword [esi + 0xdc]
mov dword [edi + 0x68], edx
mov eax, dword [esi + 0x88]
mov eax, dword [eax + 0x10]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x559a10
sub eax, edx
sar eax, 1
add eax, 0xa
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005f4e47
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x559a4d
push 1
mov ecx, edi
call fcn.005550f0
jmp 0x559aad
inc dword [esi + 0x94]
mov ecx, dword [esi + 0x94]
cmp dword [esi + 0x98], ecx
jge 0x559a67
mov dword [esi + 0x98], ecx
mov dword [edi + 0x60], ecx
mov ecx, dword [esi + 0x94]
push ecx
mov edx, dword [esi + 0x88]
mov ecx, dword [edx + 0x10]
push ecx
push str._s_ld
push eax
call fcn.0040fd00
add esp, 0x10
mov edx, dword [ebp - 0x18]
push edx
mov ecx, edi
call fcn.005615d0
test eax, eax
je 0x559ae2
push 1
mov ecx, edi
call fcn.005550f0
mov eax, dword [ebp - 0x18]
push eax
call fcn.005f4e52
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402560
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
call fcn.00620b8d
add ebp, 0x94
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x559ba3
lea edx, [ebp - 0x4c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28], eax
xor ecx, ecx
mov dword [ebp - 0x24], ecx
cmp eax, 0xffffffff
jne 0x559b54
test ecx, ecx
jne 0x559b54
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x559b54
push eax
push str.Error_during_GetFileSize____errcode___ld._n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f60
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00555140
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
jmp 0x559b69
push 1
push 0
push 0
mov edx, dword [ebp - 0x4c]
push edx
call fcn.006254d0
add dword [ebp - 0x28], eax
adc dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x28]
or edx, dword [ebp - 0x24]
je 0x559bee
mov eax, dword [ebx + 0xc8]
mov eax, dword [eax + 0x24]
cmp eax, 1
je 0x559b96
cmp eax, 2
je 0x559b96
test eax, eax
jne 0x559c58
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, ebx
call fcn.00562360
jmp 0x559bfa
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00418220
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x1c]
push edx
push str.Error_opening_file__s_to_get_size__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 - 0x28], eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00402560
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebx + 0x10]
call fcn.0056b530
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x559c66
mov ebx, dword [ebp - 0x18]
push ebx
lea ecx, [ebp - 0x18]
call fcn.00418220
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1c]
push ecx
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
push 1
mov ecx, edi
call fcn.005550f0
push ebx
call fcn.005f4e52
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00402560
jmp 0x559aad
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebx + 0x10]
call fcn.0056bd60
jmp 0x559bfa
mov dword [edi], ebx
mov edx, dword [ebx + 0xc8]
mov eax, dword [edx + 0x24]
cmp eax, 4
je 0x559c8f
cmp eax, 5
je 0x559c8f
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
adc ecx, dword [ebp - 0x24]
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], ecx
jmp 0x559cac
mov edx, dword [ebp - 0x30]
mov dword [edi + 0x1c], edx
mov eax, dword [ebp - 0x2c]
mov ecx, eax
sar ecx, 0x1f
mov dword [edi + 0x24], eax
mov edx, dword [ebp - 0x28]
mov dword [ebx + 0x60], edx
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x64], eax
mov eax, dword [ebp - 0x34]
cmp eax, 0xffffffff
jne 0x559e15
mov dword [esi + 0xcc], 0
mov ecx, dword [esi + 0x98]
mov dword [esi + 0x94], ecx
mov byte [ebp - 0x1d], 0
mov edx, dword [ebx + 0xc8]
mov eax, dword [edx + 0x24]
cmp eax, 4
je 0x559ce5
cmp eax, 5
jne 0x559d32
mov eax, dword [ebp - 0x38]
push eax
push str._ldkf
lea ecx, [ebp + 0x80]
push ecx
call fcn.00623a6b
add esp, 0xc
mov dword [ebp - 0x1c], 0x10
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
lea ecx, [ebp + 0x80]
push ecx
mov edx, dword [esi + 0xdc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x559d32
cmp dword [ebp - 0x54], 0xffffffff
jne 0x559d32
mov byte [ebp - 0x1d], 1
mov eax, dword [esi + 0x88]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x58]
mov edx, dword [ecx + 0x5c]
mov ecx, dword [ebx + 0x60]
cmp ecx, eax
jne 0x559d4e
mov ecx, dword [ebx + 0x64]
cmp ecx, edx
je 0x559dc8
cmp byte [ebp - 0x1d], 0
jne 0x559dc8
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x559db7
xor eax, eax
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x8c], eax
lea eax, [ebx + 0x78]
push eax
lea edx, [ebp + 0x88]
push edx
call fcn.0056be60
mov eax, dword [ebp + 0x8c]
cmp eax, dword [ebx + 0x7c]
jl 0x559f10
jg 0x559d99
mov ecx, dword [ebp + 0x88]
cmp ecx, dword [ebx + 0x78]
jbe 0x559f10
push str.chl_err4955_n
mov ecx, esi
call fcn.00555140
push 1
mov ecx, edi
call fcn.005550f0
mov edx, dword [ebp - 0x18]
push edx
jmp 0x559aa5
sub eax, 1
sbb edx, 0
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], edx
jmp 0x559f10
push str.The_last_chunk_is_full._n
mov ecx, esi
call fcn.00555140
mov eax, dword [ebp - 0x18]
push eax
call fcn.005f4e52
add esp, 4
mov ecx, dword [esi + 0x8c]
mov edx, dword [ecx + 0x58]
mov dword [edi + 0x58], edx
mov eax, dword [esi + 0x8c]
mov dword [eax + 0x58], edi
mov dword [esi + 0x8c], edi
mov dword [edi + 0x14], 1
lea ecx, [ebx + 0x10]
call fcn.0056b4c0
mov dword [edi], 0
jmp 0x559aad
push eax
push 0x6795fc
lea ecx, [ebp + 0x40]
push ecx
call fcn.00623a6b
add esp, 0xc
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x38]
push eax
push 0
push 0
lea ecx, [ebp + 0x40]
push ecx
mov edx, dword [esi + 0xdc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x559ea9
push eax
push str.error_reading_registry__ld_n
lea eax, [ebp - 0x14]
push eax
call fcn.00402f60
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.00555140
mov dword [esi + 0xcc], 0
mov edx, dword [esi + 0x98]
mov dword [esi + 0x94], edx
mov eax, dword [esi + 0x88]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x58]
mov ecx, dword [ecx + 0x5c]
mov edx, dword [ebx + 0x60]
cmp edx, eax
jne 0x559e9b
mov edx, dword [ebx + 0x64]
cmp edx, ecx
je 0x559dd4
sub eax, 1
sbb ecx, 0
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], ecx
jmp 0x559f10
mov ecx, dword [ebp - 0x30]
sub ecx, 1
mov edx, dword [ebp - 0x2c]
sbb edx, 0
mov dword [ebx + 0x78], ecx
mov dword [ebx + 0x7c], edx
mov eax, dword [ebp - 0x38]
dec eax
mov dword [esi + 0x94], eax
mov ecx, dword [ebx + 0xc8]
mov eax, dword [ecx + 0x24]
cmp eax, 4
je 0x559ed8
cmp eax, 5
jne 0x559f10
mov edx, dword [ebp - 0x30]
mov dword [edi + 0x20], edx
mov eax, dword [ebp - 0x38]
mov dword [edi + 0x28], eax
push 0
push 0xa
lea ecx, [ebp]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.006238f2
add esp, 0xc
push eax
mov eax, dword [esi + 0x88]
mov ecx, dword [eax + 0x10]
push ecx
push 0x678de0
lea ecx, [edi + 0x2c]
call fcn.00402310
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], eax
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x3c]
call fcn.00418220
mov byte [ebp - 4], 5
mov eax, dword [edi + 0x20]
push eax
mov ecx, dword [edi + 0x1c]
push ecx
mov eax, dword [ebx + 0xac]
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
mov ecx, dword [ebx + 0x7c]
push ecx
mov edx, dword [ebx + 0x78]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [edi]
mov ecx, dword [eax + 0x64]
push ecx
mov edx, dword [eax + 0x60]
push edx
mov eax, dword [edi + 0x60]
push eax
push str.new_listitem_id_ld__startpos_I64d__file__s___ndwnl_I64d__endpos_I64d__ttdwnl_I64d_nsttm_ld__etm_ld_n
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f60
add esp, 0x38
mov edx, dword [ebp - 0x14]
push edx
mov ecx, esi
call fcn.00555140
mov eax, dword [ebp - 0x18]
push eax
call fcn.005f4e52
add esp, 4
mov ecx, dword [esi + 0x8c]
mov edx, dword [ecx + 0x58]
mov dword [edi + 0x58], edx
mov eax, dword [esi + 0x8c]
mov dword [eax + 0x58], edi
mov dword [ebx + 0xa8], edi
mov dword [esi + 0x8c], edi
mov eax, dword [ebp - 0x44]
cmp eax, 0xffffffff
je 0x559fbf
push eax
push edi
mov ecx, esi
call fcn.00558300
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00402560
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402560
mov eax, 1
jmp 0x559abb