Function at 0x543a50
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 0x629d06
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 0x543a8f
call fcn.00541a50
push 0x70
call fcn.005feedc
mov ecx, eax
add esp, 4
mov dword [ebp - 0x24], ecx
test ecx, ecx
mov byte [ebp - 4], 1
je 0x543aad
call fcn.0054bc10
jmp 0x543aaf
xor eax, eax
test eax, eax
mov byte [ebp - 4], 0
mov dword [ebx + 0x88], eax
jne 0x543ad5
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.0054bcf0
test eax, eax
je 0x543b47
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x543b25
mov ecx, esi
call fcn.0054bc60
push esi
call fcn.005fef05
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 [0x6cc708]
mov dword [ebp - 0x14], edx
mov eax, dword [ebx + 0xcc]
mov byte [ebp - 4], 2
test eax, eax
je 0x5440cd
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 0x6a7814
push eax
mov dword [ebp - 0x40], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x544085
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 0x543c60
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 0x543c0c
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x543c0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x543c0c
push eax
lea eax, [ebp - 0x14]
push str.Error_in_GetFileSize____errcode___ld._n
push eax
call fcn.005fb90b
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.00541a30
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x543c28
mov edx, dword [ebp - 0x70]
push 1
push 0
push 0
push edx
call fcn.005e8c50
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 0x543c8f
mov ecx, dword [esi + 0xb0]
mov eax, dword [ecx + 0x24]
cmp eax, 1
je 0x543c53
cmp eax, 2
je 0x543c53
test eax, eax
jne 0x543c8f
mov edi, dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.0054e0e0
jmp 0x543c9b
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.005fb90b
mov edx, dword [ebp - 0x14]
add esp, 0x10
mov ecx, ebx
push edx
call fcn.00541a30
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.00555020
test eax, eax
je 0x543cd0
push eax
push edi
lea edx, [ebp - 0x14]
push str.Error_opening_file__ls__errcode___ld._n
push edx
call fcn.005fb90b
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov ecx, ebx
push eax
call fcn.00541a30
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x544114
jmp 0x544104
mov ecx, dword [esi + 0xb0]
mov eax, dword [ecx + 0xe0]
test eax, eax
jne 0x543e03
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x543e03
jg 0x543cfe
cmp dword [ebp - 0x1c], 0x800
jb 0x543e03
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 0x543e03
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 0x543df9
cmp dword [ebp - 0x2c], 0x800
jne 0x543df9
push 0x10
call fcn.005feedc
mov edi, eax
add esp, 4
mov dword [ebp - 0x28], edi
test edi, edi
mov byte [ebp - 4], 3
je 0x543de7
push 0x800
mov dword [edi + 4], 0
call fcn.005feedc
add esp, 4
mov dword [ebp - 0x24], eax
test eax, eax
mov dword [edi], eax
je 0x543ddd
mov edx, dword [edi + 4]
lea eax, [edx + 0x800]
cmp eax, 0x800
jl 0x543db1
mov eax, 0x800
cmp eax, edx
jle 0x543ddd
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 0x543de9
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 0x543e47
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0xcc], eax
jmp 0x544044
push eax
lea ecx, [ebp - 0x1c]
push 0x6a00e4
push ecx
call fcn.005e6db3
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 0x543e8b
mov dword [ebx + 0x94], edi
mov dword [ebx + 0xcc], edi
jmp 0x544044
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 0x543ed1
cmp ecx, 5
jne 0x544044
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.005e7a52
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x88]
mov ecx, 0x6a012c
add esp, 0xc
mov edi, dword [eax + 0x10]
add eax, 0x2c
test ecx, ecx
mov dword [ebp + 8], eax
je 0x544044
test edi, edi
je 0x544044
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x544044
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 0x543f8b
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0x4c]
cmp ecx, edi
mov edi, ecx
jne 0x543f97
lea edi, [ebp - 0x48]
mov ecx, dword [ebp - 0x30]
push eax
mov dword [ebp - 0x24], ecx
call fcn.005e639f
mov edx, eax
push edi
mov dword [ebp - 0x20], edx
call fcn.005e639f
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.005feedc
mov edx, eax
mov eax, dword [ebp + 8]
add esp, 0xc
test edx, edx
mov dword [eax], edx
je 0x544020
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.005e632f
mov edx, dword [edi]
push edx
call fcn.005e639f
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.005fb90b
mov eax, dword [ebp - 0x14]
add esp, 0x20
mov ecx, ebx
push eax
call fcn.00541a30
jmp 0x544166
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x54409f
mov ecx, esi
call fcn.0054bc60
push esi
call fcn.005fef05
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebx + 0x88], 0
mov byte [ebp - 4], 0
call fcn.00602ad6
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.00554e50
xor ecx, ecx
cmp eax, ecx
je 0x544142
push eax
push edi
lea ecx, [ebp - 0x14]
push str.Error_opening_file__ls__errcode___ld._n
push ecx
call fcn.005fb90b
mov edx, dword [ebp - 0x14]
add esp, 0x10
mov ecx, ebx
push edx
call fcn.00541a30
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x544114
mov ecx, esi
call fcn.0054bc60
push esi
call fcn.005fef05
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebx + 0x88], 0
mov byte [ebp - 4], 0
call fcn.00602ad6
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 0x5441c0
mov eax, dword [ebx + 0xdc]
cmp eax, edi
je 0x5441d7
lea ecx, [ebp - 0x3c]
push 0x10
push ecx
push edi
push edi
push 0x6a7814
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 0x5441d7
mov eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5441d7
mov edx, dword [ebx + 0x88]
push eax
push edx
mov ecx, ebx
call fcn.0054a9f0
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 0x54421d
jg 0x544203
cmp dword [esi + 0x60], edi
jbe 0x54421d
mov edx, dword [esi + 0xb0]
mov eax, dword [edx + 0x24]
cmp eax, 4
je 0x54421d
cmp eax, 5
je 0x54421d
mov ecx, esi
call fcn.00550790
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00602ad6
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