Function at 0x50c470
Capabilities:
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x658e57
mov eax, dword fs:[0]
push eax
sub esp, 0x584
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x580], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x598]
mov dword fs:[0], eax
mov esi, ecx
call fcn.005f6b34
push 0x703
mov ecx, esi
mov dword [esi + 0xf4], esi
mov dword [esi + 0xf8], 0x703
call fcn.005f5a75
mov eax, dword [eax + 0x20]
mov dword [esi + 0xf0], eax
push 0x542
mov ecx, esi
mov dword [esi + 0x104], esi
mov dword [esi + 0x108], 0x542
call fcn.005f5a75
mov ecx, dword [eax + 0x20]
mov dword [esi + 0x100], ecx
lea ebx, [esi + 0x10c]
push 0x659
mov ecx, esi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], 0x659
call fcn.005f5a75
mov edx, dword [eax + 0x20]
mov dword [ebx + 4], edx
push 0x658
mov ecx, esi
mov dword [esi + 0x124], esi
mov dword [esi + 0x128], 0x658
call fcn.005f5a75
mov eax, dword [eax + 0x20]
mov dword [esi + 0x120], eax
push 0x65a
mov ecx, esi
mov dword [esi + 0x134], esi
mov dword [esi + 0x138], 0x65a
call fcn.005f5a75
mov ecx, dword [eax + 0x20]
mov dword [esi + 0x130], ecx
push 0x470
mov ecx, esi
mov dword [esi + 0x144], esi
mov dword [esi + 0x148], 0x470
call fcn.005f5a75
mov edx, dword [eax + 0x20]
mov dword [esi + 0x140], edx
push 0x4a6
mov ecx, esi
mov dword [esi + 0x154], esi
mov dword [esi + 0x158], 0x4a6
call fcn.005f5a75
mov eax, dword [eax + 0x20]
xor ebp, ebp
push ebp
push 0x540
push esi
lea edx, [esi + 0x98]
lea ecx, [esi + 0x15c]
push edx
mov dword [esi + 0x150], eax
call fcn.00425ee0
cmp dword [esi + 0x170], ebp
je 0x50c5ec
lea eax, [esi + 0x168]
push eax
push 1
push ebp
push ebp
push ebp
push esi
call fcn.0045b550
add esp, 0x18
jmp 0x50c5f5
push esi
call fcn.0045bf70
add esp, 4
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push ebp
push 0x31
push ecx
call edi
push eax
call fcn.005fe202
cmp eax, ebp
je 0x50c6b5
mov eax, dword [eax + 4]
lea edx, [esp + 0x44]
push edx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x50c6b5
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, 0x3ff
and ax, cx
mov edx, 4
cmp dx, ax
je 0x50c64c
mov dword [esp + 0x54], 0x258
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.005fdf46
mov ecx, dword [eax + 4]
push 0x48
push 0x5a
push ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 9
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [0x678e3c]
mov cl, byte [0x678e42]
neg eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x44], eax
mov ax, word [0x678e40]
lea edx, [esp + 0x44]
push edx
mov word [esp + 0x68], ax
mov byte [esp + 0x6a], cl
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
cmp eax, ebp
je 0x50c6b5
push 1
push eax
mov eax, dword [esi + 0x130]
push 0x30
push eax
call edi
cmp dword [0x75dd30], ebp
je 0x50c727
push 0x8f
push esi
mov ecx, 0x75dcf0
call fcn.004e6a60
xor ecx, ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], ebp
mov word [esp + 0x3c], cx
mov dword [esp + 0x5a0], ebp
mov edx, dword [0x75dd28]
mov eax, dword [0x75f2e4]
push edx
push eax
lea ecx, [esp + 0x40]
call fcn.00401970
mov eax, dword [esp + 0x38]
cmp eax, ebp
jne 0x50c705
lea eax, [esp + 0x3c]
mov ecx, dword [esi + 0x130]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [esp + 0x5a0], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.00401210
mov ecx, dword [0x75dbe4]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
push ebp
push ebp
push str.RememberLastSave
push ecx
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x50c771
cmp dword [esp + 0x24], ebp
je 0x50c771
push 0x4a6
mov ecx, esi
call fcn.005f5a75
mov edx, dword [eax + 0x20]
push ebp
push 1
push 0xf1
push edx
call edi
xor eax, eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
mov word [esp + 0x30], ax
mov dword [esp + 0x5a0], 1
mov edi, 0x208
push edi
lea ecx, [esp + 0x390]
push ebp
push ecx
call fcn.00621270
mov ecx, dword [0x75dbe4]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x390]
push eax
push ebp
push ebp
push 0x681418
push ecx
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x50c7f1
lea edx, [esp + 0x38c]
push edx
lea ecx, [esp + 0x30]
call fcn.004017e0
lea eax, [esp + 0x38c]
push eax
lea ecx, [esi + 0x8c]
call fcn.004017e0
jmp 0x50c86d
push 0x104
lea ecx, [esp + 0x84]
push ebp
push ecx
call fcn.00621270
mov ecx, dword [0x75dbe4]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x84]
push eax
push ebp
push ebp
push 0x683208
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x50c847
lea edx, [esp + 0x80]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push ebp
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x34]
call fcn.00401970
push ebp
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esi + 0x8c]
call fcn.00401970
cmp dword [0x75dbe8], ebp
je 0x50c89e
mov eax, dword [0x75dce4]
mov ecx, eax
cmp eax, ebp
jne 0x50c885
mov ecx, 0x75dce8
mov eax, dword [0x75dc94]
cmp eax, ebp
jne 0x50c893
mov eax, 0x75dc98
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.0043c540
cmp dword [0x75dbec], ebp
je 0x50c8cf
mov eax, dword [0x75dd88]
mov ecx, eax
cmp eax, ebp
jne 0x50c8b6
mov ecx, 0x75dd8c
mov eax, dword [0x75dd7c]
cmp eax, ebp
jne 0x50c8c4
mov eax, 0x75dd80
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.0043c540
mov eax, dword [esp + 0x2c]
cmp dword [0x752d28], ebp
je 0x50c8f5
cmp eax, ebp
jne 0x50c8e3
lea eax, [esp + 0x30]
mov edx, dword [esi + 0x20]
push eax
push 0x408
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
jmp 0x50c939
cmp eax, ebp
jne 0x50c8fd
lea eax, [esp + 0x30]
push ebp
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00402a60
add esp, 0xc
mov byte [esp + 0x5a0], 2
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x20]
push ecx
push 0x408
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov byte [esp + 0x5a0], 1
lea ecx, [esp + 0x1c]
call fcn.00402560
push 0x104
lea eax, [esp + 0x188]
push ebp
push eax
call fcn.00621270
mov eax, dword [0x75dbe4]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x188]
push edx
push ebp
push ebp
push str.TempPath
push eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebp
jne 0x50c9d6
lea ecx, [esp + 0x184]
push ecx
call fcn.00623933
add esp, 4
test eax, eax
jne 0x50c9d6
lea eax, [esp + 0x184]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x50c995
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x182], 0x5c
je 0x50ca45
lea edi, [esp + 0x184]
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x50c9c0
mov edx, dword [0x679980]
mov dword [edi], edx
jmp 0x50ca45
mov edi, dword [0x75dc38]
mov ecx, edi
cmp edi, ebp
jne 0x50c9e7
mov ecx, 0x75dc3c
lea edx, [esp + 0x184]
mov edi, edi
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bp
jne 0x50c9f0
mov eax, edi
cmp edi, ebp
jne 0x50ca0c
mov eax, 0x75dc3c
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x50ca10
sub eax, edx
sar eax, 1
mov ecx, edi
cmp edi, ebp
jne 0x50ca2a
mov ecx, 0x75dc3c
lea eax, [eax + eax + 2]
push eax
push ecx
mov ecx, dword [0x75dbe4]
push 1
push ebp
push str.TempPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [esp + 0x184]
push edx
call fcn.006253cc
mov ecx, dword [esi + 0x20]
add esp, 4
lea eax, [esp + 0x184]
push eax
push 0x4c1
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edx, dword [0x75f2d8]
push edx
mov ecx, ebx
call fcn.00424420
mov eax, dword [0x75ed4c]
push eax
lea ecx, [esi + 0x15c]
call fcn.00424720
mov eax, dword [esi + 0x88]
xor edi, edi
cmp dword [eax + 8], ebp
jle 0x50cae7
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, edi
test ebp, ebp
jl 0x50cc26
cmp edi, dword [eax + 8]
jge 0x50cc26
mov eax, dword [eax + 4]
mov ecx, dword [eax + ebp + 4]
add eax, ebp
test ecx, ecx
je 0x50cac2
mov eax, ecx
jmp 0x50cac5
add eax, 8
mov ecx, dword [esi + 0x160]
push eax
push 0
push 0x143
push ecx
call ebx
mov eax, dword [esi + 0x88]
inc edi
add ebp, 0x2c
cmp edi, dword [eax + 8]
jl 0x50caa0
xor ebp, ebp
mov edx, dword [0x75ed4c]
push edx
push 0xffffffffffffffff
lea ecx, [esi + 0x15c]
call fcn.004247e0
lea ecx, [esp + 0x18]
call fcn.004024f0
mov byte [esp + 0x5a0], 3
mov eax, dword [0x75ed4c]
mov ecx, dword [0x75f2dc]
push eax
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00402f60
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
lea ecx, [esi + 0x11c]
call fcn.00424420
mov ecx, dword [0x75f2cc]
mov edx, dword [esi + 0x20]
push ecx
push 0x40e
push edx
call fcn.004245a0
add esp, 0xc
push ebp
push 1
push 0xcf
push 0x40e
mov ecx, esi
call fcn.005f5a75
mov eax, dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
call edi
mov ecx, dword [esi + 0x100]
push ebp
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [0x75dbe4]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x24]
push eax
push ebp
push ebp
push str.bSetServerTimeToFile
push ecx
mov dword [esp + 0x40], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x50cbbd
cmp dword [esp + 0x20], ebp
je 0x50cbbd
mov edx, dword [esi + 0xf0]
push ebp
push 1
push 0xf1
push edx
call edi
mov byte [esp + 0x5a0], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50cbe5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x5a0], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00401210
mov eax, 1
mov ecx, dword [esp + 0x598]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x580]
xor ecx, esp
call fcn.00620b8d
add esp, 0x590
ret
call fcn.005f4f65
int3