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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6089a3
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 0x532b77
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.005c5558
add esp, 0xc
lea edx, [ebp - 0x1fc]
mov ecx, ebx
push edx
call fcn.0052b240
mov eax, dword [ebx + 0x94]
lea ecx, [ebp - 0x4c]
inc eax
mov dword [ebp - 0x60], 0x10
push eax
push 0x6a0000
push ecx
call fcn.005c5558
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 0x532b77
mov eax, dword [ebp - 0x40]
push 0x50
mov dword [ebp - 0x5c], eax
call fcn.005dd58d
mov ecx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
test ecx, ecx
mov byte [ebp - 4], 1
je 0x532783
call fcn.00534080
mov edi, eax
jmp 0x532785
xor edi, edi
test edi, edi
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 0
je 0x532b77
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.005c4b4a
lea edx, [eax + eax + 0x14]
push edx
call fcn.005dd58d
mov esi, eax
add esp, 8
test esi, esi
mov dword [ebp - 0x18], esi
jne 0x5327e0
mov ecx, edi
call fcn.005340c0
push edi
call fcn.005dd5b6
add esp, 4
jmp 0x532b77
mov edx, dword [ebx + 0x94]
mov ecx, dword [ebx + 0x98]
inc edx
mov eax, edx
mov dword [ebx + 0x94], edx
cmp ecx, eax
jge 0x5327ff
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.005c5a8c
add esp, 0x10
mov ecx, edi
push esi
call fcn.00534150
test eax, eax
jne 0x53296c
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 0x532900
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 0x5328aa
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x5328aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5328aa
push eax
lea edx, [ebp - 0x1fc]
push str.Error_during_GetFileSize____errcode___ld._n
push edx
call fcn.005c5558
add esp, 0xc
lea eax, [ebp - 0x1fc]
mov ecx, ebx
push eax
call fcn.0052b240
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
jmp 0x5328c6
mov ecx, dword [ebp - 0x78]
push 1
push 0
push 0
push ecx
call fcn.005c7440
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 0x532932
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0xb0]
mov eax, dword [edx + 0x24]
cmp eax, 1
je 0x5328f3
cmp eax, 2
je 0x5328f3
test eax, eax
jne 0x53298a
mov eax, dword [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00535c80
jmp 0x532941
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.005c5558
add esp, 0x10
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, ebx
call fcn.0052b240
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.0053c740
test eax, eax
je 0x532998
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.005c5558
add esp, 0x10
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, ebx
call fcn.0052b240
mov ecx, edi
call fcn.005340c0
push edi
call fcn.005dd5b6
add esp, 4
push esi
call fcn.005dd5b6
add esp, 4
jmp 0x532b77
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [esi + 0x10]
call fcn.0053c910
jmp 0x532941
mov dword [edi], esi
mov edx, dword [esi + 0xb0]
mov eax, dword [edx + 0x24]
cmp eax, 4
je 0x5329c5
cmp eax, 5
je 0x5329c5
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 0x5329e2
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 0x532aa7
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 0x532a1b
cmp eax, 5
jne 0x532a62
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
push eax
push str._dkf
push ecx
call fcn.005c5558
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 0x532a62
cmp dword [ebp - 0x68], 0xffffffff
jne 0x532a62
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 0x532a7e
mov edx, dword [esi + 0x54]
cmp edx, ecx
je 0x532a96
mov dl, byte [ebp + 0xb]
test dl, dl
jne 0x532a96
sub eax, 1
sbb ecx, 0
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], ecx
jmp 0x532d8d
push str.The_last_chunk_is_full._n
mov ecx, ebx
call fcn.0052b240
jmp 0x532b3b
push eax
lea ecx, [ebp - 0x4c]
push 0x6a0000
push ecx
call fcn.005c5558
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 0x532b8c
push eax
lea eax, [ebp - 0x1fc]
push str.error_reading_registry__d_n
push eax
call fcn.005c5558
add esp, 0xc
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, ebx
call fcn.0052b240
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 0x532a85
mov edx, dword [esi + 0x54]
cmp edx, ecx
jne 0x532a85
mov eax, dword [ebp - 0x18]
push eax
call fcn.005dd5b6
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.0053c720
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 0x532bc1
cmp eax, 5
jne 0x532d8d
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.005c62ca
mov ecx, dword [ebx + 0x88]
mov edx, 0x6a0048
add esp, 0xc
mov dword [ebp - 0x14], eax
mov ecx, dword [ecx + 0x10]
test edx, edx
mov dword [ebp + 8], ecx
je 0x532d8d
test ecx, ecx
je 0x532d8d
test eax, eax
je 0x532d8d
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, 0x6a0048
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x532c73
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push 0x6a0048
push eax
push eax
call edi
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x532c73
lea eax, [eax + eax + 2]
push eax
call fcn.005dd58d
add esp, 4
mov dword [ebp - 0x34], eax
test eax, eax
je 0x532c73
mov ecx, dword [ebp - 0x2c]
push ecx
push eax
push 0xffffffffffffffff
push 0x6a0048
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.00401f60
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.00401f60
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 0x532cc2
lea eax, [ebp - 0x68]
mov ecx, dword [ebp - 0x58]
cmp ecx, edi
mov edi, ecx
jne 0x532cce
lea edi, [ebp - 0x54]
mov edx, dword [ebp - 0x2c]
push eax
mov dword [ebp + 8], edx
call fcn.005c4b4a
mov edx, eax
push edi
mov dword [ebp - 0x14], edx
call fcn.005c4b4a
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.005dd58d
mov edx, eax
mov eax, dword [ebp - 0x24]
add eax, 0x2c
add esp, 0xc
test edx, edx
mov dword [eax], edx
je 0x532d66
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 0x532d2e
lea edx, [ebp - 0x54]
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
jne 0x532d38
lea ecx, [ebp - 0x68]
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x532d42
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.005c4ada
mov eax, dword [edi]
push eax
call fcn.005c4b4a
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.005c5558
add esp, 0x38
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, ebx
call fcn.0052b240
mov edx, dword [ebp - 0x18]
push edx
call fcn.005dd5b6
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 0x532e2c
push eax
push edi
mov ecx, ebx
call fcn.00532ff0
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