Function at 0x105535f
Capabilities:
Get file size
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push esi
mov dword [ebp - 8], ecx
mov ebx, 0x8007000e
call fcn.01054439
cmp eax, esi
je 0x105538f
push dword [ebp + 8]
push 0x1008d48
push eax
call fcn.0105b2ea
mov dword [ebp - 4], eax
jmp 0x1055392
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
jne 0x10553af
cmp dword [ebp - 4], esi
je 0x10553a5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004003
jmp 0x10555aa
cmp dword [ebp - 4], esi
je 0x10555a8
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x10553be
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 1
push esi
push esi
push dword [ebp - 4]
call ebx
cmp dword [ebp + 0xc], esi
mov edi, 0x1007494
mov eax, 0x1007490
jne 0x10553f5
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x10553f8
sub eax, edx
sar eax, 1
cmp dword [ebp + 0xc], esi
mov ecx, 0x1007490
jne 0x1055412
mov ecx, edi
lea eax, [eax + eax + 2]
push eax
mov eax, dword [ebp - 8]
push ecx
push 1
push esi
push 0x1008d40
push dword [ebp - 4]
push dword [eax + 0x14]
call fcn.0105878c
cmp dword [ebp + 0x10], esi
mov eax, 0x1007490
jne 0x105543a
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x105543d
sub eax, edx
sar eax, 1
cmp dword [ebp + 0x10], esi
mov ecx, 0x1007490
jne 0x1055457
mov ecx, edi
lea eax, [eax + eax + 2]
push eax
mov eax, dword [ebp - 8]
push ecx
push 1
push esi
push 0x1008d30
push dword [ebp - 4]
push dword [eax + 0x14]
call fcn.0105878c
push dword [ebp + 8]
call fcn.01056f43
test eax, eax
je 0x105559c
push 0x41
pop eax
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
cmp edi, esi
pop ecx
je 0x105559c
push esi
push 0x8000080
push 3
push esi
push 3
push esi
push dword [ebp + 8]
mov dword [ebp + 0x10], esi
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x1055535
lea ecx, [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x105552c
cmp dword [ebp + 0xc], esi
push eax
jbe 0x10554f6
push dword [ebp + 0xc]
push 0x10092a4
push 0x41
push edi
call fcn.01034d76
add esp, 0x14
jmp 0x1055506
push 0x1007d40
push 0x41
push edi
call fcn.01034d76
add esp, 0x10
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x105550b
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push esi
push 0x1009298
push dword [ebp - 4]
call ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.010577fc
test eax, eax
jl 0x1055595
mov eax, dword [ebp + 0x10]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [ebp + 0xc]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push 0x1007e14
push 0x41
push edi
call fcn.01034d76
mov eax, edi
add esp, 0x1c
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x1055574
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push esi
push 0x1002378
push dword [ebp - 4]
call ebx
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp - 4]
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc