Function at 0x100eea60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x101b9820]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x74], ecx
cmp dword [ebp + 8], 0xffffffff
jne 0x100eea7e
jmp 0x100ef0f0
mov byte [ebp - 0x31], 0
movzx eax, byte [0x10250e4e]
cmp eax, 1
jne 0x100eeab8
cmp dword [0xe8c240], 4
jae 0x100eeaa3
cmp dword [ebp + 8], 3
jge 0x100eeaa3
mov byte [ebp - 0x31], 1
jmp 0x100eeab6
cmp dword [0xe8c240], 3
jbe 0x100eeab6
cmp dword [ebp + 8], 2
jle 0x100eeab6
mov byte [ebp - 0x31], 1
jmp 0x100eeabc
mov byte [ebp - 0x31], 1
movzx ecx, byte [ebp - 0x31]
test ecx, ecx
je 0x100ef073
mov edx, dword [ebp + 8]
add edx, 1
mov dword [0xe8c240], edx
mov eax, dword [0xe8c240]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
sub ecx, 1
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 8
ja case.default.0x100eeaf2
mov edx, dword [ebp - 0x40]
jmp dword [edx*4 + 0x100ef100]
mov dword [0xe61e58], 0x320
mov dword [0xe61e5c], 0x258
jmp case.default.0x100eeaf2
mov dword [0xe61e58], 0x400
mov dword [0xe61e5c], 0x300
jmp case.default.0x100eeaf2
mov dword [0xe61e58], 0x500
mov dword [0xe61e5c], 0x400
jmp case.default.0x100eeaf2
mov dword [0xe61e58], 0x556
mov dword [0xe61e5c], 0x300
jmp case.default.0x100eeaf2
mov dword [0xe61e58], 0x5a0
mov dword [0xe61e5c], 0x384
jmp case.default.0x100eeaf2
mov dword [0xe61e58], 0x640
mov dword [0xe61e5c], 0x384
jmp case.default.0x100eeaf2
mov dword [0xe61e58], 0x6e0
mov dword [0xe61e5c], 0x3de
jmp case.default.0x100eeaf2
mov dword [0xe61e58], 0x780
mov dword [0xe61e5c], 0x438
jmp case.default.0x100eeaf2
mov dword [0xe61e58], 0x42a
mov dword [0xe61e5c], 0x258
push 2
mov ecx, 0x101bf6e8
call fcn.10131e60
cvtsi2sd xmm0, dword [0xe61e58]
mov eax, dword [0x101baba8]
mov dword [ebp - 0x64], eax
cvtsi2sd xmm1, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x64]
shr ecx, 0x1f
addsd xmm1, qword [ecx*8 + 0x101a6800]
divsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movss dword [0xe7c3d4], xmm0
cvtsi2sd xmm0, dword [0xe61e5c]
divsd xmm0, qword [0x101a6130]
cvtsd2ss xmm0, xmm0
movss dword [0xe7c3d8], xmm0
push 0x116
mov edx, dword [0xe61e5c]
add edx, 0x1e
push edx
mov eax, dword [0xe61e58]
push eax
push 0
push 0
push 0
mov ecx, dword [0xe8c578]
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, 0x407b20
call edx
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov ecx, dword [0xe61e58]
mov dword [eax + 0x28], ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [0xe61e5c]
mov dword [edx + 0x2c], eax
movzx ecx, byte [0x10250e42]
cmp ecx, 1
jne 0x100eec86
mov ecx, 0x101e4d69
call fcn.100b7d80
jmp 0x100eedd2
mov edx, 0x630bc0
call edx
mov dword [ebp - 0x3c], 0xc
mov eax, dword [0xe8c240]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 8
ja case.default.0x100eeca5
mov ecx, dword [ebp - 0x4c]
jmp dword [ecx*4 + 0x100ef124]
mov dword [ebp - 0x3c], 0xc
jmp 0x100eece9
mov dword [ebp - 0x3c], 0xd
jmp 0x100eece9
mov dword [ebp - 0x3c], 0xf
jmp 0x100eece9
mov dword [ebp - 0x3c], 0x10
jmp 0x100eece9
mov dword [ebp - 0x3c], 0x11
jmp 0x100eece9
mov dword [ebp - 0x3c], 0xc
jmp 0x100eece9
mov dword [ebp - 0x3c], 0x10
mov edx, dword [ebp - 0x3c]
sub edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov dword [0x81c0380], eax
push 0
mov edx, 0x402320
mov ecx, 0x8128adc
call edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 1
mov eax, dword [ebp - 0x48]
push eax
push 0
push 3
push 0
push 0
mov ecx, dword [ebp - 0x44]
push ecx
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.GDI32.dll_CreateFontA]
mov dword [0xe8c588], eax
mov eax, dword [ebp - 0x48]
push eax
push 0
push 3
push 0
push 0
mov ecx, dword [ebp - 0x44]
push ecx
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.GDI32.dll_CreateFontA]
mov dword [0xe8c58c], eax
mov eax, dword [ebp - 0x48]
push eax
push 0
push 3
push 0
push 0
mov ecx, dword [ebp - 0x44]
push ecx
push 0
push 0
push 0
push 0x2bc
push 0
push 0
push 0
mov edx, dword [ebp - 0x3c]
shl edx, 1
push edx
call dword [sym.imp.GDI32.dll_CreateFontA]
mov dword [0xe8c590], eax
mov eax, dword [ebp - 0x48]
push eax
push 0
push 3
push 0
push 0
mov ecx, dword [ebp - 0x44]
push ecx
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0xc
call dword [sym.imp.GDI32.dll_CreateFontA]
mov dword [0xe8c594], eax
push 0x21
mov ecx, 0x101bf6e8
call fcn.10131e60
mov edx, 0x861110
call edx
mov dword [ebp - 0x38], eax
push 0x17e
push 0
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
push eax
mov edx, 0x785870
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0xc]
call edx
push 0
mov ecx, dword [0x101baba8]
sub ecx, 0xbe
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
push eax
mov edx, 0x7c7440
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0xe0]
call edx
push 0
mov ecx, dword [0x101baba8]
sub ecx, 0xbe
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
push eax
mov edx, 0x7d0650
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
call edx
push 0xe9
push 0x84068d
call fcn.10154930
add esp, 8
push 0x49
push 0x84068e
call fcn.10154930
add esp, 8
push 1
push 0x84068f
call fcn.10154930
add esp, 8
push 0
push 0x840690
call fcn.10154930
add esp, 8
push 0
push 0x840691
call fcn.10154930
add esp, 8
push 0x90
push 0x840692
call fcn.10154930
add esp, 8
push 0x90
push 0x840693
call fcn.10154930
add esp, 8
push 0
mov ecx, dword [0x101baba8]
sub ecx, 0x17c
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
push eax
mov edx, 0x840610
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x54]
call edx
movzx ecx, byte [0x10250eb8]
test ecx, ecx
jne 0x100eef9f
mov edx, 0x7f0d40
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x138]
call edx
push 5
push 0x90
push 0x7f14e3
call fcn.10154a80
add esp, 0xc
push 5
push 0x90
push 0x7f14f5
call fcn.10154a80
add esp, 0xc
push 0
mov ecx, dword [0x101baba8]
sub ecx, 0xbe
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
push eax
mov edx, 0x7f0c80
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x138]
call edx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x13c]
mov dword [ebp - 0x58], edx
mov ecx, dword [ebp - 0x58]
add ecx, 0x174
mov eax, 0x420f60
call eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x2ac
mov edx, 0x420f60
call edx
push 0
mov eax, dword [0x101baba8]
sub eax, 0x17c
push eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
push edx
mov eax, 0x80c0e0
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx + 0x13c]
call eax
push 0xe0
mov edx, 0x9d00c5
call edx
add esp, 4
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x100eefc6
mov eax, 0x420f60
mov ecx, dword [ebp - 0x6c]
call eax
mov dword [ebp - 0x60], eax
jmp 0x100eefcd
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp - 0x60]
mov dword [0xe8c544], ecx
push 0xe0
mov edx, 0x9d00c5
call edx
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x100eeffd
mov eax, 0x420f60
mov ecx, dword [ebp - 0x50]
call eax
mov dword [ebp - 0x54], eax
jmp 0x100ef004
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp - 0x54]
mov dword [0xe8c548], ecx
push 0
push 0x32
push 0x14
push 0xc8
mov edx, dword [0xe8c578]
push edx
mov eax, 0x421b90
mov ecx, dword [0xe8c544]
call eax
push 1
push 9
push 0x14
push 0xc8
mov ecx, dword [0xe8c578]
push ecx
mov edx, 0x421b90
mov ecx, dword [0xe8c548]
call edx
mov eax, dword [0xe8c588]
push eax
mov edx, 0x423060
mov ecx, dword [0xe8c544]
call edx
mov eax, dword [0xe8c588]
push eax
mov edx, 0x423060
mov ecx, dword [0xe8c548]
call edx
jmp 0x100ef091
movzx eax, byte [0x10250e4a]
cmp eax, 1
jne 0x100ef091
mov byte [ebp - 0x2c], 0x64
lea ecx, [ebp - 0x30]
push ecx
mov ecx, 0x101e4cf8
call fcn.100b6180
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp - 0x70], edx
lea eax, [ebp - 0x5c]
push eax
push 0xf003f
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100ef0de
push 4
lea ecx, [ebp - 0x70]
push ecx
push 4
push 0
push str.Resolution
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100ef0f0
push str.Failed_to_open_Key
push 0x101be3c7
call fcn.101397e0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10063bb0
mov esp, ebp
pop ebp
ret 4