Function at 0x10108115
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x101db820]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x74], ecx
cmp dword [ebp + 8], 0xffffffff
jne 0x10107ede
jmp 0x10108550
mov byte [ebp - 0x31], 0
movzx eax, byte [0x102733f6]
cmp eax, 1
jne 0x10107f18
cmp dword [0xe8c240], 4
jae 0x10107f03
cmp dword [ebp + 8], 3
jge 0x10107f03
mov byte [ebp - 0x31], 1
jmp 0x10107f16
cmp dword [0xe8c240], 3
jbe 0x10107f16
cmp dword [ebp + 8], 2
jle 0x10107f16
mov byte [ebp - 0x31], 1
jmp 0x10107f1c
mov byte [ebp - 0x31], 1
movzx ecx, byte [ebp - 0x31]
test ecx, ecx
je 0x101084d3
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.0x10107f52
mov edx, dword [ebp - 0x40]
jmp dword [edx*4 + 0x10108560]
mov dword [0xe61e58], 0x320
mov dword [0xe61e5c], 0x258
jmp case.default.0x10107f52
mov dword [0xe61e58], 0x400
mov dword [0xe61e5c], 0x300
jmp case.default.0x10107f52
mov dword [0xe61e58], 0x500
mov dword [0xe61e5c], 0x400
jmp case.default.0x10107f52
mov dword [0xe61e58], 0x556
mov dword [0xe61e5c], 0x300
jmp case.default.0x10107f52
mov dword [0xe61e58], 0x5a0
mov dword [0xe61e5c], 0x384
jmp case.default.0x10107f52
mov dword [0xe61e58], 0x640
mov dword [0xe61e5c], 0x384
jmp case.default.0x10107f52
mov dword [0xe61e58], 0x6e0
mov dword [0xe61e5c], 0x3de
jmp case.default.0x10107f52
mov dword [0xe61e58], 0x780
mov dword [0xe61e5c], 0x438
jmp case.default.0x10107f52
mov dword [0xe61e58], 0x42a
mov dword [0xe61e5c], 0x258
push 2
mov ecx, 0x101e1298
call fcn.1014b0b0
cvtsi2sd xmm0, dword [0xe61e58]
mov eax, dword [0x101dcd34]
mov dword [ebp - 0x64], eax
cvtsi2sd xmm1, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x64]
shr ecx, 0x1f
addsd xmm1, qword [ecx*8 + 0x101c6980]
divsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movss dword [0xe7c3d4], xmm0
cvtsi2sd xmm0, dword [0xe61e5c]
divsd xmm0, qword [0x101c6270]
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 [0x102733ea]
cmp ecx, 1
jne 0x101080e6
mov ecx, 0x102050e7
call fcn.100d1af0
jmp 0x10108232
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.0x10108105
mov ecx, dword [ebp - 0x4c]
jmp dword [ecx*4 + 0x10108584]
mov dword [ebp - 0x3c], 0xc
jmp 0x10108149
mov dword [ebp - 0x3c], 0xd
jmp 0x10108149
mov dword [ebp - 0x3c], 0xf
jmp 0x10108149
mov dword [ebp - 0x3c], 0x10
jmp 0x10108149
mov dword [ebp - 0x3c], 0x11
jmp 0x10108149
mov dword [ebp - 0x3c], 0xc
jmp 0x10108149
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, 0x101e1298
call fcn.1014b0b0
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 [0x101dcd34]
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 [0x101dcd34]
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.10170660
add esp, 8
push 0x49
push 0x84068e
call fcn.10170660
add esp, 8
push 1
push 0x84068f
call fcn.10170660
add esp, 8
push 0
push 0x840690
call fcn.10170660
add esp, 8
push 0
push 0x840691
call fcn.10170660
add esp, 8
push 0x90
push 0x840692
call fcn.10170660
add esp, 8
push 0x90
push 0x840693
call fcn.10170660
add esp, 8
push 0
mov ecx, dword [0x101dcd34]
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 [0x10273604]
test ecx, ecx
jne 0x101083ff
mov edx, 0x7f0d40
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x138]
call edx
push 5
push 0x90
push 0x7f14e3
call fcn.101707b0
add esp, 0xc
push 5
push 0x90
push 0x7f14f5
call fcn.101707b0
add esp, 0xc
push 0
mov ecx, dword [0x101dcd34]
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 [0x101dcd34]
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 0x10108426
mov eax, 0x420f60
mov ecx, dword [ebp - 0x6c]
call eax
mov dword [ebp - 0x60], eax
jmp 0x1010842d
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 0x1010845d
mov eax, 0x420f60
mov ecx, dword [ebp - 0x50]
call eax
mov dword [ebp - 0x54], eax
jmp 0x10108464
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 0x101084f1
movzx eax, byte [0x102733f2]
cmp eax, 1
jne 0x101084f1
mov byte [ebp - 0x2c], 0x64
lea ecx, [ebp - 0x30]
push ecx
mov ecx, 0x10206e80
call fcn.100cfee0
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 connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1010853e
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 0x10108550
push str.Failed_to_open_Key
push 0x101dff76
call fcn.101534c0
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006cdc0
mov esp, ebp
pop ebp
ret 4