Function at 0x10040b50
Capabilities:
Accept command line arguments
Identify system language via api
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10066600
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x140
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x10c], 0xf6
movsx eax, word [0x1007f1a8]
mov dword [ebp - 0x30], eax
movzx ecx, byte [0x1007f026]
mov dword [ebp - 0x4c], ecx
movzx dx, byte [0x1007f026]
mov word [ebp - 0x28], dx
mov ax, word [0x1007f16c]
mov word [ebp - 0x2c], ax
mov cl, byte [0x1007f120]
mov byte [ebp - 0x21], cl
mov dx, word [0x1007f16c]
mov word [ebp - 0x20], dx
mov byte [ebp - 0x11], 0x15
mov eax, 0xe5dc
mov word [ebp - 0x40], ax
mov cx, word [0x1007f1b8]
mov byte [ebp - 0x12], cl
mov edx, dword [0x1007f178]
mov eax, dword [0x1007f17c]
mov dword [ebp - 0x100], edx
mov dword [ebp - 0xfc], eax
mov ecx, dword [0x1007f1bc]
xor edx, edx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], edx
mov eax, dword [0x1007f138]
mov ecx, dword [0x1007f13c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
mov edx, dword [0x1007f120]
mov dword [ebp - 0xd0], edx
mov eax, 0x8c72e
mov dword [ebp - 0x140], 0xa6fdf8f6
mov dword [ebp - 0x13c], eax
movzx eax, byte [0x1007f04e]
cdq
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], edx
mov ecx, 0x357
mov word [ebp - 0xb0], cx
mov dx, word [0x1007f188]
mov word [ebp - 0x18], dx
mov dword [ebp - 0x54], 0x3945a32e
mov byte [ebp - 0x13], 0x7c
mov dword [ebp - 0x84], 0xad2a
xor eax, eax
mov dword [ebp - 0x74], 0x6a5d
mov dword [ebp - 0x70], eax
movzx ecx, byte [0x1007f026]
mov dword [ebp - 0x110], ecx
movsx edx, word [0x1007f148]
mov dword [ebp - 0x98], edx
mov byte [ebp - 0x19], 0x58
mov eax, 0xffffaf70
mov word [ebp - 0xb4], ax
mov dword [ebp - 0x114], 0xf2
mov ecx, dword [0x1007f154]
mov dword [ebp - 0x118], ecx
xor edx, edx
mov dword [ebp - 0x148], 0x4f6fc784
mov dword [ebp - 0x144], edx
mov ax, word [0x1007f14c]
mov word [ebp - 0xb8], ax
mov ecx, dword [0x1007f160]
mov edx, dword [0x1007f164]
mov dword [ebp - 0x11c], edx
mov word [ebp - 0xcc], cx
mov eax, 0xffffccea
mov word [ebp - 0xc8], ax
mov dword [ebp - 0x120], 0xf70b147f
mov byte [ebp - 0x39], 9
mov dword [ebp - 0x124], 0x61b53d68
xor ecx, ecx
mov dword [ebp - 0x150], 0x3c
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x50], 0x35
mov edx, dword [0x1007f130]
mov eax, dword [0x1007f134]
add edx, 0x574e658b
adc eax, 0x44e41
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x128], edx
sub ecx, 0xc7
mov word [0x1007f148], cx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0x779
jl 0x10040d61
mov dword [ebp - 0x58], 0x1486
mov dword [0x1007f140], 0xa440
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
push 0
push 0xfc1b6ab6
push edx
push ecx
call fcn.1005a1b0
mov byte [0x1007f04e], al
cmp dword [ebp - 0x58], 0x1343
jle 0x10040e1c
mov eax, 0x3028ab48
test eax, eax
je 0x10040de1
mov ecx, dword [ebp - 0x84]
xor ecx, dword [0x1007f158]
mov dword [0x1007f1bc], ecx
movzx edx, word [0x1007f16c]
mov eax, dword [ebp - 0x54]
sub eax, edx
mov ecx, dword [ebp - 0x54]
sub ecx, eax
mov dword [ebp - 0x54], ecx
jmp 0x10040e11
movzx edx, byte [ebp - 0x12]
test edx, edx
je 0x10040e11
mov eax, dword [0x1007f1b0]
add eax, 1
mov ecx, dword [0x1007f1b4]
adc ecx, 0
mov dword [0x1007f1b0], eax
mov dword [0x1007f1b4], ecx
mov edx, 0xce
mov word [0x1007f16c], dx
mov eax, dword [ebp - 0x58]
sub eax, 1
mov dword [ebp - 0x58], eax
jmp 0x10040da7
mov ecx, dword [0x1007f138]
mov esi, dword [0x1007f13c]
mov eax, dword [ebp - 0x4c]
cdq
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xd4], esi
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], edx
mov edx, dword [ebp - 0xd4]
cmp edx, dword [ebp - 0xdc]
jl 0x10040e6b
jg 0x10040e62
mov eax, dword [ebp - 0xd8]
cmp eax, dword [ebp - 0xe0]
jb 0x10040e6b
mov dword [ebp - 0x78], 1
jmp 0x10040e72
mov dword [ebp - 0x78], 0
mov ecx, dword [0x1007f138]
mov edx, dword [0x1007f13c]
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0xc0], edx
cmp dword [ebp - 0xc0], 0
jl 0x10040ea7
jg 0x10040e9e
cmp dword [ebp - 0xc4], 0x34
jb 0x10040ea7
mov dword [ebp - 0x7c], 1
jmp 0x10040eae
mov dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x7c]
jne 0x10040ee3
mov ecx, dword [0x1007f180]
sub ecx, 0x6f7
mov byte [ebp - 0x13], cl
movsx edx, word [ebp - 0x2c]
mov dword [ebp - 0xd0], edx
movzx eax, word [ebp - 0x28]
movzx ecx, byte [ebp - 0x11]
sub eax, ecx
movzx edx, word [ebp - 0x28]
sub edx, eax
mov word [ebp - 0x28], dx
push 0
lea eax, [ebp - 0x6c]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareMyAppTempKey
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x68], eax
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x10040f28
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.USER32.dll_GetWindowDC]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x68], 0
jne 0x100414db
movzx eax, byte [ebp - 0x12]
cdq
push edx
push eax
push 0
push 0
push 0
push 0x63
call fcn.10035b90
add esp, 0x18
mov word [0x1007f128], ax
movzx edx, word [0x1007f128]
test edx, edx
je 0x10040faf
mov eax, dword [0x1007f144]
sub eax, 0x5a96d96c
mov dword [ebp - 0x84], eax
mov byte [ebp - 0x13], 2
mov ecx, dword [0x1007f1b0]
xor ecx, 0x89
mov esi, dword [0x1007f1b4]
xor esi, 0
movsx edx, word [ebp - 0x18]
not edx
mov eax, dword [0x1007f1a4]
sub eax, edx
movzx edx, byte [ebp - 0x12]
not edx
imul eax, edx
not eax
cdq
push edx
push eax
push esi
push ecx
call fcn.1005a1b0
mov dword [0x1007f1a4], eax
jmp 0x10041046
movzx eax, word [ebp - 0x40]
movsx ecx, word [0x1007f1a8]
imul eax, ecx
cdq
mov ecx, eax
movzx eax, byte [ebp - 0x13]
cdq
mov edx, dword [0x1007f1d0]
mov esi, dword [0x1007f1d4]
mov dword [ebp - 0x130], esi
add eax, edx
sub ecx, eax
mov byte [ebp - 0x12], cl
push 0x3e567
push 0xafc452e3
mov eax, dword [0x1007f1c4]
push eax
mov ecx, dword [0x1007f1c0]
push ecx
call fcn.1005a1b0
mov dword [0x1007f178], eax
mov dword [0x1007f17c], edx
movsx eax, word [0x1007f148]
movzx edx, byte [ebp - 0x13]
sub eax, edx
cdq
mov esi, eax
mov edi, edx
movzx eax, word [0x1007f16c]
add eax, dword [ebp - 0x98]
cdq
push 0xb953
push 0xbe4f61a7
push edx
push eax
call fcn.1005a1b0
push edx
push eax
push edi
push esi
call fcn.1005a1b0
not eax
mov dword [0x1007f158], eax
mov dword [ebp - 4], 0
mov ax, word [0x1007fc38]
mov word [0x1007f148], ax
movzx ecx, word [ebp - 0x20]
sar ecx, 5
mov dword [0x1007f1bc], ecx
movsx eax, word [0x1007f1a8]
cdq
add eax, 0x5df52515
mov edx, dword [ebp - 0x30]
sub edx, eax
mov dword [ebp - 0x30], edx
jmp 0x100410d0
mov dword [ebp - 4], 0xffffffff
jmp 0x100410e0
mov ecx, dword [0x1007fc38]
mov dword [ebp - 0x5c], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov word [0x1007f14c], ax
mov edx, dword [ebp - 0x5c]
add edx, 0x135
mov dword [ebp - 0x48], edx
movsx eax, word [ebp - 0x18]
imul eax, dword [ebp - 0x4c]
mov word [ebp - 0x18], ax
mov eax, dword [0x1007f1b0]
mov edx, dword [0x1007f1b4]
mov cl, 7
call fcn.1005a210
mov byte [ebp - 0x12], al
mov cx, word [ebp - 0x100]
mov word [0x1007f1b8], cx
mov edx, dword [ebp - 0x5c]
add edx, 0x34d
mov dword [ebp - 0x94], edx
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov edx, dword [0x1007f124]
push edx
mov edx, dword [0x1007f120]
push edx
push ecx
push eax
call fcn.1005a1b0
mov ecx, dword [ebp - 0x30]
xor esi, esi
push edx
push eax
push esi
push ecx
call fcn.1005a1b0
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x64]
sub edx, 0x5ea1912d
mov eax, dword [ebp - 0x60]
sbb eax, 0
mov ecx, dword [0x1007f190]
mov esi, dword [0x1007f194]
add ecx, edx
adc esi, eax
mov dword [0x1007f190], ecx
mov dword [0x1007f194], esi
movsx eax, byte [ebp - 0x19]
cdq
mov ecx, 8
imul ecx, ecx, 0x9b4b
mov dword [ecx + 0x1024e1c0], eax
mov dword [ecx + 0x1024e1c4], edx
mov edx, dword [ebp - 0x5c]
add edx, 0x2c4
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0x44], 0
jmp 0x100411d2
mov eax, dword [ebp - 0x44]
add eax, 2
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x1b
jge 0x1004136b
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
movsx eax, word [0x1007f15c]
not eax
cdq
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xec], edx
mov edx, dword [ebp - 0xe4]
cmp edx, dword [ebp - 0xec]
jg 0x1004122e
jl 0x10041222
mov eax, dword [ebp - 0xe8]
cmp eax, dword [ebp - 0xf0]
ja 0x1004122e
mov dword [ebp - 0x88], 1
jmp 0x10041238
mov dword [ebp - 0x88], 0
movsx ecx, word [ebp - 0x18]
not ecx
cmp dword [ebp - 0x88], ecx
jge 0x100412a9
movzx eax, byte [0x1007f026]
cdq
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], edx
mov edx, dword [ebp - 0xf4]
cmp edx, dword [0x1007f17c]
jl 0x10041284
jg 0x10041278
mov eax, dword [ebp - 0xf8]
cmp eax, dword [0x1007f178]
jb 0x10041284
mov dword [ebp - 0x8c], 1
jmp 0x1004128e
mov dword [ebp - 0x8c], 0
movzx ecx, word [0x1007f128]
cmp dword [ebp - 0x8c], ecx
jg 0x100412a9
mov dword [ebp - 0x90], 0
jmp 0x100412b3
mov dword [ebp - 0x90], 1
mov edx, dword [ebp - 0x90]
not edx
test edx, edx
je 0x100412ee
mov al, byte [0x1007fc38]
mov byte [ebp - 0x21], al
mov ecx, dword [0x1007f154]
shr ecx, 6
xor edx, edx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x64]
mov ecx, 4
imul edx, ecx, 0xef6
mov dword [edx + 0x10363cb0], eax
jmp 0x1004135a
mov eax, dword [0x1007f154]
not eax
test eax, eax
je 0x1004135a
cmp dword [0x1007f140], 0
je 0x1004135a
movsx ecx, word [0x1007f15c]
xor ecx, dword [0x1007f180]
mov word [0x1007f15c], cx
mov edx, dword [0x1007f1bc]
not edx
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x134], eax
sub ecx, edx
movsx eax, word [0x1007f15c]
cdq
mov edx, dword [ebp - 0x100]
sub edx, eax
not edx
xor ecx, edx
mov word [ebp - 0x20], cx
movsx eax, word [0x1007f148]
shl eax, 3
cdq
mov dword [0x1007f188], eax
mov dword [0x1007f18c], edx
mov ax, word [ebp - 0x18]
add ax, 1
mov word [ebp - 0x18], ax
jmp 0x100411c9
mov ecx, dword [ebp - 0x94]
sub ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x48]
lea eax, [ecx + edx + 0x2cc]
mov ecx, dword [ebp - 0x48]
sub ecx, dword [ebp - 0x94]
mov edx, dword [ebp - 0xbc]
imul edx, ecx
cmp eax, edx
je 0x100414db
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x100413b8
movsx ecx, word [0x1007f15c]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
mov dword [str.C], eax
jmp 0x10041467
movsx edx, byte [ebp - 0x19]
test edx, edx
jne 0x100413cc
mov dword [ebp - 0x9c], 1
jmp 0x100413d6
mov dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebp - 0x9c]
jl 0x100413f8
xor ecx, ecx
mov dword [ebp - 0xa4], 1
mov dword [ebp - 0xa0], ecx
jmp 0x10041403
xorps xmm0, xmm0
movlpd qword [ebp - 0xa4], xmm0
mov edx, dword [0x1007f138]
mov eax, dword [0x1007f13c]
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x104]
cmp ecx, dword [ebp - 0xa0]
jl 0x10041467
jg 0x10041438
mov edx, dword [ebp - 0x108]
cmp edx, dword [ebp - 0xa4]
jbe 0x10041467
mov ax, word [ebp - 0x2c]
add ax, 1
mov word [ebp - 0x2c], ax
mov ecx, 2
imul edx, ecx, 0x59
movsx eax, word [edx + 0x103a8010]
mov dword [ebp - 0x4c], eax
mov ecx, dword [0x1007f158]
shl ecx, 7
xor edx, edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edx
mov al, byte [ebp - 0x11]
sub al, 1
mov byte [ebp - 0x11], al
mov cx, word [0x1007fc38]
mov word [0x1007f16c], cx
push 4
lea edx, [ebp - 0x68]
push edx
push 4
push 0
push str.TempValue
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [0x1007f144]
or ecx, dword [0x1007f158]
add ecx, dword [0x1007f180]
mov edx, dword [0x1007f138]
mov eax, dword [0x1007f13c]
mov dword [ebp - 0x138], eax
add ecx, edx
mov dword [0x1007f140], ecx
mov ecx, dword [0x1007f170]
add ecx, dword [ebp - 0xac]
mov word [ebp - 0x20], cx
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret