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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62a763
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 0x549217
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.005e5bb8
add esp, 0xc
lea edx, [ebp - 0x1fc]
mov ecx, ebx
push edx
call fcn.005406a0
mov eax, dword [ebx + 0x94]
lea ecx, [ebp - 0x4c]
inc eax
mov dword [ebp - 0x60], 0x10
push eax
push 0x6c50dc
push ecx
call fcn.005e5bb8
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 0x549217
mov eax, dword [ebp - 0x40]
push 0x70
mov dword [ebp - 0x5c], eax
call fcn.005fdccd
mov ecx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
test ecx, ecx
mov byte [ebp - 4], 1
je 0x548e23
call fcn.0054a820
mov edi, eax
jmp 0x548e25
xor edi, edi
test edi, edi
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 0
je 0x549217
mov ecx, dword [ebx + 0xd4]
mov dword [edi + 0x64], ecx
mov edx, dword [ebx + 0xdc]
mov dword [edi + 0x68], edx
mov eax, dword [ebx + 0x88]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.005e519b
lea edx, [eax + eax + 0x14]
push edx
call fcn.005fdccd
mov esi, eax
add esp, 8
test esi, esi
mov dword [ebp - 0x18], esi
jne 0x548e80
mov ecx, edi
call fcn.0054a870
push edi
call fcn.005fdcf6
add esp, 4
jmp 0x549217
mov edx, dword [ebx + 0x94]
mov ecx, dword [ebx + 0x98]
inc edx
mov eax, edx
mov dword [ebx + 0x94], edx
cmp ecx, eax
jge 0x548e9f
mov dword [ebx + 0x98], eax
mov dword [edi + 0x60], 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.005e60ec
add esp, 0x10
mov ecx, edi
push esi
call fcn.0054a900
test eax, eax
jne 0x54900c
push eax
push eax
push 3
push eax
push 1
push bind
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x548fa0
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 0x548f4a
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x548f4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x548f4a
push eax
lea edx, [ebp - 0x1fc]
push str.Error_during_GetFileSize____errcode___ld._n
push edx
call fcn.005e5bb8
add esp, 0xc
lea eax, [ebp - 0x1fc]
mov ecx, ebx
push eax
call fcn.005406a0
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
jmp 0x548f66
mov ecx, dword [ebp - 0x78]
push 1
push 0
push 0
push ecx
call fcn.005e7a50
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 0x548fd2
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0xb0]
mov eax, dword [edx + 0x24]
cmp eax, 1
je 0x548f93
cmp eax, 2
je 0x548f93
test eax, eax
jne 0x54902a
mov eax, dword [ebp - 0x18]
mov ecx, esi
push eax
call fcn.0054cce0
jmp 0x548fe1
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.005e5bb8
add esp, 0x10
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, ebx
call fcn.005406a0
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.00553a50
test eax, eax
je 0x549038
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.005e5bb8
add esp, 0x10
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, ebx
call fcn.005406a0
mov ecx, edi
call fcn.0054a870
push edi
call fcn.005fdcf6
add esp, 4
push esi
call fcn.005fdcf6
add esp, 4
jmp 0x549217
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [esi + 0x10]
call fcn.00553c20
jmp 0x548fe1
mov dword [edi], esi
mov edx, dword [esi + 0xb0]
mov eax, dword [edx + 0x24]
cmp eax, 4
je 0x549065
cmp eax, 5
je 0x549065
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 0x549082
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 0x549147
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 0x5490bb
cmp eax, 5
jne 0x549102
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
push eax
push str._dkf
push ecx
call fcn.005e5bb8
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 0x549102
cmp dword [ebp - 0x68], 0xffffffff
jne 0x549102
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 0x54911e
mov edx, dword [esi + 0x54]
cmp edx, ecx
je 0x549136
mov dl, byte [ebp + 0xb]
test dl, dl
jne 0x549136
sub eax, 1
sbb ecx, 0
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], ecx
jmp 0x54942d
push str.The_last_chunk_is_full._n
mov ecx, ebx
call fcn.005406a0
jmp 0x5491db
push eax
lea ecx, [ebp - 0x4c]
push 0x6c50dc
push ecx
call fcn.005e5bb8
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 0x54922c
push eax
lea eax, [ebp - 0x1fc]
push str.error_reading_registry__d_n
push eax
call fcn.005e5bb8
add esp, 0xc
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, ebx
call fcn.005406a0
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 0x549125
mov edx, dword [esi + 0x54]
cmp edx, ecx
jne 0x549125
mov eax, dword [ebp - 0x18]
push eax
call fcn.005fdcf6
mov ecx, dword [ebx + 0x8c]
add esp, 4
mov edx, dword [ecx + 0x58]
lea ecx, [esi + 0x10]
mov dword [edi + 0x58], edx
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0x58], edi
mov dword [ebx + 0x8c], edi
mov dword [edi + 0x14], 1
call fcn.00553a30
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 0x549261
cmp eax, 5
jne 0x54942d
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.005e6852
mov ecx, dword [ebx + 0x88]
mov edx, 0x6c5124
add esp, 0xc
mov dword [ebp - 0x14], eax
mov ecx, dword [ecx + 0x10]
test edx, edx
mov dword [ebp + 8], ecx
je 0x54942d
test ecx, ecx
je 0x54942d
test eax, eax
je 0x54942d
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, 0x6c5124
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x549313
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push 0x6c5124
push eax
push eax
call edi
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x549313
lea eax, [eax + eax + 2]
push eax
call fcn.005fdccd
add esp, 4
mov dword [ebp - 0x34], eax
test eax, eax
je 0x549313
mov ecx, dword [ebp - 0x2c]
push ecx
push eax
push 0xffffffffffffffff
push 0x6c5124
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.004023c0
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.004023c0
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 0x549362
lea eax, [ebp - 0x68]
mov ecx, dword [ebp - 0x58]
cmp ecx, edi
mov edi, ecx
jne 0x54936e
lea edi, [ebp - 0x54]
mov edx, dword [ebp - 0x2c]
push eax
mov dword [ebp + 8], edx
call fcn.005e519b
mov edx, eax
push edi
mov dword [ebp - 0x14], edx
call fcn.005e519b
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.005fdccd
mov edx, eax
mov eax, dword [ebp - 0x24]
add eax, 0x2c
add esp, 0xc
test edx, edx
mov dword [eax], edx
je 0x549406
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 0x5493ce
lea edx, [ebp - 0x54]
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
jne 0x5493d8
lea ecx, [ebp - 0x68]
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x5493e2
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.005e512b
mov eax, dword [edi]
push eax
call fcn.005e519b
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 + 0x60]
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.005e5bb8
add esp, 0x38
lea ecx, [ebp - 0x1fc]
push ecx
mov ecx, ebx
call fcn.005406a0
mov edx, dword [ebp - 0x18]
push edx
call fcn.005fdcf6
mov eax, dword [ebx + 0x8c]
add esp, 4
mov ecx, dword [eax + 0x58]
mov eax, dword [ebp - 0x5c]
mov dword [edi + 0x58], ecx
mov edx, dword [ebx + 0x8c]
cmp eax, 0xffffffff
mov dword [edx + 0x58], edi
mov dword [esi + 0x90], edi
mov dword [ebx + 0x8c], edi
je 0x5494cc
push eax
push edi
mov ecx, ebx
call fcn.00549690
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