Function at 0x41f669
Capabilities:
Accept command line arguments
Check if file exists
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8610
call fcn.00446050
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x85b4], edi
mov dword [ebp - 0x85b8], eax
call fcn.004070d7
shl eax, 6
xor eax, dword [edi + 0x228]
push 0x104
and eax, 0x40
xor dword [edi + 0x228], eax
xor eax, eax
mov word [ebp - 0x384], ax
lea eax, [ebp - 0x594]
push eax
xor ebx, ebx
push ebx
mov dword [ebp - 0x38c], 0x44d4fc
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x8594]
push str.settingApp.json
lea ecx, [ebp - 0x594]
lea esi, [ebp - 0x254]
mov dword [ebp - 0x85a4], ebx
mov dword [ebp - 0x85a0], ebx
mov dword [ebp - 0x859c], eax
mov dword [ebp - 0x8598], ebx
call fcn.00442350
pop ecx
mov eax, esi
push eax
mov dword [ebp - 0x85ac], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41f789
xor esi, esi
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x85a4]
call fcn.004103f2
pop ecx
cmp eax, ebx
jge 0x41f859
mov ecx, eax
and ecx, 0xffff
cmp ecx, 0x20
jne 0x41f758
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
mov eax, 0x800704d5
cmp esi, 0xa
jl 0x41f71d
cmp eax, ebx
jge 0x41f859
and eax, 0xffff
cmp eax, 0x4d5
jne 0x41f793
push 0x32
push ebx
push 0x44b4c8
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 3
je 0x41f89f
cmp eax, 4
je 0x41f71b
or dword [edi + 0x210], 0x100
test dword [edi + 0x228], 0x100
je 0x41f7a4
call fcn.00442f3f
test dword [edi + 0x228], 0x200
je 0x41f7d0
push 4
lea eax, [ebp - 0x85bc]
push eax
push ebx
push dword [0x4507f0]
mov dword [ebp - 0x85bc], 2
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov esi, section.Shared
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp - 0x85bc], eax
cmp eax, 1
jle 0x41f909
test dword [edi + 0x228], 0x1000
je 0x41f909
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, 0x4000
mov word [ebp - 0x85fc], ax
mov eax, dword [ebp - 0x85b8]
push 3
pop ecx
mov dword [ebp - 0x85f4], eax
mov word [ebp - 0x85e4], cx
cmp eax, ebx
je 0x41f8de
cmp word [eax], bx
je 0x41f8de
mov eax, dword [edi + 0x214]
shr eax, 0x11
and eax, ecx
je 0x41f8cd
xor ecx, ecx
cmp eax, 1
sete cl
mov dword [ebp - 0x85dc], ecx
jmp 0x41f8e8
lea eax, [ebp - 0x38c]
push eax
push dword [ebp - 0x859c]
call fcn.00441692
pop ecx
pop ecx
test eax, eax
jne 0x41f793
lea eax, [edi + 0x30]
push eax
lea eax, [ebp - 0x38c]
lea ecx, [edi + 0x18]
lea edx, [edi + 0x1ac]
push eax
call fcn.0042af32
pop ecx
pop ecx
mov dword [ebp - 0x85ac], 1
jmp 0x41f793
cmp dword [ebp - 0x8598], ebx
je 0x41f8bb
push dword [ebp - 0x8598]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 0x38c]
call fcn.00441389
xor eax, eax
jmp 0x4201c8
mov eax, dword [edi + 0x254]
and eax, 4
mov dword [ebp - 0x85dc], eax
jmp 0x41f8e8
mov dword [ebp - 0x85dc], 1
push ebx
push ebx
lea eax, [ebp - 0x85e4]
push eax
lea eax, [ebp - 0x85fc]
push eax
push 0x60000016
mov eax, edi
call fcn.00414878
add esp, 0x14
jmp 0x41f89f
lea edx, [edi + 0x1ac]
lea ebx, [edi + 0x288]
lea ecx, [ebp - 0x594]
mov dword [ebp - 0x85a8], edx
mov dword [ebp - 0x85b0], ebx
call fcn.00424b68
lea ecx, [ebp - 0x594]
mov edx, ebx
call fcn.00424daa
lea eax, [ebp - 0x36c]
xor esi, esi
push eax
mov dword [ebp - 0x368], esi
mov dword [ebp - 0x364], esi
mov dword [ebp - 0x36c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x368], 5
jne 0x41f976
cmp dword [ebp - 0x364], esi
jbe 0x41f9a5
mov byte [edi + 0x227], 0
cmp dword [ebp - 0x368], 6
jne 0x41f99c
mov byte [edi + 0x227], 1
cmp dword [ebp - 0x364], esi
jbe 0x41f9a5
cmp dword [ebp - 0x368], 6
mov byte [edi + 0x227], 2
jbe 0x41f9a5
mov byte [edi + 0x227], 0x1f
mov eax, dword [edi + 0x214]
lea ecx, [eax + eax]
xor ecx, eax
and ecx, 0x10000
xor ecx, eax
test byte [edi + 0x228], 0x40
mov dword [edi + 0x214], ecx
je 0x41fa0a
cmp byte [edi + 0x227], 1
jb 0x41fa0a
call fcn.0041f5a7
mov ebx, eax
shl eax, 7
xor eax, dword [edi + 0x228]
and eax, 0x80
xor dword [edi + 0x228], eax
call dword [sym.imp.UxTheme.dll_BufferedPaintInit]
cmp ebx, esi
je 0x41fa0a
xor eax, eax
cmp ax, word [ebp - 0x384]
jne 0x41fa0a
or dword [edi + 0x214], 0x18000
xor eax, eax
test dword [edi + 0x210], 0x2000
je 0x41fa21
mov dword [ebp + 0x10], 3
jmp 0x41fa32
cmp dword [ebp + 0x10], esi
jne 0x41fa32
mov eax, 0x20000000
mov dword [ebp + 0x10], 6
mov esi, dword [ebp - 0x85a8]
mov ebx, dword [ebp - 0x85b4]
lea edi, [ebp - 0x85d4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ecx, ecx
movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x85ac], ecx
je 0x41fa84
mov edx, dword [ebp - 0x85a8]
mov dword [ebp - 0x85d4], ecx
mov dword [ebp - 0x85d0], ecx
mov ecx, dword [ebx + 0x1b4]
sub ecx, dword [edx]
mov dword [ebp - 0x85cc], ecx
mov ecx, dword [ebx + 0x1b8]
sub ecx, dword [ebx + 0x1b0]
mov dword [ebp - 0x85c8], ecx
or dword [ebx + 0x58], 8
push eax
push ebx
lea ecx, [ebp - 0x594]
lea edx, [ebp - 0x85d4]
call fcn.0041e02f
xor esi, esi
cmp eax, esi
jne 0x41fac4
push section.Shared
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp dword [ebp - 0x8598], esi
je 0x41f8bb
push dword [ebp - 0x8598]
push esi
jmp 0x41f8ae
cmp dword [ebp - 0x85ac], esi
je 0x41fb05
and dword [ebp - 0x34], esi
mov esi, dword [ebp - 0x85a8]
or ecx, 0xffffffff
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x38], 0x2c
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowPlacement]
jmp 0x41fb0f
push dword [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor esi, esi
lea eax, [ebx + 0x14]
mov ecx, dword [eax]
inc esi
push esi
push eax
mov dword [ebp - 0x85ac], eax
call dword [ecx + 0x58]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [ebx + 0x1018]
call edi
mov eax, dword [ebx + 0x103c]
test eax, eax
je 0x41fb41
push 5
push eax
call edi
cmp byte [ebx + 0x227], 2
jb 0x41fbf6
mov eax, dword [ebx + 0x254]
shr eax, 0x17
xor eax, dword [ebx + 0x228]
push 0x44b598
and eax, 0x18
xor dword [ebx + 0x228], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41fbb5
push str.ChangeWindowMessageFilter
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x41fbb5
test byte [ebx + 0x228], 8
je 0x41fbb0
push esi
push 0x111
call edi
push esi
push 0x112
call edi
push esi
push 0x323
call edi
push esi
push 0x326
call edi
push esi
push 0x4a
call edi
cmp byte [ebx + 0x227], 2
jb 0x41fbf6
cmp dword [ebp - 0x85bc], esi
jne 0x41fbf6
test dword [ebx + 0x210], 0x8000
je 0x41fbf6
lea eax, [ebp - 0x594]
push eax
push esi
push dword [ebp - 0x85b0]
call fcn.00414793
add esp, 0xc
test al, al
je 0x41fbf6
or dword [ebx + 0x254], 0x40000000
lea eax, [ebp - 0x85c0]
push eax
push esi
push 0
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
test eax, eax
jne 0x41fc8f
mov word [ebp - 0x4c], ax
lea eax, [ebp - 0x85bc]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x85b0]
push eax
push edi
push str.Version
push dword [ebp - 0x85c0]
mov dword [ebp - 0x85b0], esi
mov dword [ebp - 0x85bc], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x85c0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - 0x4c], di
je 0x41fc8f
mov eax, dword [ebp - 0x4c]
add eax, 0xffffffca
cmp ax, 3
ja 0x41fc71
mov al, byte [ebp - 0x4c]
jmp 0x41fc89
cmp word [ebp - 0x4c], 0x31
jne 0x41fc8f
mov eax, dword [ebp - 0x4a]
add eax, 0xffffffd0
cmp ax, 9
ja 0x41fc8f
mov al, byte [ebp - 0x4a]
add al, 0x11
mov byte [ebx + 0x226], al
cmp byte [ebx + 0x226], 0x38
jae 0x41fcb4
lea eax, [ebx + 0x8c]
push edi
mov ecx, 0x8022
call fcn.00407769
push edi
mov ecx, 0x801c
call fcn.00407769
lea eax, [ebp - 0x594]
push eax
mov ecx, ebx
call fcn.0041e588
mov eax, dword [ebx + 0x214]
shr eax, 0xd
and eax, esi
lea ecx, [ebx + 0x44]
call fcn.004072d0
test dword [ebx + 0x214], 0x2000
mov dword [ebp - 0x85bc], edi
je 0x41fcfd
lea eax, [ebx + 0x3c]
push eax
lea edi, [ebp - 0x85bc]
lea ecx, [ebp - 0x594]
call fcn.00406772
pop ecx
lea eax, [ebx + 0x40]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, dword [ebp - 0x85ac]
mov ebx, eax
call fcn.0040c260
cmp dword [ebp + 0x10], 6
mov edi, dword [ebp - 0x85b4]
je 0x41fd2f
push 0x10000000
push 0
xor edx, edx
mov ecx, edi
call fcn.0041e214
cmp dword [ebp - 0x8598], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
je 0x41fd4f
push dword [ebp - 0x8598]
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 0x38c]
call fcn.00441389
lea ebx, [edi + 0xd64]
call fcn.0042d6ac
mov eax, dword [edi + 0x248]
push 0xffffffffffffffff
push dword [ebp - 0x85a8]
call fcn.00405928
mov eax, dword [ebp - 0x85a8]
pop ecx
pop ecx
call fcn.00405bba
test byte [edi + 0x228], 4
je 0x41fdc1
call esi
mov ecx, dword [edi + 0x68]
xor esi, esi
push 0xa0
cmp ecx, esi
je 0x41fda9
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
jmp 0x41fdb1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, esi
je 0x41fdc3
mov dword [edi + 0x68], eax
mov dword [edi + 0x70], 0xa
jmp 0x41fdc3
xor esi, esi
mov ebx, dword [ebp - 0x85b8]
mov dword [ebp - 0x85a8], esi
cmp ebx, esi
je 0x41fdf8
cmp word [ebx], si
je 0x41fdf8
test dword [edi + 0x228], 0x1000
je 0x41fe94
test dword [edi + 0x210], 0x4000
je 0x41fe94
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x85a8], 0xc9
cmp ecx, esi
je 0x41fe42
lea eax, [ecx - 0x8000]
cmp eax, 0xa8
ja 0x41fe21
shl eax, 4
mov eax, dword [eax + 0x448860]
jmp 0x41fe70
push 1
push esi
movzx eax, cx
mov ecx, dword [ebp - 0x85ac]
push esi
push eax
push ecx
xor edx, edx
mov dword [ebp - 0x85a8], esi
call fcn.00425bde
add esp, 0x14
jmp 0x41fe76
movzx ecx, word [edi + 0x1e0]
mov eax, ecx
sub eax, 0x8035
je 0x41fe61
sub eax, 0x1f
je 0x41fe61
sub eax, 4
je 0x41fe61
sub eax, 0x11
jne 0x41fe7e
add ecx, 0xffff8000
shl ecx, 4
mov eax, dword [ecx + 0x448860]
mov dword [ebp - 0x85a8], eax
cmp dword [ebp - 0x85a8], esi
je 0x41fe94
mov eax, dword [ebp - 0x85ac]
mov ecx, dword [eax]
push esi
push esi
push esi
push esi
push dword [ebp - 0x85a8]
push eax
call dword [ecx + 0xc]
cmp ebx, esi
je 0x420080
cmp word [ebx], si
je 0x420080
lea eax, [ebp - 0x85b4]
push eax
push dword [ebp - 0x85b8]
xor ebx, ebx
mov dword [ebp - 0x85b4], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test dword [edi + 0x228], 0x1000
push 8
mov dword [ebp - 0x85b0], eax
pop eax
mov dword [ebp - 0x85c0], ebx
lea esi, [ebp - 0x860c]
mov word [ebp - 0x85fc], ax
je 0x41ff4d
test dword [edi + 0x210], 0x4000
je 0x41ff4d
mov ecx, dword [edi + 0x214]
mov eax, ecx
shr eax, 0x11
and eax, 3
je 0x41ff2a
lea edx, [ebp - 0x85d4]
mov dword [ebp - 0x85c0], edx
push 0xb
pop edx
mov word [ebp - 0x85d4], dx
xor edx, edx
cmp eax, 1
setne dl
dec edx
mov word [ebp - 0x85cc], dx
shr ecx, 7
and ecx, 7
je 0x41ff4d
push 3
pop eax
mov word [ebp - 0x85e4], ax
or eax, 0xffffffff
sub eax, ecx
lea ebx, [ebp - 0x85e4]
mov dword [ebp - 0x85dc], eax
and dword [ebp - 0x85b8], 0
cmp dword [ebp - 0x85b4], 0
jle 0x420072
mov eax, dword [ebp - 0x85b0]
mov ecx, dword [ebp - 0x85b8]
push dword [eax + ecx*4]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push esi
push ebx
push dword [ebp - 0x85c0]
lea edx, [ebp - 0x85fc]
push edx
mov dword [ebp - 0x85f4], eax
mov eax, dword [ebp - 0x85ac]
mov ecx, dword [eax]
push 2
push eax
call dword [ecx + 0xc]
push dword [ebp - 0x85f4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
je 0x420053
cmp dword [ebp - 0x85b4], 1
jle 0x420046
push 0xb
pop eax
mov word [ebp - 0x85d4], ax
xor eax, eax
mov word [ebp - 0x85cc], ax
lea edx, [ebp - 0x85c4]
lea eax, [ebp - 0x85d4]
push edx
mov dword [ebp - 0x85c0], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax]
push 0x44a868
push eax
call dword [ecx]
test eax, eax
js 0x420046
mov eax, dword [ebp - 0x85c4]
mov ecx, dword [eax]
lea edx, [ebp - 0x85ec]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x85ac]
mov ecx, dword [eax]
lea edx, [ebp - 0x85e8]
push edx
push dword [ebp - 0x85ec]
push eax
call dword [ecx + 0x34]
push 3
pop eax
mov word [ebp - 0x85e4], ax
mov eax, dword [ebp - 0x85e8]
inc eax
mov dword [ebp - 0x85dc], eax
mov eax, dword [ebp - 0x85c4]
mov ecx, dword [eax]
push eax
lea ebx, [ebp - 0x85e4]
call dword [ecx + 8]
mov esi, dword [esi + 8]
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor esi, esi
jmp 0x42005a
test ebx, ebx
je 0x42005a
inc dword [ebx + 8]
inc dword [ebp - 0x85b8]
mov eax, dword [ebp - 0x85b8]
cmp eax, dword [ebp - 0x85b4]
jl 0x41ff61
push dword [ebp - 0x85b0]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
cmp dword [edi + 0x1a4], esi
jne 0x4200b1
cmp dword [ebp - 0x85a8], 0x7d
jne 0x42009c
xor esi, esi
mov ebx, edi
call fcn.0041e8fe
jmp 0x4200b1
mov eax, dword [ebp - 0x85ac]
mov ecx, dword [eax]
push esi
push esi
push esi
push esi
push 0xc9
push eax
call dword [ecx + 0xc]
mov eax, dword [edi + 0xffc]
cmp eax, esi
jle 0x420119
xor ebx, ebx
mov dword [ebp - 0x85c4], eax
mov esi, dword [edi + 0xff8]
add esi, ebx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42010e
mov ecx, dword [eax]
lea edx, [ebp - 0x85b0]
push edx
push 0x449a20
push eax
call dword [ecx]
test eax, eax
js 0x420101
mov eax, dword [ebp - 0x85b0]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x85b0]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [esi + 0x14], 0
add ebx, 0x18
dec dword [ebp - 0x85c4]
jne 0x4200c3
test byte [edi + 0x216], 1
je 0x42012f
push 0
push 0
xor edx, edx
mov ecx, edi
call fcn.0041e214
mov eax, dword [edi + 0x58]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
and eax, 0xfffffff7
push 4
push dword [edi + 0xdd0]
or eax, 0x800
mov dword [edi + 0x58], eax
call ebx
push 4
push dword [edi + 0xd78]
call ebx
push dword [edi + 0xdd0]
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [ebp - 0x85bc]
test eax, eax
je 0x42018e
cmp eax, dword [edi + 0x1024]
jb 0x42018e
inc eax
mov ecx, eax
and ecx, 3
mov dword [edi + 0x1024], eax
je 0x42018e
sub eax, ecx
add eax, 4
mov dword [edi + 0x1024], eax
test dword [edi + 0x228], 0x800
je 0x4201a5
call fcn.004210a7
mov dword [edi + 0x200], eax
mov ecx, dword [ebp - 0x85ac]
call fcn.00422e7b
cmp dword [edi + 0x84], 0
mov esi, eax
je 0x4201c6
push section.Shared
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044552e
leave
ret