Function at 0x100ed6d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x101b4820]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x74], ecx
cmp dword [ebp + 8], 0xffffffff
jne 0x100ed6ee
jmp 0x100edd60
mov byte [ebp - 0x31], 0
movzx eax, byte [0x1024bdee]
cmp eax, 1
jne 0x100ed728
cmp dword [0xe8c240], 4
jae 0x100ed713
cmp dword [ebp + 8], 3
jge 0x100ed713
mov byte [ebp - 0x31], 1
jmp 0x100ed726
cmp dword [0xe8c240], 3
jbe 0x100ed726
cmp dword [ebp + 8], 2
jle 0x100ed726
mov byte [ebp - 0x31], 1
jmp 0x100ed72c
mov byte [ebp - 0x31], 1
movzx ecx, byte [ebp - 0x31]
test ecx, ecx
je 0x100edce3
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.0x100ed762
mov edx, dword [ebp - 0x40]
jmp dword [edx*4 + 0x100edd70]
mov dword [0xe61e58], 0x320
mov dword [0xe61e5c], 0x258
jmp case.default.0x100ed762
mov dword [0xe61e58], 0x400
mov dword [0xe61e5c], 0x300
jmp case.default.0x100ed762
mov dword [0xe61e58], 0x500
mov dword [0xe61e5c], 0x400
jmp case.default.0x100ed762
mov dword [0xe61e58], 0x556
mov dword [0xe61e5c], 0x300
jmp case.default.0x100ed762
mov dword [0xe61e58], 0x5a0
mov dword [0xe61e5c], 0x384
jmp case.default.0x100ed762
mov dword [0xe61e58], 0x640
mov dword [0xe61e5c], 0x384
jmp case.default.0x100ed762
mov dword [0xe61e58], 0x6e0
mov dword [0xe61e5c], 0x3de
jmp case.default.0x100ed762
mov dword [0xe61e58], 0x780
mov dword [0xe61e5c], 0x438
jmp case.default.0x100ed762
mov dword [0xe61e58], 0x42a
mov dword [0xe61e5c], 0x258
push 2
mov ecx, 0x101ba6c8
call fcn.1012f520
cvtsi2sd xmm0, dword [0xe61e58]
mov eax, dword [0x101b5ba8]
mov dword [ebp - 0x64], eax
cvtsi2sd xmm1, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x64]
shr ecx, 0x1f
addsd xmm1, qword [ecx*8 + 0x101a2460]
divsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movss dword [0xe7c3d4], xmm0
cvtsi2sd xmm0, dword [0xe61e5c]
divsd xmm0, qword [0x101a1d88]
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 [0x1024bde2]
cmp ecx, 1
jne 0x100ed8f6
mov ecx, 0x101dfba5
call fcn.100b6b70
jmp 0x100eda42
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.0x100ed915
mov ecx, dword [ebp - 0x4c]
jmp dword [ecx*4 + 0x100edd94]
mov dword [ebp - 0x3c], 0xc
jmp 0x100ed959
mov dword [ebp - 0x3c], 0xd
jmp 0x100ed959
mov dword [ebp - 0x3c], 0xf
jmp 0x100ed959
mov dword [ebp - 0x3c], 0x10
jmp 0x100ed959
mov dword [ebp - 0x3c], 0x11
jmp 0x100ed959
mov dword [ebp - 0x3c], 0xc
jmp 0x100ed959
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, 0x101ba6c8
call fcn.1012f520
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 [0x101b5ba8]
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 [0x101b5ba8]
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.101512f0
add esp, 8
push 0x49
push 0x84068e
call fcn.101512f0
add esp, 8
push 1
push 0x84068f
call fcn.101512f0
add esp, 8
push 0
push 0x840690
call fcn.101512f0
add esp, 8
push 0
push 0x840691
call fcn.101512f0
add esp, 8
push 0x90
push 0x840692
call fcn.101512f0
add esp, 8
push 0x90
push 0x840693
call fcn.101512f0
add esp, 8
push 0
mov ecx, dword [0x101b5ba8]
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 [0x1024be58]
test ecx, ecx
jne 0x100edc0f
mov edx, 0x7f0d40
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x138]
call edx
push 5
push 0x90
push 0x7f14e3
call fcn.10151440
add esp, 0xc
push 5
push 0x90
push 0x7f14f5
call fcn.10151440
add esp, 0xc
push 0
mov ecx, dword [0x101b5ba8]
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 [0x101b5ba8]
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 0x100edc36
mov eax, 0x420f60
mov ecx, dword [ebp - 0x6c]
call eax
mov dword [ebp - 0x60], eax
jmp 0x100edc3d
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 0x100edc6d
mov eax, 0x420f60
mov ecx, dword [ebp - 0x50]
call eax
mov dword [ebp - 0x54], eax
jmp 0x100edc74
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 0x100edd01
movzx eax, byte [0x1024bdea]
cmp eax, 1
jne 0x100edd01
mov byte [ebp - 0x2c], 0x64
lea ecx, [ebp - 0x30]
push ecx
mov ecx, 0x101dfcc0
call fcn.100b4f70
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 0x100edd4e
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 0x100edd60
push str.Failed_to_open_Key
push 0x101b93a7
call fcn.10136e90
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10062ba0
mov esp, ebp
pop ebp
ret 4