Function at 0x4645f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d27c0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x518f10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0xe
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x1c], ebx
call fcn.0042481b
mov eax, dword [eax]
push str._CAMEYO_VAR_
push eax
call fcn.004b1f00
add esp, 8
cmp eax, ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
setne byte [ebp - 0xd]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464666
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], bl
je 0x4647c4
lea edi, [ebp + 0xc]
call fcn.004643a0
test eax, eax
je 0x4646f2
mov ecx, edi
push ecx
lea edx, [ebp - 0x14]
push str._CAMEYO_VAR_
push edx
call fcn.004248d0
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00424d3a
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4646bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0xc]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.RegDiff_PostScan_RecurseDirs:_setting_variablized_SZ_value_as:__s__File_
call fcn.0042462c
push ecx
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.General
call fcn.0042462c
push 1
mov byte [ebp - 4], bl
call fcn.0046b810
add esp, 0x10
push 0x4e5ed4
push 0x4e1f68
lea edx, [ebp + 0xc]
push edx
call fcn.0042ad3b
push 0x4f856c
push 0x4e51bc
lea eax, [ebp + 0xc]
push eax
call fcn.0042ad3b
push 0x4f8574
push 0x4ec364
lea ecx, [ebp + 0xc]
push ecx
call fcn.0042ad3b
push 0x4e55dc
push 0x4e248c
lea edx, [ebp + 0xc]
push edx
call fcn.0042ad3b
push 0x4f857c
push 0x4f8584
lea eax, [ebp + 0xc]
push eax
call fcn.0042ad3b
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00464b30
add esp, 4
lea edx, [ebp - 0x14]
push edx
mov esi, eax
mov byte [ebp - 4], 4
call fcn.0042bc10
add esp, 4
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 5
call fcn.00424d3a
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4647a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4647c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 0xc]
push ebx
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [ebp + 8]
add ecx, ecx
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464803
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret