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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60b163
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 0x5348f7
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.005c7c98
add esp, 0xc
lea edx, [ebp - 0x1fc]
mov ecx, ebx
push edx
call fcn.0052cfc0
mov eax, dword [ebx + 0x94]
lea ecx, [ebp - 0x4c]
inc eax
mov dword [ebp - 0x60], 0x10
push eax
push 0x6a202c
push ecx
call fcn.005c7c98
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 0x5348f7
mov eax, dword [ebp - 0x40]
push 0x50
mov dword [ebp - 0x5c], eax
call fcn.005dfcbc
mov ecx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
test ecx, ecx
mov byte [ebp - 4], 1
je 0x534503
call fcn.00535e00
mov edi, eax
jmp 0x534505
xor edi, edi
test edi, edi
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 0
je 0x5348f7
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.005c7292
lea edx, [eax + eax + 0x14]
push edx
call fcn.005dfcbc
mov esi, eax
add esp, 8
test esi, esi
mov dword [ebp - 0x18], esi
jne 0x534560
mov ecx, edi
call fcn.00535e40
push edi
call fcn.005dfce5
add esp, 4
jmp 0x5348f7
mov edx, dword [ebx + 0x94]
mov ecx, dword [ebx + 0x98]
inc edx
mov eax, edx
mov dword [ebx + 0x94], edx
cmp ecx, eax
jge 0x53457f
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.005c81cc
add esp, 0x10
mov ecx, edi
push esi
call fcn.00535ed0
test eax, eax
jne 0x5346ec
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 0x534680
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 0x53462a
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x53462a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x53462a
push eax
lea edx, [ebp - 0x1fc]
push str.Error_during_GetFileSize____errcode___ld._n
push edx
call fcn.005c7c98
add esp, 0xc
lea eax, [ebp - 0x1fc]
mov ecx, ebx
push eax
call fcn.0052cfc0
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
jmp 0x534646
mov ecx, dword [ebp - 0x78]
push 1
push 0
push 0
push ecx
call fcn.005c9b80
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 0x5346b2
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0xb0]
mov eax, dword [edx + 0x24]
cmp eax, 1
je 0x534673
cmp eax, 2
je 0x534673
test eax, eax
jne 0x53470a
mov eax, dword [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00537a00
jmp 0x5346c1
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.005c7c98
add esp, 0x10
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, ebx
call fcn.0052cfc0
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.0053e4c0
test eax, eax
je 0x534718
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.005c7c98
add esp, 0x10
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, ebx
call fcn.0052cfc0
mov ecx, edi
call fcn.00535e40
push edi
call fcn.005dfce5
add esp, 4
push esi
call fcn.005dfce5
add esp, 4
jmp 0x5348f7
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [esi + 0x10]
call fcn.0053e690
jmp 0x5346c1
mov dword [edi], esi
mov edx, dword [esi + 0xb0]
mov eax, dword [edx + 0x24]
cmp eax, 4
je 0x534745
cmp eax, 5
je 0x534745
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 0x534762
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 0x534827
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 0x53479b
cmp eax, 5
jne 0x5347e2
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
push eax
push str._dkf
push ecx
call fcn.005c7c98
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 0x5347e2
cmp dword [ebp - 0x68], 0xffffffff
jne 0x5347e2
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 0x5347fe
mov edx, dword [esi + 0x54]
cmp edx, ecx
je 0x534816
mov dl, byte [ebp + 0xb]
test dl, dl
jne 0x534816
sub eax, 1
sbb ecx, 0
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], ecx
jmp 0x534b0d
push str.The_last_chunk_is_full._n
mov ecx, ebx
call fcn.0052cfc0
jmp 0x5348bb
push eax
lea ecx, [ebp - 0x4c]
push 0x6a202c
push ecx
call fcn.005c7c98
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 0x53490c
push eax
lea eax, [ebp - 0x1fc]
push str.error_reading_registry__d_n
push eax
call fcn.005c7c98
add esp, 0xc
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, ebx
call fcn.0052cfc0
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 0x534805
mov edx, dword [esi + 0x54]
cmp edx, ecx
jne 0x534805
mov eax, dword [ebp - 0x18]
push eax
call fcn.005dfce5
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.0053e4a0
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 0x534941
cmp eax, 5
jne 0x534b0d
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.005c8a0a
mov ecx, dword [ebx + 0x88]
mov edx, 0x6a2074
add esp, 0xc
mov dword [ebp - 0x14], eax
mov ecx, dword [ecx + 0x10]
test edx, edx
mov dword [ebp + 8], ecx
je 0x534b0d
test ecx, ecx
je 0x534b0d
test eax, eax
je 0x534b0d
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, 0x6a2074
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5349f3
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push 0x6a2074
push eax
push eax
call edi
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x5349f3
lea eax, [eax + eax + 2]
push eax
call fcn.005dfcbc
add esp, 4
mov dword [ebp - 0x34], eax
test eax, eax
je 0x5349f3
mov ecx, dword [ebp - 0x2c]
push ecx
push eax
push 0xffffffffffffffff
push 0x6a2074
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.00402060
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.00402060
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 0x534a42
lea eax, [ebp - 0x68]
mov ecx, dword [ebp - 0x58]
cmp ecx, edi
mov edi, ecx
jne 0x534a4e
lea edi, [ebp - 0x54]
mov edx, dword [ebp - 0x2c]
push eax
mov dword [ebp + 8], edx
call fcn.005c7292
mov edx, eax
push edi
mov dword [ebp - 0x14], edx
call fcn.005c7292
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.005dfcbc
mov edx, eax
mov eax, dword [ebp - 0x24]
add eax, 0x2c
add esp, 0xc
test edx, edx
mov dword [eax], edx
je 0x534ae6
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 0x534aae
lea edx, [ebp - 0x54]
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
jne 0x534ab8
lea ecx, [ebp - 0x68]
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x534ac2
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.005c7222
mov eax, dword [edi]
push eax
call fcn.005c7292
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.005c7c98
add esp, 0x38
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, ebx
call fcn.0052cfc0
mov edx, dword [ebp - 0x18]
push edx
call fcn.005dfce5
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 0x534bac
push eax
push edi
mov ecx, ebx
call fcn.00534d70
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