Function at 0x410ee2
Capabilities:
Accept command line arguments
Check os version
Get file attributes
Get system information on windows
Initialize winsock library
Query or enumerate registry value
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x1f0]
sub esp, 0x270
mov eax, dword [0x4a9c04]
xor eax, ebp
mov dword [ebp + 0x1ec], eax
mov eax, dword [ebp + 0x200]
push ebx
push esi
mov esi, dword [ebp + 0x1f8]
push edi
push str.IsWow64Process
push str.Kernel32.dll
mov dword [ebp + 0x28], esi
mov dword [ebp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x410f3f
push 0x4ad750
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
lea eax, [ebp + 0x34]
push eax
mov dword [0x4ad678], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.0040dcb8
mov esi, eax
push esi
lea eax, [ebp + 0x34]
push eax
push str.nolicprompt
mov dword [ebp + 0x30], esi
call fcn.0040dd6e
add esp, 0x14
test eax, eax
jne 0x410f8a
push esi
lea eax, [ebp + 0x34]
push eax
push str.BGInfo
call fcn.0040abc9
add esp, 0xc
test eax, eax
je 0x411679
push esi
lea eax, [ebp + 0x34]
push eax
push 0x48c4a4
call fcn.0040dd6e
add esp, 0xc
mov dword [0x4ad76c], eax
cmp eax, ebx
je 0x410fb0
cmp byte [eax], 0x3a
jne 0x410fb0
inc eax
mov dword [0x4ad76c], eax
push esi
lea eax, [ebp + 0x34]
push eax
mov edi, 0x48c4a0
push edi
call fcn.0040dd6e
add esp, 0xc
test eax, eax
setne byte [ebp + 0x24]
cmp byte [ebp + 0x24], bl
je 0x411006
mov esi, dword [ebp + 0x2c]
mov eax, esi
cmp byte [eax], bl
je 0x411006
mov al, byte [esi]
cmp al, 0x2f
je 0x410fe1
cmp al, 0x2d
jne 0x411001
push 3
lea eax, [esi + 1]
push edi
push eax
call fcn.00450937
add esp, 0xc
test eax, eax
jne 0x411001
push 4
push 0x20
push esi
call fcn.0044f370
add esp, 0xc
inc esi
cmp byte [esi], bl
jne 0x410fd7
push dword [ebp + 0x24]
push dword [ebp + 0x2c]
call fcn.00408e6e
push 0x1e0
call fcn.00456b39
add esp, 0xc
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
xor eax, eax
push 0x18e
mov word [ebp + 0x3c], ax
lea eax, [ebp + 0x3e]
push ebx
push eax
call fcn.0044f370
add esp, 0xc
lea eax, [ebp + 0x3c]
push eax
push 1
call sub.WSOCK32.dll_WSAStartup
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edi, 0x4ad690
push edi
mov dword [0x4ad690], 0x94
call esi
push edi
mov dword [0x4ad690], 0x9c
call esi
push str.GetNativeSystemInfo
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4ad72c
cmp eax, ebx
je 0x41109b
call eax
jmp 0x4110a1
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
call fcn.0041946e
push 1
mov esi, eax
call fcn.0041946e
push eax
push esi
lea eax, [ebp + 0x1cc]
push str._dx_d
push eax
call fcn.0044f3ea
add esp, 0x10
lea eax, [ebp + 0x1cc]
push eax
push str.SCREENRES
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 1
push str.BGInfo_Configuration_File
push str.BGInfo.Config.1
mov edi, 0x48c154
push edi
call fcn.00413490
add esp, 0x10
lea eax, [ebp + 0x20]
push eax
push 0x4ad75c
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareWinternalsBGInfo
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push dword [ebp + 0x30]
lea eax, [ebp + 0x34]
push eax
push str.silent
call fcn.0040dd6e
add esp, 0xc
test eax, eax
je 0x41113a
mov byte [0x4ad768], 1
push dword [ebp + 0x30]
lea eax, [ebp + 0x34]
push eax
push str.timer
mov dword [0x4ad680], 0xa
call fcn.0040dd6e
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x411183
jmp 0x411171
cbw
movzx eax, ax
push eax
call fcn.00455c35
pop ecx
test eax, eax
jne 0x411177
inc esi
mov al, byte [esi]
cmp al, bl
jne 0x411160
push esi
call fcn.00455e69
pop ecx
mov dword [0x4ad680], eax
push dword [ebp + 0x30]
lea eax, [ebp + 0x34]
push eax
push ebx
call fcn.0040dd6e
mov esi, eax
add esp, 0xc
mov dword [ebp + 0x2c], esi
cmp esi, ebx
je 0x411201
push ebx
push esi
call fcn.0044ed90
sub eax, 4
pop ecx
pop ecx
cmp eax, esi
jb 0x4111b9
push edi
push eax
call fcn.0044f215
pop ecx
pop ecx
test eax, eax
je 0x4111d0
push esi
push str._s.bgi
mov esi, 0x4affe0
push esi
call fcn.0044f3ea
add esp, 0xc
mov dword [ebp + 0x2c], esi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x411201
cmp byte [0x4ad768], bl
jne 0x4111f9
push esi
push str.Cannot_find_the_configuration_file__s_n_nDo_you_want_to_create_a_new_file_
push 0x34
push ebx
call fcn.0040b503
add esp, 0x10
cmp eax, 6
je 0x411201
xor eax, eax
inc eax
jmp 0x41167b
push dword [ebp + 0x30]
lea eax, [ebp + 0x34]
push eax
push ebx
call fcn.0040dd6e
add esp, 0xc
test eax, eax
je 0x411225
push str.You_may_not_specify_more_than_one_configuration_file_to_use._n_nAdditional_files_will_be_ignored
push 0x30
push ebx
call fcn.0040b503
add esp, 0xc
mov edi, 0x48c384
jmp 0x4112a7
cmp byte [0x4affdc], bl
jne 0x411292
movsx eax, byte [esi]
push eax
call fcn.00450ab7
pop ecx
cmp eax, 0x71
jne 0x411251
lea eax, [esi + 1]
cmp byte [eax], 0x3a
je 0x411251
mov byte [ebp + 0x3b], 1
mov esi, eax
cmp byte [esi], 0x3a
jne 0x411257
inc esi
push ebx
push esi
push dword [0x4ad75c]
call fcn.00409261
add esp, 0xc
test al, al
je 0x411274
mov byte [0x4affdc], 1
jmp 0x411292
cmp byte [ebp + 0x3b], bl
jne 0x41128a
push esi
push str.Error_importing_settings_from__s
push 0x10
push ebx
call fcn.0040b503
add esp, 0x10
cmp byte [0x4affdc], bl
je 0x4112a7
cmp dword [ebp + 0x2c], ebx
je 0x4112a7
push str.Using_the__i_or__iq__import__options_in_conjunction_with_na_named_configuration_file_may_yield_unexpected_results._n_nSettings_imported_using__i_update_only_the_Default_nConfiguration__not_the_configuration_named_on_the_command_line.
push 0x30
push ebx
call fcn.0040b503
add esp, 0xc
push dword [ebp + 0x30]
lea eax, [ebp + 0x34]
push eax
push edi
mov byte [ebp + 0x3b], bl
call fcn.0040dd6e
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x41122c
push dword [ebp + 0x30]
lea eax, [ebp + 0x34]
push eax
push str.popup
call fcn.0040dd6e
push dword [ebp + 0x30]
test eax, eax
setne al
mov byte [0x4ad76a], al
lea eax, [ebp + 0x34]
push eax
push str.taskbar
call fcn.0040dd6e
push dword [ebp + 0x30]
test eax, eax
setne al
mov byte [0x4ad769], al
lea eax, [ebp + 0x34]
push eax
push 0x48c260
call fcn.0040dd6e
add esp, 0x24
mov dword [0x4ad770], eax
cmp eax, ebx
je 0x411322
cmp byte [eax], 0x3a
jne 0x411322
inc eax
mov dword [0x4ad770], eax
push 0x2298
call fcn.00419190
pop ecx
cmp eax, ebx
je 0x41133d
push dword [ebp + 0x2c]
mov ecx, eax
call fcn.0040ada5
jmp 0x41133f
xor eax, eax
mov dword [0x4ad774], eax
cmp dword [eax + 0x34c], ebx
jne 0x41136f
cmp byte [0x4ad768], bl
jne 0x411367
push dword [ebp + 0x2c]
push str.Error_loading__s
push 0x10
push ebx
call fcn.0040b503
add esp, 0x10
push 2
pop eax
jmp 0x41167b
cmp dword [ebp + 0x34], 1
je 0x411392
push ebx
push 0x40b5be
push ebx
push str.OPTIONS
push dword [0x4ad678]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x411679
push 0x2c
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0044f370
mov eax, dword [ebp + 0x28]
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
add esp, 0xc
mov esi, str.APPICON
push esi
push eax
mov dword [ebp - 0x10], 0x30
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0x40f5e6
mov dword [ebp + 4], eax
mov dword [ebp], 0x1e
call edi
push esi
push dword [ebp + 0x28]
mov dword [ebp + 8], eax
call edi
push 0x7f00
push ebx
mov dword [ebp + 0x1c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp + 0x10], 0x10
mov dword [ebp + 0x18], str.BGInfoClass
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x41140c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x30
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.0044f370
mov eax, dword [ebp + 0x28]
add esp, 0xc
push 0x7f88
push ebx
mov dword [ebp - 0x10], 0x30
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0x40dba3
mov dword [ebp + 4], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push esi
push dword [ebp + 0x28]
mov dword [ebp + 0xc], eax
call edi
push esi
push dword [ebp + 0x28]
mov dword [ebp + 8], eax
call edi
mov esi, dword [sym.imp.USER32.dll_RegisterClassExA]
mov dword [ebp + 0x1c], eax
lea eax, [ebp - 0x10]
mov edi, str.PreviewWindowClass
push eax
mov dword [ebp + 0x18], edi
call esi
test ax, ax
jne 0x411472
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x30
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.0044f370
mov eax, dword [ebp + 0x28]
add esp, 0xc
push 0x7f00
push ebx
mov dword [ebp - 0x10], 0x30
mov dword [ebp - 0xc], 3
mov dword [ebp - 8], 0x415046
mov dword [ebp + 4], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp + 0x18], str.RulerControlWindowClass
call esi
test ax, ax
jne 0x4114c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push dword [0x4ad678]
push ebx
push ebx
push 1
call fcn.0041946e
push eax
push ebx
call fcn.0041946e
push eax
push ebx
push ebx
push SysReAllocString
push str.BGInfo
push edi
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
push ebx
push 0x40f5e6
push eax
push str.MAIN
push dword [ebp + 0x28]
mov dword [0x4ad688], eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov esi, eax
cmp esi, ebx
jne 0x41151a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4111f9
cmp dword [0x4ad680], ebx
jle 0x4115f2
push 0xa
pop ecx
xor eax, eax
mov dword [ebp - 0x80], ebx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push str.WindowPosition
push dword [0x4ad75c]
mov dword [ebp + 0x20], 0x2c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, dword [ebp + 0x204]
lea eax, [ebp - 0x80]
push eax
push esi
mov dword [ebp - 0x78], edi
call dword [sym.imp.USER32.dll_SetWindowPlacement]
test eax, eax
jne 0x411575
push edi
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push esi
call fcn.00419565
push 8
mov edx, eax
pop ecx
xor eax, eax
mov dword [ebp - 0x54], 0x28
mov dword [ebp - 0x50], ebx
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push eax
push edx
call fcn.004195d2
lea eax, [ebp + 0x1dc]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp + 0x1dc]
push eax
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x4115d3
mov eax, dword [ebp - 0x40]
mov dword [ebp + 0x1dc], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp + 0x1e0], eax
push 5
push ebx
push ebx
push dword [ebp + 0x1e0]
push dword [ebp + 0x1dc]
push ebx
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push str.ACCELERATORS
push dword [ebp + 0x28]
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
mov dword [ebp + 0x24], eax
jmp 0x411654
cmp dword [ebp - 0x28], 0x12
je 0x411661
cmp dword [ebp - 0x28], 0x1a
je 0x411654
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x24]
push esi
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x411654
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x411654
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
call edi
test eax, eax
jne 0x41160b
mov ecx, dword [0x4ad774]
mov esi, ecx
cmp ecx, ebx
je 0x411679
call fcn.00409097
push esi
call fcn.004191bf
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x1ec]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044f35b
add ebp, 0x1f0
leave
ret 0x10