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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x606a03
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 0x530d87
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.005c3648
add esp, 0xc
lea edx, [ebp - 0x1fc]
mov ecx, ebx
push edx
call fcn.00529460
mov eax, dword [ebx + 0x94]
lea ecx, [ebp - 0x4c]
inc eax
mov dword [ebp - 0x60], 0x10
push eax
push 0x69e000
push ecx
call fcn.005c3648
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 0x530d87
mov eax, dword [ebp - 0x40]
push 0x50
mov dword [ebp - 0x5c], eax
call fcn.005db66d
mov ecx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
test ecx, ecx
mov byte [ebp - 4], 1
je 0x530993
call fcn.00532290
mov edi, eax
jmp 0x530995
xor edi, edi
test edi, edi
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 0
je 0x530d87
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.005c2c42
lea edx, [eax + eax + 0x14]
push edx
call fcn.005db66d
mov esi, eax
add esp, 8
test esi, esi
mov dword [ebp - 0x18], esi
jne 0x5309f0
mov ecx, edi
call fcn.005322d0
push edi
call fcn.005db696
add esp, 4
jmp 0x530d87
mov edx, dword [ebx + 0x94]
mov ecx, dword [ebx + 0x98]
inc edx
mov eax, edx
mov dword [ebx + 0x94], edx
cmp ecx, eax
jge 0x530a0f
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.005c3b7c
add esp, 0x10
mov ecx, edi
push esi
call fcn.00532360
test eax, eax
jne 0x530b7c
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 0x530b10
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 0x530aba
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x530aba
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x530aba
push eax
lea edx, [ebp - 0x1fc]
push str.Error_during_GetFileSize____errcode___ld._n
push edx
call fcn.005c3648
add esp, 0xc
lea eax, [ebp - 0x1fc]
mov ecx, ebx
push eax
call fcn.00529460
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
jmp 0x530ad6
mov ecx, dword [ebp - 0x78]
push 1
push 0
push 0
push ecx
call fcn.005c5530
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 0x530b42
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0xb0]
mov eax, dword [edx + 0x24]
cmp eax, 1
je 0x530b03
cmp eax, 2
je 0x530b03
test eax, eax
jne 0x530b9a
mov eax, dword [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00533e90
jmp 0x530b51
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.005c3648
add esp, 0x10
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, ebx
call fcn.00529460
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.0053a970
test eax, eax
je 0x530ba8
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.005c3648
add esp, 0x10
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, ebx
call fcn.00529460
mov ecx, edi
call fcn.005322d0
push edi
call fcn.005db696
add esp, 4
push esi
call fcn.005db696
add esp, 4
jmp 0x530d87
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [esi + 0x10]
call fcn.0053ab40
jmp 0x530b51
mov dword [edi], esi
mov edx, dword [esi + 0xb0]
mov eax, dword [edx + 0x24]
cmp eax, 4
je 0x530bd5
cmp eax, 5
je 0x530bd5
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 0x530bf2
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 0x530cb7
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 0x530c2b
cmp eax, 5
jne 0x530c72
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
push eax
push str._dkf
push ecx
call fcn.005c3648
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 0x530c72
cmp dword [ebp - 0x68], 0xffffffff
jne 0x530c72
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 0x530c8e
mov edx, dword [esi + 0x54]
cmp edx, ecx
je 0x530ca6
mov dl, byte [ebp + 0xb]
test dl, dl
jne 0x530ca6
sub eax, 1
sbb ecx, 0
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], ecx
jmp 0x530f9d
push str.The_last_chunk_is_full._n
mov ecx, ebx
call fcn.00529460
jmp 0x530d4b
push eax
lea ecx, [ebp - 0x4c]
push 0x69e000
push ecx
call fcn.005c3648
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 0x530d9c
push eax
lea eax, [ebp - 0x1fc]
push str.error_reading_registry__d_n
push eax
call fcn.005c3648
add esp, 0xc
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, ebx
call fcn.00529460
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 0x530c95
mov edx, dword [esi + 0x54]
cmp edx, ecx
jne 0x530c95
mov eax, dword [ebp - 0x18]
push eax
call fcn.005db696
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.0053a950
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 0x530dd1
cmp eax, 5
jne 0x530f9d
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.005c43ba
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 0x530f9d
test ecx, ecx
je 0x530f9d
test eax, eax
je 0x530f9d
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 0x530e83
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 0x530e83
lea eax, [eax + eax + 2]
push eax
call fcn.005db66d
add esp, 4
mov dword [ebp - 0x34], eax
test eax, eax
je 0x530e83
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 0x530ed2
lea eax, [ebp - 0x68]
mov ecx, dword [ebp - 0x58]
cmp ecx, edi
mov edi, ecx
jne 0x530ede
lea edi, [ebp - 0x54]
mov edx, dword [ebp - 0x2c]
push eax
mov dword [ebp + 8], edx
call fcn.005c2c42
mov edx, eax
push edi
mov dword [ebp - 0x14], edx
call fcn.005c2c42
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.005db66d
mov edx, eax
mov eax, dword [ebp - 0x24]
add eax, 0x2c
add esp, 0xc
test edx, edx
mov dword [eax], edx
je 0x530f76
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 0x530f3e
lea edx, [ebp - 0x54]
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
jne 0x530f48
lea ecx, [ebp - 0x68]
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x530f52
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.005c2bd2
mov eax, dword [edi]
push eax
call fcn.005c2c42
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.005c3648
add esp, 0x38
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, ebx
call fcn.00529460
mov edx, dword [ebp - 0x18]
push edx
call fcn.005db696
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 0x53103c
push eax
push edi
mov ecx, ebx
call fcn.00531200
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