Function at 0x4013b6
Capabilities:
Set registry value

Disassembly:
jmp 0x406bc0
push 0xffffffffffffffff
push 0x498149
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x4c6dd4]
xor eax, esp
mov dword [esp + 0x1ac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c6dd4]
xor eax, esp
push eax
lea eax, [esp + 0x1c4]
mov dword fs:[0], eax
push ecx
mov dword [esp + 0x20], ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x4a310a
call fcn.004012d5
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
xor ebp, ebp
push str..FileToEmail.cpp
mov dword [esp + 0x1d8], ebp
call fcn.004012d5
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.AddRegFile
mov byte [esp + 0x1dc], 1
call fcn.004012d5
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1d8], 0xffffffff
call fcn.0040130c
mov dword [esp + 0x1cc], 2
call fcn.004141fe
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x406c7c
push 0x80004005
call fcn.004013ed
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x1cc], 3
call fcn.004141fe
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x406cae
push 0x80004005
call fcn.004013ed
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x1cc], 4
call fcn.004141fe
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x406ce0
push 0x80004005
call fcn.004013ed
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0x1cc], 5
call fcn.004141fe
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x406d12
push 0x80004005
call fcn.004013ed
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x1cc], 6
call fcn.004141fe
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x406d44
push 0x80004005
call fcn.004013ed
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x1cc], 7
lea esp, [esp]
add ebp, 1
push ebp
lea ecx, [esp + 0x24]
push 0x4a36b0
push ecx
mov dword [esp + 0x34], ebp
call fcn.0040105f
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
add esp, 0xc
push str.ERROR
push edx
push 0x4a36ac
lea eax, [esp + 0x38]
push eax
call fcn.00419143
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
mov byte [esp + 0x1cc], 8
je 0x406df6
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x406de8
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x406de8
push eax
call fcn.00401140
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x406ddb
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x28]
jmp 0x406df6
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00401032
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x1cc], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406e1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
call fcn.0040115e
lea ecx, [esp + 0x18]
call fcn.004012f8
mov ebx, dword [esp + 0x18]
push str.ERROR
push ebx
call fcn.00451abe
add esp, 8
test eax, eax
setne al
test al, al
je 0x4070b0
cmp dword [ebx - 0xc], 0
je 0x4070b0
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0xc4]
push str.hpReg
push ebp
push edx
lea eax, [esp + 0x20]
push str._s_d_s.txt
push eax
call fcn.0040105f
push 0x104
lea ecx, [esp + 0xd4]
push 0
push ecx
call fcn.00451640
mov edx, dword [esp + 0x34]
push ebx
push edx
lea eax, [esp + 0xe4]
push str.regedit__e___s___s
push eax
call fcn.00451fbb
push 0x44
lea ecx, [esp + 0xac]
push 0
push ecx
call fcn.00451640
add esp, 0x3c
xor eax, eax
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x7c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0xdc]
push ecx
push 0
mov dword [esp + 0xa0], 0x44
mov word [esp + 0xd0], 0
mov dword [esp + 0xcc], 1
mov dword [esp + 0x58], 0x103
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x24]
push str.In_AddregFile___function__sleep__
push ecx
call fcn.0040105f
mov esi, dword [esp + 0x2c]
add esp, 8
push 0xffffffffffffffff
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x54], esp
mov ebp, esp
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x406f7a
cmp eax, dword [esi]
jne 0x406f7a
mov edi, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x406fb0
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x4071cb
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.004510fc
add esp, 0x10
add edi, 0x10
lea ecx, [esp + 0x58]
mov dword [ebp], edi
call fcn.0040104b
cmp dword [esp + 0x30], 0x103
je 0x406f19
mov edx, dword [esp + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x3c]
push eax
call esi
lea ecx, [esp + 0x60]
call fcn.00419801
mov ecx, dword [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x68]
mov byte [esp + 0x1d4], 9
call fcn.0041988d
test eax, eax
je 0x40709b
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0xd8]
lea ecx, [edi + 0xd0]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0041713d
mov eax, dword [esp + 0x14]
mov esi, dword [eax - 0xc]
push 0x5c
push eax
call fcn.00450c71
add esp, 8
test eax, eax
jne 0x407040
or eax, 0xffffffff
jmp 0x407044
sub eax, dword [esp + 0x14]
sub esi, eax
sub esi, 1
push esi
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401168
mov edx, dword [edi + 0xec]
lea ecx, [edi + 0xe4]
push eax
push edx
mov byte [esp + 0x1d4], 0xa
call fcn.0041713d
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x1cc], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40709b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x1cc], 7
call fcn.00419825
mov ebp, dword [esp + 0x28]
push str.ERROR
push ebx
call fcn.00451abe
add esp, 8
test eax, eax
setne al
test al, al
jne 0x406d60
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x1cc], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4070f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x1cc], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407117
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x1cc], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40713f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x1cc], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407167
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x1cc], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40718f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x1cc], 0xffffffff
call fcn.004013f2
mov ecx, dword [esp + 0x1c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1ac]
xor ecx, esp
call fcn.0045162d
add esp, 0x1bc
ret
jmp fcn.00401294