Function at 0x10003970
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x10010040]
xor eax, esp
mov dword [esp + 0x44], eax
cmp dword [0x100100a8], 0
mov eax, ecx
push esi
push edi
mov dword [esp + 0x38], eax
je 0x10004080
lea esi, [eax + 0xc]
mov dword [0xe8cb3c], 1
push 1
mov eax, 0x791050
call eax
add esp, 4
test al, al
je 0x100039c6
mov dword [esi], 1
mov dword [0xe8cb3c], 1
mov eax, dword [0x879340c]
movss xmm0, dword [0x1000d81c]
sub eax, 0x78
movss dword [esp + 0xc], xmm0
cmp eax, 0x6c
ja 0x10003b33
mov eax, dword [0x8793410]
sub eax, 0x5a
cmp eax, 0x1e
ja 0x10003b33
sub esp, 0x18
mov edi, 0x790e40
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x41f40000
mov dword [esp + 8], 0x42d80000
mov dword [esp + 4], 0x42b40000
mov dword [esp], 0x42f00001
push 0x1b20d
call edi
add esp, 0x1c
cmp dword [esi], 0
je 0x10003b74
push 0x10
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
push str.StartWithAccount
lea ecx, [esp + 0x18]
movaps xmmword [esp + 0x18], xmm0
mov dword [esp + 0x2c], 0
call fcn.100063e0
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], 0
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10003ad1
cmp dword [esp + 0x24], 0xf
lea ecx, [esp + 0x3c]
push 4
push ecx
push 4
lea eax, [esp + 0x1c]
cmova eax, dword [esp + 0x1c]
push 0
push eax
push dword [esp + 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x24]
cmp ecx, 0xf
jbe 0x10003b09
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003aff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10003aff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1000a0e8
add esp, 8
call fcn.10003270
mov dword [0x100100a8], 0
mov dword [0xe8cb3c], 0
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.10009d90
mov esp, ebp
pop ebp
ret
sub esp, 0x18
mov edi, 0x790e40
mov dword [esp + 0x14], 0x42740000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x41f40000
mov dword [esp + 8], 0x42d80000
mov dword [esp + 4], 0x42b40000
mov dword [esp], 0x42f00001
push 0x1b20d
call edi
add esp, 0x1c
mov eax, dword [0x879340c]
cmp eax, 0x165
jl 0x10003bb7
cmp eax, 0x189
jg 0x10003bb7
mov eax, dword [0x8793410]
sub eax, 0x5a
cmp eax, 0x1c
ja 0x10003bb7
mov eax, dword [esp + 0x38]
cmp dword [eax + 0xc], 0
je 0x10003bb7
mov dword [0x100100a8], 0
mov dword [0xe8cb3c], 0
jmp 0x10004079
sub esp, 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x41e00000
mov dword [esp + 8], 0x42100000
mov dword [esp + 4], 0x42b40000
mov dword [esp], 0x43b28000
push 0x1b20c
call edi
add esp, 0x14
push str.New_Account
push 0x6a
push 0xb8
call fcn.100080f0
movd xmm0, dword [0x10010844]
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x1000d800]
cvttss2si esi, xmm0
test esi, esi
je 0x10003d88
cmp dword [0x10010994], 0
jle 0x10003c68
sub esp, 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x41f00000
mov dword [esp + 8], 0x41ec0000
mov dword [esp + 4], 0x43460000
mov dword [esp], 0x42000000
push 0x1b20f
call edi
add esp, 0x1c
cmp dword [0x10010994], esi
jge 0x10003cac
sub esp, 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x41f00000
mov dword [esp + 0xc], 0x42000000
mov dword [esp + 8], 0x41f00000
mov dword [esp + 4], 0x43460000
mov dword [esp], 0x44148000
push 0x1b20f
call edi
add esp, 0x1c
cmp dword [0x10010994], 0
jle 0x10003cd7
mov eax, dword [0x879340c]
cmp eax, 0x20
jl 0x10003cd7
cmp eax, 0x3d
jg 0x10003cd7
mov eax, dword [0x8793410]
cmp eax, 0xc6
jl 0x10003cd7
cmp eax, 0xe4
jle 0x10003ce7
push 0x25
mov eax, 0x791050
call eax
add esp, 4
test al, al
je 0x10003d07
mov eax, dword [esp + 0x38]
cmp dword [eax + 0xc], 0
jne 0x10003d01
push 0x25
mov eax, 0x791050
call eax
add esp, 4
test al, al
je 0x10003d07
dec dword [0x10010994]
cmp dword [0x10010994], esi
jge 0x10003d35
mov eax, dword [0x879340c]
cmp eax, 0x252
jl 0x10003d35
cmp eax, 0x270
jg 0x10003d35
mov eax, dword [0x8793410]
cmp eax, 0xc6
jl 0x10003d35
cmp eax, 0xe6
jle 0x10003d45
push 0x27
mov eax, 0x791050
call eax
add esp, 4
test al, al
je 0x10003d65
mov eax, dword [esp + 0x38]
cmp dword [eax + 0xc], 0
jne 0x10003d5f
push 0x27
mov eax, 0x791050
call eax
add esp, 4
test al, al
je 0x10003d65
inc dword [0x10010994]
cmp dword [0x10010994], esi
jle 0x10003d75
mov dword [0x10010994], esi
jmp 0x10003d88
cmp dword [0x10010994], 0
jge 0x10003d88
mov dword [0x10010994], 0
mov eax, dword [0x10010994]
xor ecx, ecx
lea esi, [eax + eax*4]
cmp esi, dword [0x10010844]
jge 0x1000406f
inc ecx
mov edx, 0x41fe10
mov dword [esp + 0x40], ecx
cmp ecx, 6
jge 0x1000406f
push 0xff
push 0xff
push 0xff
push 0xff
call edx
mov ecx, eax
mov eax, 0x420040
call eax
movaps xmm0, xmmword [0x1000d840]
mov ecx, 0x100100b4
imul eax, esi, 0xb
movups xmmword [0x100100f8], xmm0
add eax, 0x100106f8
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10003e10
test dl, dl
je 0x10003e0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10003e10
add eax, 2
add ecx, 2
test dl, dl
jne 0x10003df0
xor eax, eax
jmp 0x10003e15
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10003f0a
push 0xff
push eax
push eax
push 0xff
mov eax, 0x41fe10
call eax
mov ecx, eax
mov eax, 0x420040
call eax
movaps xmm0, xmmword [0x1000d830]
movups xmmword [0x100100f8], xmm0
movss xmm0, dword [esp + 0xc]
sub esp, 0x18
mov dword [esp + 0x14], 0x41e00000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x41e00000
mov dword [esp + 8], 0x426c0000
mov dword [esp + 4], 0x43160000
movss dword [esp], xmm0
push 0x1b20e
call edi
add esp, 0x1c
imul ecx, esi, 0xb
add ecx, 0x100106f8
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003e93
movss xmm1, dword [esp + 0xc]
sub ecx, edx
cvtps2pd xmm1, xmm1
sub esp, 8
imul eax, esi, 0xb
addsd xmm1, qword [0x1000d7d8]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
add eax, 0x100106f8
push eax
push 0xa6
addsd xmm0, qword [ecx*8 + 0x1000d850]
addsd xmm1, xmm0
cvttsd2si eax, xmm1
push eax
call fcn.100080f0
movss xmm0, dword [esp + 0xc]
inc esi
addss xmm0, dword [0x1000d818]
movss dword [esp + 0xc], xmm0
cmp esi, dword [0x10010844]
jge 0x1000406f
mov ecx, dword [esp + 0x40]
jmp 0x10003d9e
movss xmm0, dword [esp + 0xc]
mov eax, 0x879340c
mov ecx, dword [eax]
cvttss2si eax, xmm0
cwde
cmp ecx, eax
jl 0x10003e4d
add eax, 0x3b
cmp ecx, eax
jg 0x10003e4d
mov eax, dword [0x8793410]
sub eax, 0x96
cmp eax, 0x1c
ja 0x10003e4d
sub esp, 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x41e00000
mov dword [esp + 8], 0x426c0000
mov dword [esp + 4], 0x43160000
movss dword [esp], xmm0
push 0x1b20e
call edi
mov eax, dword [esp + 0x54]
add esp, 0x1c
cmp dword [eax + 0xc], 0
je 0x10003e87
mov eax, 0xe8cb3c
mov dword [0x100100a8], 0
push 0x10
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
push str.StartWithAccount
lea ecx, [esp + 0x18]
mov dword [eax], 0
movaps xmmword [esp + 0x18], xmm0
mov dword [esp + 0x2c], 0
call fcn.100063e0
lea eax, [esi + 1]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x40]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1000402f
cmp dword [esp + 0x24], 0xf
lea ecx, [esp + 0x44]
push 4
push ecx
push 4
lea eax, [esp + 0x1c]
cmova eax, dword [esp + 0x1c]
push 0
push eax
push dword [esp + 0x50]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x24]
cmp ecx, 0xf
jbe 0x10004065
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000405b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003af9
push ecx
push edx
call fcn.1000a0e8
add esp, 8
call fcn.10003270
jmp 0x10003e87
mov eax, dword [esp + 0x38]
cmp dword [eax + 0xc], 0
je 0x10004080
mov dword [eax + 0xc], 0
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
xor ecx, esp
call fcn.10009d90
mov esp, ebp
pop ebp
ret