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

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x63718b
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x34], esi
mov ebx, dword [ebp + 0x7c]
xor edi, edi
cmp dword [esi + 0xdc], edi
je 0x545107
mov dword [ebp - 4], edi
lea ecx, [ebp + 0x14]
call fcn.004024e0
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x94]
inc eax
push eax
push str.insert_from_reg__ID___d_n
lea ecx, [ebp + 0x14]
push ecx
call fcn.00402f60
add esp, 0xc
mov edx, dword [ebp + 0x14]
push edx
mov ecx, esi
call fcn.00540ff0
mov dword [ebp - 0x28], 0x10
mov eax, dword [esi + 0x94]
inc eax
push eax
push 0x64f36c
lea ecx, [ebp + 0x68]
push ecx
call fcn.005fb4cb
add esp, 0xc
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x20]
push eax
push edi
push edi
lea ecx, [ebp + 0x68]
push ecx
mov edx, dword [esi + 0xdc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5450fb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
push 0x70
call fcn.005cfa6c
add esp, 4
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 2
cmp eax, edi
je 0x545093
mov ecx, eax
call fcn.0054bbb0
mov edi, eax
mov byte [ebp - 4], 1
test edi, edi
je 0x5450fb
mov ecx, dword [esi + 0xd4]
mov dword [edi + 0x64], ecx
mov edx, dword [esi + 0xdc]
mov dword [edi + 0x68], edx
mov eax, dword [esi + 0x88]
mov eax, dword [eax + 0x10]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5450c0
sub eax, edx
sar eax, 1
add eax, 0xa
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005cfaa6
add esp, 4
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x54512a
push 1
mov ecx, edi
call fcn.00540fa0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.00402550
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x74
mov esp, ebp
pop ebp
ret 4
inc dword [esi + 0x94]
mov ecx, dword [esi + 0x94]
cmp dword [esi + 0x98], ecx
jge 0x545144
mov dword [esi + 0x98], ecx
mov dword [edi + 0x60], ecx
mov ecx, dword [esi + 0x94]
push ecx
mov edx, dword [esi + 0x88]
mov ecx, dword [edx + 0x10]
push ecx
push str._s_d
push eax
call fcn.0040fac0
add esp, 0x10
mov edx, dword [ebp + 0x10]
push edx
mov ecx, edi
call fcn.0054b8c0
test eax, eax
je 0x54518f
push 1
mov ecx, edi
call fcn.00540fa0
mov eax, dword [ebp + 0x10]
push eax
call fcn.005cfa9b
add esp, 4
jmp 0x5450fb
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x545250
lea edx, [ebp - 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp], eax
xor ecx, ecx
mov dword [ebp + 4], ecx
cmp eax, 0xffffffff
jne 0x545201
test ecx, ecx
jne 0x545201
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x545201
push eax
push str.Error_during_GetFileSize____errcode___ld._n
lea eax, [ebp + 0x14]
push eax
call fcn.00402f60
add esp, 0xc
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, esi
call fcn.00540ff0
xor eax, eax
mov dword [ebp], eax
mov dword [ebp + 4], eax
jmp 0x545216
push 1
push 0
push 0
mov edx, dword [ebp - 0x30]
push edx
call fcn.005fd4d0
add dword [ebp], eax
adc dword [ebp + 4], edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp]
or edx, dword [ebp + 4]
je 0x54529b
mov eax, dword [ebx + 0xb0]
mov eax, dword [eax + 0x24]
cmp eax, 1
je 0x545243
cmp eax, 2
je 0x545243
test eax, eax
jne 0x545305
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, ebx
call fcn.0054c620
jmp 0x5452a7
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00417ab0
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp + 0xc]
push edx
push str.Error_opening_file__s_to_get_size__errcode___ld._n
lea eax, [ebp + 0x14]
push eax
call fcn.00402f60
add esp, 0x10
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, esi
call fcn.00540ff0
xor eax, eax
mov dword [ebp], eax
mov dword [ebp + 4], eax
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00402550
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebx + 0x10]
call fcn.00554f70
mov dword [ebp + 0xc], eax
test eax, eax
je 0x545313
mov ebx, dword [ebp + 0x10]
push ebx
lea ecx, [ebp + 0x10]
call fcn.00417ab0
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push str.Error_opening_file__s__errcode___ld._n
lea eax, [ebp + 0x14]
push eax
call fcn.00402f60
add esp, 0x10
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, esi
call fcn.00540ff0
push 1
mov ecx, edi
call fcn.00540fa0
push ebx
call fcn.005cfa9b
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.00402550
jmp 0x5450fb
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebx + 0x10]
call fcn.00555550
jmp 0x5452a7
mov dword [edi], ebx
mov edx, dword [ebx + 0xb0]
mov eax, dword [edx + 0x24]
cmp eax, 4
je 0x54533c
cmp eax, 5
je 0x54533c
mov eax, dword [ebp - 0x18]
add eax, dword [ebp]
mov ecx, dword [ebp - 0x14]
adc ecx, dword [ebp + 4]
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], ecx
jmp 0x545359
mov edx, dword [ebp - 0x18]
mov dword [edi + 0x1c], edx
mov eax, dword [ebp - 0x14]
mov ecx, eax
sar ecx, 0x1f
mov dword [edi + 0x24], eax
mov edx, dword [ebp]
mov dword [ebx + 0x50], edx
mov eax, dword [ebp + 4]
mov dword [ebx + 0x54], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
jne 0x545459
mov dword [esi + 0xcc], 0
mov ecx, dword [esi + 0x98]
mov dword [esi + 0x94], ecx
mov byte [ebp + 0xb], 0
mov edx, dword [ebx + 0xb0]
mov eax, dword [edx + 0x24]
cmp eax, 4
je 0x545392
cmp eax, 5
jne 0x5453d9
mov eax, dword [ebp - 0x20]
push eax
push str._dkf
lea ecx, [ebp + 0x58]
push ecx
call fcn.005fb4cb
add esp, 0xc
mov dword [ebp + 0xc], 0x10
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x44]
push eax
push 0
push 0
lea ecx, [ebp + 0x58]
push ecx
mov edx, dword [esi + 0xdc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5453d9
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x5453d9
mov byte [ebp + 0xb], 1
mov eax, dword [esi + 0x88]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x48]
mov ecx, dword [ecx + 0x4c]
mov edx, dword [ebx + 0x50]
cmp edx, eax
jne 0x5453f5
mov edx, dword [ebx + 0x54]
cmp edx, ecx
je 0x54540c
cmp byte [ebp + 0xb], 0
jne 0x54540c
sub eax, 1
sbb ecx, 0
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], ecx
jmp 0x54554e
push str.The_last_chunk_is_full._n
mov ecx, esi
call fcn.00540ff0
mov eax, dword [ebp + 0x10]
push eax
call fcn.005cfa9b
add esp, 4
mov ecx, dword [esi + 0x8c]
mov edx, dword [ecx + 0x58]
mov dword [edi + 0x58], edx
mov eax, dword [esi + 0x8c]
mov dword [eax + 0x58], edi
mov dword [esi + 0x8c], edi
mov dword [edi + 0x14], 1
lea ecx, [ebx + 0x10]
call fcn.00554f50
mov dword [edi], 0
jmp 0x5450fb
push eax
push 0x64f36c
lea ecx, [ebp + 0x68]
push ecx
call fcn.005fb4cb
add esp, 0xc
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x20]
push eax
push 0
push 0
lea ecx, [ebp + 0x68]
push ecx
mov edx, dword [esi + 0xdc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x5454e8
push eax
push str.error_reading_registry__d_n
lea eax, [ebp + 0x14]
push eax
call fcn.00402f60
add esp, 0xc
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, esi
call fcn.00540ff0
mov dword [esi + 0xcc], 0
mov edx, dword [esi + 0x98]
mov dword [esi + 0x94], edx
mov eax, dword [esi + 0x88]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x48]
mov ecx, dword [ecx + 0x4c]
mov edx, dword [ebx + 0x50]
cmp edx, eax
jne 0x5453fb
mov edx, dword [ebx + 0x54]
cmp edx, ecx
jne 0x5453fb
jmp 0x545418
mov ecx, dword [ebp - 0x18]
mov edx, ecx
sub edx, 1
mov eax, dword [ebp - 0x14]
sbb eax, 0
mov dword [ebx + 0x60], edx
mov dword [ebx + 0x64], eax
mov edx, dword [ebp - 0x20]
dec edx
mov dword [esi + 0x94], edx
mov eax, dword [ebx + 0xb0]
mov eax, dword [eax + 0x24]
cmp eax, 4
je 0x545519
cmp eax, 5
jne 0x54554e
mov dword [edi + 0x20], ecx
mov ecx, dword [ebp - 0x20]
mov dword [edi + 0x28], ecx
push 0
push 0xa
lea edx, [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.005fb352
add esp, 0xc
push eax
mov ecx, dword [esi + 0x88]
mov edx, dword [ecx + 0x10]
push edx
push 0x64ed70
lea ecx, [edi + 0x2c]
call fcn.00402300
xor eax, eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x6c], eax
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x24]
call fcn.00417ab0
mov byte [ebp - 4], 5
mov ecx, dword [edi + 0x20]
push ecx
mov edx, dword [edi + 0x1c]
push edx
mov eax, dword [ebx + 0x94]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
mov eax, dword [ebx + 0x64]
push eax
mov ecx, dword [ebx + 0x60]
push ecx
mov edx, dword [ebp + 4]
push edx
mov eax, dword [ebp]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov eax, dword [edi]
mov edx, dword [eax + 0x54]
push edx
mov eax, dword [eax + 0x50]
push eax
mov ecx, dword [edi + 0x60]
push ecx
push str.new_listitem_id_d__startpos_I64d__file__s___ndwnl_I64d__endpos_I64d__ttdwnl_I64d_nsttm_ld__etm_ld_n
lea edx, [ebp + 0x14]
push edx
call fcn.00402f60
add esp, 0x38
mov eax, dword [ebp + 0x14]
push eax
mov ecx, esi
call fcn.00540ff0
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.005cfa9b
add esp, 4
mov edx, dword [esi + 0x8c]
mov eax, dword [edx + 0x58]
mov dword [edi + 0x58], eax
mov ecx, dword [esi + 0x8c]
mov dword [ecx + 0x58], edi
mov dword [ebx + 0x90], edi
mov dword [esi + 0x8c], edi
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x5455f7
push eax
push edi
mov ecx, esi
call fcn.005439c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00402550
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.00402550
mov eax, 1
jmp 0x545109