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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x606d03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0xdc]
mov dword [ebp - 0x10], esp
test eax, eax
mov dword [ebp - 0x74], ebx
je 0x530fa7
mov eax, dword [ebx + 0x94]
lea ecx, [ebp - 0x1fc]
inc eax
mov dword [ebp - 4], 0
push eax
push str.insert_from_reg__ID___d_n
push ecx
call fcn.005c3928
add esp, 0xc
lea edx, [ebp - 0x1fc]
mov ecx, ebx
push edx
call fcn.00529670
mov eax, dword [ebx + 0x94]
lea ecx, [ebp - 0x4c]
inc eax
mov dword [ebp - 0x60], 0x10
push eax
push 0x69e000
push ecx
call fcn.005c3928
add esp, 0xc
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x4c]
push edx
mov edx, dword [ebx + 0xdc]
push eax
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x530fa7
mov eax, dword [ebp - 0x40]
push 0x50
mov dword [ebp - 0x5c], eax
call fcn.005db95d
mov ecx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
test ecx, ecx
mov byte [ebp - 4], 1
je 0x530bb3
call fcn.005324b0
mov edi, eax
jmp 0x530bb5
xor edi, edi
test edi, edi
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 0
je 0x530fa7
mov ecx, dword [ebx + 0xd4]
mov dword [edi + 0x44], ecx
mov edx, dword [ebx + 0xdc]
mov dword [edi + 0x48], edx
mov eax, dword [ebx + 0x88]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.005c2f1a
lea edx, [eax + eax + 0x14]
push edx
call fcn.005db95d
mov esi, eax
add esp, 8
test esi, esi
mov dword [ebp - 0x18], esi
jne 0x530c10
mov ecx, edi
call fcn.005324f0
push edi
call fcn.005db986
add esp, 4
jmp 0x530fa7
mov edx, dword [ebx + 0x94]
mov ecx, dword [ebx + 0x98]
inc edx
mov eax, edx
mov dword [ebx + 0x94], edx
cmp ecx, eax
jge 0x530c2f
mov dword [ebx + 0x98], eax
mov dword [edi + 0x40], eax
mov ecx, dword [ebx + 0x88]
mov eax, dword [ebx + 0x94]
mov edx, dword [ecx + 0x10]
push eax
push edx
push str._s_d
push esi
call fcn.005c3e5c
add esp, 0x10
mov ecx, edi
push esi
call fcn.00532580
test eax, eax
jne 0x530d9c
push eax
push eax
push 3
push eax
push 1
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x530d30
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x78]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x1c], 0
cmp esi, 0xffffffff
jne 0x530cda
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x530cda
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x530cda
push eax
lea edx, [ebp - 0x1fc]
push str.Error_during_GetFileSize____errcode___ld._n
push edx
call fcn.005c3928
add esp, 0xc
lea eax, [ebp - 0x1fc]
mov ecx, ebx
push eax
call fcn.00529670
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
jmp 0x530cf6
mov ecx, dword [ebp - 0x78]
push 1
push 0
push 0
push ecx
call fcn.005c5810
add esi, eax
mov eax, dword [ebp - 0x1c]
adc eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, dword [ebp - 0x1c]
je 0x530d62
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0xb0]
mov eax, dword [edx + 0x24]
cmp eax, 1
je 0x530d23
cmp eax, 2
je 0x530d23
test eax, eax
jne 0x530dba
mov eax, dword [ebp - 0x18]
mov ecx, esi
push eax
call fcn.005340b0
jmp 0x530d71
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x1fc]
push str.Error_opening_file__ls_to_get_size__errcode___ld._n
push eax
call fcn.005c3928
add esp, 0x10
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, ebx
call fcn.00529670
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [esi + 0x10]
call fcn.0053ab90
test eax, eax
je 0x530dc8
mov esi, dword [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1fc]
push str.Error_opening_file__ls__errcode___ld._n
push eax
call fcn.005c3928
add esp, 0x10
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, ebx
call fcn.00529670
mov ecx, edi
call fcn.005324f0
push edi
call fcn.005db986
add esp, 4
push esi
call fcn.005db986
add esp, 4
jmp 0x530fa7
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [esi + 0x10]
call fcn.0053ad60
jmp 0x530d71
mov dword [edi], esi
mov edx, dword [esi + 0xb0]
mov eax, dword [edx + 0x24]
cmp eax, 4
je 0x530df5
cmp eax, 5
je 0x530df5
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add eax, ecx
mov ecx, dword [ebp - 0x38]
mov dword [esi + 0x50], eax
adc ecx, edx
mov dword [esi + 0x54], ecx
jmp 0x530e12
mov edx, dword [ebp - 0x3c]
mov dword [edi + 0x1c], edx
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x20]
mov ecx, eax
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], eax
sar ecx, 0x1f
mov eax, dword [ebp - 0x40]
cmp eax, 0xffffffff
jne 0x530ed7
mov ecx, dword [ebx + 0x98]
mov dword [ebx + 0xcc], 0
mov dword [ebx + 0x94], ecx
mov edx, dword [esi + 0xb0]
mov byte [ebp + 0xb], 0
mov eax, dword [edx + 0x24]
cmp eax, 4
je 0x530e4b
cmp eax, 5
jne 0x530e92
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
push eax
push str._dkf
push ecx
call fcn.005c3928
add esp, 0xc
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x28]
push edx
mov edx, dword [ebx + 0xdc]
push eax
push 0
push 0
push ecx
push edx
mov dword [ebp - 0x14], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x530e92
cmp dword [ebp - 0x68], 0xffffffff
jne 0x530e92
mov byte [ebp + 0xb], 1
mov eax, dword [ebx + 0x88]
mov edx, dword [esi + 0x50]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x48]
cmp edx, eax
mov ecx, dword [ecx + 0x4c]
jne 0x530eae
mov edx, dword [esi + 0x54]
cmp edx, ecx
je 0x530ec6
mov dl, byte [ebp + 0xb]
test dl, dl
jne 0x530ec6
sub eax, 1
sbb ecx, 0
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], ecx
jmp 0x5311bd
push str.The_last_chunk_is_full._n
mov ecx, ebx
call fcn.00529670
jmp 0x530f6b
push eax
lea ecx, [ebp - 0x4c]
push 0x69e000
push ecx
call fcn.005c3928
add esp, 0xc
lea edx, [ebp - 0x60]
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x4c]
push edx
mov edx, dword [ebx + 0xdc]
push eax
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x530fbc
push eax
lea eax, [ebp - 0x1fc]
push str.error_reading_registry__d_n
push eax
call fcn.005c3928
add esp, 0xc
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, ebx
call fcn.00529670
mov edx, dword [ebx + 0x98]
mov eax, dword [ebx + 0x88]
mov dword [ebx + 0xcc], 0
mov dword [ebx + 0x94], edx
mov ecx, dword [eax]
mov edx, dword [esi + 0x50]
mov eax, dword [ecx + 0x48]
cmp edx, eax
mov ecx, dword [ecx + 0x4c]
jne 0x530eb5
mov edx, dword [esi + 0x54]
cmp edx, ecx
jne 0x530eb5
mov eax, dword [ebp - 0x18]
push eax
call fcn.005db986
mov ecx, dword [ebx + 0x8c]
add esp, 4
mov edx, dword [ecx + 0x38]
lea ecx, [esi + 0x10]
mov dword [edi + 0x38], edx
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0x38], edi
mov dword [ebx + 0x8c], edi
mov dword [edi + 0x14], 1
call fcn.0053ab70
mov dword [edi], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
mov edx, ecx
sub edx, 1
mov dword [esi + 0x60], edx
mov edx, dword [ebp - 0x44]
sbb eax, 0
dec edx
mov dword [esi + 0x64], eax
mov dword [ebx + 0x94], edx
mov eax, dword [esi + 0xb0]
mov eax, dword [eax + 0x24]
cmp eax, 4
je 0x530ff1
cmp eax, 5
jne 0x5311bd
mov dword [edi + 0x20], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edi + 0x28], ecx
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x23c]
push 0xa
push edx
push eax
call fcn.005c469a
mov ecx, dword [ebx + 0x88]
mov edx, 0x69e048
add esp, 0xc
mov dword [ebp - 0x14], eax
mov ecx, dword [ecx + 0x10]
test edx, edx
mov dword [ebp + 8], ecx
je 0x5311bd
test ecx, ecx
je 0x5311bd
test eax, eax
je 0x5311bd
xor eax, eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x30], ax
call fcn.00401070
mov edi, 0x69e048
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5310a3
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push 0x69e048
push eax
push eax
call edi
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x5310a3
lea eax, [eax + eax + 2]
push eax
call fcn.005db95d
add esp, 4
mov dword [ebp - 0x34], eax
test eax, eax
je 0x5310a3
mov ecx, dword [ebp - 0x2c]
push ecx
push eax
push 0xffffffffffffffff
push 0x69e048
push 0
push 0
call edi
mov dword [ebp - 0x2c], eax
xor edi, edi
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x6c]
push edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x64], edi
mov word [ebp - 0x68], di
call fcn.00401f50
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x58]
push eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x50], edi
mov word [ebp - 0x54], di
call fcn.00401f50
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 4
add ecx, 0x2c
call fcn.00401070
mov eax, dword [ebp - 0x6c]
cmp eax, edi
jne 0x5310f2
lea eax, [ebp - 0x68]
mov ecx, dword [ebp - 0x58]
cmp ecx, edi
mov edi, ecx
jne 0x5310fe
lea edi, [ebp - 0x54]
mov edx, dword [ebp - 0x2c]
push eax
mov dword [ebp + 8], edx
call fcn.005c2f1a
mov edx, eax
push edi
mov dword [ebp - 0x14], edx
call fcn.005c2f1a
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
add ecx, edx
lea eax, [eax + ecx + 3]
mov dword [ebp + 8], eax
lea edi, [eax + eax]
push edi
call fcn.005db95d
mov edx, eax
mov eax, dword [ebp - 0x24]
add eax, 0x2c
add esp, 0xc
test edx, edx
mov dword [eax], edx
je 0x531196
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x58]
test eax, eax
mov edx, eax
jne 0x53115e
lea edx, [ebp - 0x54]
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
jne 0x531168
lea ecx, [ebp - 0x68]
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x531172
lea eax, [ebp - 0x30]
push edx
push ecx
mov ecx, dword [ebp - 0x24]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
lea edi, [ecx + 0x2c]
push eax
push edx
call fcn.005c2eaa
mov eax, dword [edi]
push eax
call fcn.005c2f1a
add esp, 0x18
mov dword [edi + 8], eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.00401070
mov edi, dword [ebp - 0x24]
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov ecx, dword [edi + 0x20]
mov eax, dword [esi + 0x94]
mov edx, dword [edi + 0x1c]
push ecx
mov ecx, dword [eax + 4]
push edx
push ecx
mov ecx, dword [esi + 0x60]
mov edx, dword [eax]
mov eax, dword [esi + 0x64]
push edx
mov edx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x18]
push edx
mov edx, dword [edi]
push eax
push ecx
mov eax, dword [edx + 0x54]
push eax
lea eax, [ebp - 0x1fc]
mov ecx, dword [edx + 0x50]
mov edx, dword [edi + 0x40]
push ecx
push edx
push str.new_listitem_id_d__startpos_I64d__file__ls___ndwnl_I64d__endpos_I64d__ttdwnl_I64d_nsttm_ld__etm_ld_n
push eax
call fcn.005c3928
add esp, 0x38
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, ebx
call fcn.00529670
mov edx, dword [ebp - 0x18]
push edx
call fcn.005db986
mov eax, dword [ebx + 0x8c]
add esp, 4
mov ecx, dword [eax + 0x38]
mov eax, dword [ebp - 0x5c]
mov dword [edi + 0x38], ecx
mov edx, dword [ebx + 0x8c]
cmp eax, 0xffffffff
mov dword [edx + 0x38], edi
mov dword [esi + 0x90], edi
mov dword [ebx + 0x8c], edi
je 0x53125c
push eax
push edi
mov ecx, ebx
call fcn.00531420
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4