Function at 0x544800
Capabilities:
Get file size
Query or enumerate registry value
Read file on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62acf6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8a8
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x88]
mov dword [ebp - 0x10], esp
test eax, eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 4], 0
je 0x54483f
call fcn.00542800
push 0x70
call fcn.005ffe3f
mov ecx, eax
add esp, 4
mov dword [ebp - 0x24], ecx
test ecx, ecx
mov byte [ebp - 4], 1
je 0x54485d
call fcn.0054c9c0
jmp 0x54485f
xor eax, eax
test eax, eax
mov byte [ebp - 4], 0
mov dword [ebx + 0x88], eax
jne 0x544885
mov eax, 0x753b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebx + 0xd4]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [eax + 0x64], ecx
mov edx, dword [ebx + 0x88]
mov eax, dword [ebx + 0xdc]
push edi
mov dword [edx + 0x68], eax
mov ecx, dword [ebx + 0x88]
mov dword [ecx], esi
mov ecx, dword [ebx + 0x88]
call fcn.0054caa0
test eax, eax
je 0x5448f7
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x5448d5
mov ecx, esi
call fcn.0054ca10
push esi
call fcn.005ffe68
add esp, 4
mov dword [ebx + 0x88], 0
mov eax, 0x753b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [0x6cd768]
mov dword [ebp - 0x14], edx
mov eax, dword [ebx + 0xcc]
mov byte [ebp - 4], 2
test eax, eax
je 0x544e7d
mov eax, dword [esi + 0xb0]
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x68]
push ecx
push edx
mov byte [eax + 0x161], 1
mov eax, dword [ebx + 0xdc]
push 0
push 0
push 0x6a8834
push eax
mov dword [ebp - 0x40], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x544e35
mov ecx, dword [ebp + 0xc]
push eax
push eax
push 3
push eax
push 1
push bind
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x544a10
lea edx, [ebp - 0x70]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
jne 0x5449bc
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x5449bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5449bc
push eax
lea eax, [ebp - 0x14]
push str.Error_in_GetFileSize____errcode___ld._n
push eax
call fcn.005fc86b
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.005427e0
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x5449d8
mov edx, dword [ebp - 0x70]
push 1
push 0
push 0
push edx
call fcn.005e9a70
mov ecx, dword [ebp - 0x1c]
add ecx, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
adc eax, edx
push edi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
or eax, ecx
je 0x544a3f
mov ecx, dword [esi + 0xb0]
mov eax, dword [ecx + 0x24]
cmp eax, 1
je 0x544a03
cmp eax, 2
je 0x544a03
test eax, eax
jne 0x544a3f
mov edi, dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.0054ee90
jmp 0x544a4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
push str.Error_opening_file__ls__errcode___ld._n
push ecx
call fcn.005fc86b
mov edx, dword [ebp - 0x14]
add esp, 0x10
mov ecx, ebx
push edx
call fcn.005427e0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov edi, dword [ebp + 0xc]
lea ecx, [esi + 0x10]
push edi
call fcn.00555dd0
test eax, eax
je 0x544a80
push eax
push edi
lea edx, [ebp - 0x14]
push str.Error_opening_file__ls__errcode___ld._n
push edx
call fcn.005fc86b
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov ecx, ebx
push eax
call fcn.005427e0
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x544ec4
jmp 0x544eb4
mov ecx, dword [esi + 0xb0]
mov eax, dword [ecx + 0xe0]
test eax, eax
jne 0x544bb3
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x544bb3
jg 0x544aae
cmp dword [ebp - 0x1c], 0x800
jb 0x544bb3
push 0
push 0
push 3
push 0
push 3
push bind
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x544bb3
mov ecx, 0x200
xor eax, eax
lea edi, [ebp - 0x8b4]
lea edx, [ebp - 0x2c]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x20]
push 0
stosb byte es:[edi], al
push edx
lea eax, [ebp - 0x8b4]
push 0x800
push eax
push ecx
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x544ba9
cmp dword [ebp - 0x2c], 0x800
jne 0x544ba9
push 0x10
call fcn.005ffe3f
mov edi, eax
add esp, 4
mov dword [ebp - 0x28], edi
test edi, edi
mov byte [ebp - 4], 3
je 0x544b97
push 0x800
mov dword [edi + 4], 0
call fcn.005ffe3f
add esp, 4
mov dword [ebp - 0x24], eax
test eax, eax
mov dword [edi], eax
je 0x544b8d
mov edx, dword [edi + 4]
lea eax, [edx + 0x800]
cmp eax, 0x800
jl 0x544b61
mov eax, 0x800
cmp eax, edx
jle 0x544b8d
mov edi, dword [ebp - 0x24]
mov ecx, eax
sub ecx, edx
add edi, edx
mov edx, ecx
lea esi, [ebp - 0x8b4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp + 8]
mov edi, ecx
mov dword [ecx + 4], eax
xor eax, eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
jmp 0x544b99
xor edi, edi
mov edx, dword [esi + 0xb0]
mov byte [ebp - 4], 2
mov dword [edx + 0xe0], edi
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], ecx
mov ecx, dword [esi + 0x94]
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], eax
mov edx, dword [ebx + 0xa0]
mov dword [ecx], edx
mov eax, dword [ebx + 0xa4]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x64]
cmp eax, 0xffffffff
jne 0x544bf7
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0xcc], eax
jmp 0x544df4
push eax
lea ecx, [ebp - 0x1c]
push 0x6a10e4
push ecx
call fcn.005e7bd3
add esp, 0xc
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x68]
xor edi, edi
push edx
mov edx, dword [ebx + 0xdc]
push eax
push edi
lea ecx, [ebp - 0x1c]
push edi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x544c3b
mov dword [ebx + 0x94], edi
mov dword [ebx + 0xcc], edi
jmp 0x544df4
mov edx, dword [ebx + 0x88]
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
sub eax, 1
mov edx, dword [edx]
sbb ecx, edi
mov dword [edx + 0x60], eax
mov dword [edx + 0x64], ecx
mov eax, dword [ebp - 0x68]
dec eax
mov dword [ebx + 0x94], eax
mov eax, dword [ebx + 0x88]
mov dword [ebx + 0x8c], eax
mov ecx, dword [esi + 0xb0]
mov ecx, dword [ecx + 0x24]
cmp ecx, 4
je 0x544c81
cmp ecx, 5
jne 0x544df4
mov edx, dword [ebp - 0x60]
push 0xa
mov dword [eax + 0x20], edx
mov eax, dword [ebx + 0x88]
mov ecx, dword [ebp - 0x68]
lea edx, [ebp - 0xb0]
mov dword [eax + 0x28], ecx
mov eax, dword [ebp - 0x68]
push edx
push eax
call fcn.005e8872
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x88]
mov ecx, 0x6a112c
add esp, 0xc
mov edi, dword [eax + 0x10]
add eax, 0x2c
test ecx, ecx
mov dword [ebp + 8], eax
je 0x544df4
test edi, edi
je 0x544df4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x544df4
xor eax, eax
push eax
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
mov word [ebp - 0x34], ax
call fcn.00402e00
xor eax, eax
push edi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x50], eax
mov word [ebp - 0x54], ax
call fcn.00402410
mov edx, dword [ebp - 0x20]
xor edi, edi
push edx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x44], edi
mov word [ebp - 0x48], di
call fcn.00402410
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 6
call fcn.00401070
mov eax, dword [ebp - 0x58]
cmp eax, edi
jne 0x544d3b
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0x4c]
cmp ecx, edi
mov edi, ecx
jne 0x544d47
lea edi, [ebp - 0x48]
mov ecx, dword [ebp - 0x30]
push eax
mov dword [ebp - 0x24], ecx
call fcn.005e71bf
mov edx, eax
push edi
mov dword [ebp - 0x20], edx
call fcn.005e71bf
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
add ecx, edx
lea eax, [eax + ecx + 3]
mov dword [ebp - 0x24], eax
lea edi, [eax + eax]
push edi
call fcn.005ffe3f
mov edx, eax
mov eax, dword [ebp + 8]
add esp, 0xc
test edx, edx
mov dword [eax], edx
je 0x544dd0
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
lea ecx, [ebp - 0x4c]
call fcn.00402400
push eax
lea ecx, [ebp - 0x58]
call fcn.00402400
push eax
lea ecx, [ebp - 0x38]
call fcn.00402400
mov edi, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [edi]
push eax
push ecx
call fcn.005e714f
mov edx, dword [edi]
push edx
call fcn.005e71bf
add esp, 0x18
mov dword [edi + 8], eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.00401070
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00401070
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00401070
mov ecx, dword [ebx + 0x88]
mov eax, dword [ecx]
mov ecx, dword [ecx + 0x60]
mov edx, dword [eax + 0x64]
push edx
mov edx, dword [eax + 0x60]
push edx
mov edx, dword [ebp + 0xc]
push edx
mov edx, dword [eax + 0x54]
mov eax, dword [eax + 0x50]
push edx
push eax
push ecx
lea edx, [ebp - 0x14]
push str.first_listitem_id___d__startpos___I64d__file__ls__endpos___I64d_n
push edx
call fcn.005fc86b
mov eax, dword [ebp - 0x14]
add esp, 0x20
mov ecx, ebx
push eax
call fcn.005427e0
jmp 0x544f16
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x544e4f
mov ecx, esi
call fcn.0054ca10
push esi
call fcn.005ffe68
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebx + 0x88], 0
mov byte [ebp - 4], 0
call fcn.00603a3c
mov eax, 0x7541
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
lea ecx, [esi + 0x10]
call fcn.00555c00
xor ecx, ecx
cmp eax, ecx
je 0x544ef2
push eax
push edi
lea ecx, [ebp - 0x14]
push str.Error_opening_file__ls__errcode___ld._n
push ecx
call fcn.005fc86b
mov edx, dword [ebp - 0x14]
add esp, 0x10
mov ecx, ebx
push edx
call fcn.005427e0
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x544ec4
mov ecx, esi
call fcn.0054ca10
push esi
call fcn.005ffe68
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebx + 0x88], 0
mov byte [ebp - 4], 0
call fcn.00603a3c
mov eax, 0x7534
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x17c], 0x40
mov dword [esi + 0x180], ecx
mov byte [esi + 0xc6], 0
mov byte [esi + 0xc7], 0
mov dword [ebx + 0x94], ecx
mov eax, dword [ebx + 0x88]
xor edi, edi
mov dword [esi + 0x90], eax
mov ecx, dword [ebx + 0x88]
mov dword [ecx + 0x60], edi
mov edx, dword [ebx + 0x88]
mov dword [edx + 0x58], edi
mov eax, dword [ebx + 0xcc]
cmp eax, edi
jne 0x544f70
mov eax, dword [ebx + 0xdc]
cmp eax, edi
je 0x544f87
lea ecx, [ebp - 0x3c]
push 0x10
push ecx
push edi
push edi
push 0x6a8834
push eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x38], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x544f87
mov eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x544f87
mov edx, dword [ebx + 0x88]
push eax
push edx
mov ecx, ebx
call fcn.0054b7a0
mov eax, dword [ebx + 0x88]
mov ecx, dword [esi + 0x50]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x54]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x64]
mov dword [esi + 0x5c], ecx
cmp eax, edi
jl 0x544fcd
jg 0x544fb3
cmp dword [esi + 0x60], edi
jbe 0x544fcd
mov edx, dword [esi + 0xb0]
mov eax, dword [edx + 0x24]
cmp eax, 4
je 0x544fcd
cmp eax, 5
je 0x544fcd
mov ecx, esi
call fcn.00551540
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00603a3c
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 8