Function at 0x401270
Capabilities:
Check os version
Create directory
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x238
push ebx
push esi
mov esi, dword [esp + 0x244]
push edi
xor edi, edi
mov dword [0x44d514], esi
push edi
push str.ALL100App
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4012ac
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x238
ret
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push str.__V3.19__
push str.XCY8C3X.EXE
lea eax, [esp + 0xc0]
push str._s___s
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0xb8]
push edi
push esi
push edi
push edi
push MenuHelp
push MenuHelp
push edi
push edi
push 0xcf0000
push ecx
push str.ALL100App
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, edi
mov dword [0x44d510], eax
jne 0x40130c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x238
ret
push ebp
push str.MAINMENUACC
push esi
mov dword [0x44c0e8], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
lea edx, [esp + 0x13c]
push 0x10c
push edx
push esi
mov dword [0x44c0f0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [0x44d510]
lea eax, [esp + 0x13c]
push eax
push str.XCY8C3X.EXE
push 0x439894
push ecx
call fcn.00419090
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0x10
push 0x439894
push 0x439ec0
call edi
push 0x439894
push 0x44cac0
call edi
push 0x439894
push 0x44c160
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.OK.WAV
push 0x44cac0
call ebp
push str.ERROR.WAV
push 0x44c160
call ebp
call dword [sym.imp.WINMM.dll_waveOutGetNumDevs]
neg eax
sbb eax, eax
push str.SoftwareHi_Lo_SystemsALL_100_
neg eax
push 0x44d540
mov dword [0x44d524], eax
call ebx
add esp, 8
push str.XCY8C3X.EXE
push 0x44d540
call ebp
push 0x44d48c
push 0x44d740
push 0
push 0xf003f
push 0
push str.XCY8C3X.EXE
push 0
push 0x44d540
push MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
mov edx, dword [0x44d740]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.MfgNo
push edx
mov dword [esp + 0x28], 4
call esi
test eax, eax
je 0x401444
mov ecx, dword [0x44d740]
lea eax, [esp + 0x20]
push 4
push eax
push 4
push 0
push str.MfgNo
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x401459
cmp eax, dword [0x42e7f0]
jge 0x401459
mov dword [0x439fc8], eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x24]
push edx
mov edx, dword [0x44d740]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.TypeNo
push edx
call esi
test eax, eax
je 0x401499
mov ecx, dword [0x44d740]
lea eax, [esp + 0x24]
push 4
push eax
push 4
push 0
push str.TypeNo
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x24]
test eax, eax
jl 0x4014b7
mov ecx, dword [0x439fc8]
cmp eax, dword [ecx*4 + 0x42e7f4]
jge 0x4014b7
mov dword [ecx*4 + 0x439fcc], eax
mov ecx, dword [0x44d740]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push 0x439eb8
push eax
push 0
push str.JobFlag
push ecx
call esi
test eax, eax
je 0x4014f7
mov edx, dword [0x44d740]
push 4
push 0x439eb8
push 4
push 0
push str.JobFlag
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [0x44d740]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4326d8
push 0x439ec0
call ebp
push 0x439ec0
push 0x44bfe0
call edi
push str.XCY8C3X_
push 0x44bfe0
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x44d4f0
call edi
mov ax, word [0x44d4f6]
xor ecx, ecx
mov word [0x44c264], ax
mov cx, ax
mov eax, dword [0x44d4f0]
xor edx, edx
mov dx, word [0x44d4f2]
push ecx
and eax, 0xffff
push edx
push eax
push str._04d__02d__02d.Log
push 0x44d540
call ebx
add esp, 0x14
push 0x44d540
push 0x44bfe0
call ebp
push str.V3.19
push str.XCY8C3X.EXE
push str.___s__s__r_n
push 0x44d540
call ebx
mov eax, dword [0x439fc8]
mov ecx, dword [0x439eb8]
push ecx
mov edx, dword [eax*4 + 0x439fcc]
mov ecx, dword [eax*4 + 0x431580]
mov eax, dword [eax*4 + 0x42e7f8]
shl edx, 7
mov edx, dword [edx + ecx]
mov ecx, dword [0x44d4fc]
push edx
push eax
mov eax, dword [0x44d4f8]
xor edx, edx
mov dx, word [0x44d4fa]
and ecx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
push str.__02d:_02d:_02d__tMfr.___s_t_Type___s_t_Job_:__d__r_n
push 0x44d760
call ebx
add esp, 0x30
push 0x44d760
push 0x44d540
call ebp
call fcn.0040ac50
mov ecx, dword [0x44d510]
push 3
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x44d510]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [0x439eb8], 1
jne 0x401628
mov eax, dword [0x44d510]
push 8
push 0x2d
push eax
jmp 0x401633
mov ecx, dword [0x44d510]
push 0
push 0x2d
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
lea edx, [esp + 0x28]
mov dword [esp + 0x28], 0x94
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x2c]
push 0x44d4f0
cmp eax, 5
sbb eax, eax
neg eax
mov dword [0x44d888], eax
call edi
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [0x44d4fc]
push ecx
push edx
mov edx, dword [0x44d4f8]
xor ecx, ecx
and eax, 0xffff
mov cx, word [0x44d4fa]
push eax
and edx, 0xffff
push ecx
push edx
push str.__02d:_02d:_02d__tWindows_Version_:_d._d_r_n
push 0x44d540
call ebx
call fcn.0040ac50
push str.SoftwareHi_Lo_SystemsALL_100_
push 0x44d540
call ebx
add esp, 0x24
push str.XCY8C3X.EXE
push 0x44d540
call ebp
push 0x44d740
push 0xf003f
push 0
push 0x44d540
push MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [0x44d740]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push 0x439ebc
push ecx
push 0
push str.BeepSound
push edx
call esi
test eax, eax
je 0x40171d
mov eax, dword [0x44d740]
push 4
push 0x439ebc
push 4
push 0
push str.BeepSound
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [0x439ebc], 1
jne 0x401733
mov ecx, dword [0x44d510]
push 8
push 0x6a
push ecx
jmp 0x40173e
mov edx, dword [0x44d510]
push 0
push 0x6a
push edx
mov edi, dword [sym.imp.USER32.dll_GetMenu]
call edi
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov edx, dword [0x44d740]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push 0x439554
push ecx
push 0
push str.AutoProgram
push edx
call esi
test eax, eax
je 0x40178c
mov eax, dword [0x44d740]
push 4
push 0x439554
push 4
push 0
push str.AutoProgram
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [0x439554]
test eax, eax
je 0x4017a2
mov ecx, dword [0x44d510]
push 8
push 0x6b
push ecx
jmp 0x4017ad
mov edx, dword [0x44d510]
push 0
push 0x6b
push edx
call edi
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov edx, dword [0x44d740]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push 0x439ea4
push ecx
push 0
push str.AutoSave
push edx
call esi
test eax, eax
je 0x4017f5
mov eax, dword [0x44d740]
push 4
push 0x439ea4
push 4
push 0
push str.AutoSave
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [0x439ea4]
test eax, eax
je 0x40180b
mov ecx, dword [0x44d510]
push 8
push 0x6d
push ecx
jmp 0x401816
mov edx, dword [0x44d510]
push 0
push 0x6d
push edx
call edi
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov eax, dword [0x44d740]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
push 0x44d740
push 0xf003f
push 0
push str.SoftwareHi_Lo_SystemsALL_100
push MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [0x44d740]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push 0x42e5cc
push edx
push 0
push str.LogFile
push eax
mov dword [esp + 0x28], 4
call esi
mov eax, dword [0x44d740]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push 0x431ad4
push edx
push 0
push str.DeviceSelector
push eax
call esi
mov eax, dword [0x44d740]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push 0x42e03c
push edx
push 0
push str.Model
push eax
mov dword [esp + 0x28], 0x20
call esi
mov eax, dword [0x44d740]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push str.ALL_100_UNIVERSAL_PROGRAMMER
push edx
push 0
push str.ModelName
push eax
mov dword [esp + 0x28], 0x40
call esi
mov eax, dword [0x44d740]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push str.HI_LO
push edx
push 0
push str.OemCompanyName
push eax
mov dword [esp + 0x28], 0x20
call esi
mov ecx, dword [0x44d740]
push ecx
call edi
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
push str.Type_List
push 0
call edi
test eax, eax
mov dword [0x44d880], eax
je 0x401929
push 6
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push str.Manufacture__List
push 0
call edi
test eax, eax
mov dword [0x44d880], eax
je 0x401944
push 6
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push str.ALL_100_UNIVERSAL_PROGRAMMER
push 0
call edi
test eax, eax
mov dword [0x44d880], eax
je 0x40195f
push 6
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x42e5cc]
mov edi, 1
cmp eax, edi
jne 0x40198f
push 0
push 0x439ec0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [0x42e5cc], edi
jne 0x40198f
mov edx, dword [0x44d510]
push 8
push 0x60
push edx
jmp 0x401999
mov eax, dword [0x44d510]
push 0
push 0x60
push eax
mov edi, dword [sym.imp.USER32.dll_GetMenu]
call edi
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov ecx, dword [0x44c0e8]
push 1
push 0x60
push ecx
call edi
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [0x431ad4]
test eax, eax
jne 0x4019d9
mov edx, dword [0x44c0e8]
push 1
push 0x31
push edx
call edi
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [0x44d510]
push eax
call fcn.0040ae60
push 1
call fcn.00424180
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 8
test eax, eax
mov dword [0x44d874], eax
jne 0x401a2d
mov ecx, dword [0x44d510]
push 0x21
push 0x432594
push str.Error_Identification_on_hardware___n_nPress__OK__to_continue_testing..._nor_press__Cancel__to_Quit
push ecx
call edi
cmp eax, 2
jne 0x401a21
mov dword [esp + 0x18], 1
jmp 0x401a5d
mov dword [0x43988c], 1
jmp 0x401a5d
push 1
push 0
call fcn.0040a710
add esp, 8
cmp eax, 1
jne 0x401a53
mov edx, dword [0x44d510]
push 0x21
push 0x432594
push str.All_Modules_Error__n_nPress__OK__to_continue_testing..._nor_press__Cancel__to_Quit
push edx
jmp 0x401a10
mov dword [0x43988c], 0
push 0x44d740
push 0xf003f
push 0
push str.SoftwareHi_Lo_SystemsALL_100
push MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [0x44d740]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push 0x42e21c
push ecx
push 0
push str.ProgrammerFunctionSetting
push edx
call esi
test eax, eax
je 0x401abc
mov eax, dword [0x44d740]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
push 0x42e21c
push 4
push 0
push str.ProgrammerFunctionSetting
push eax
call edi
jmp 0x401ac2
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [0x44d740]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push 0x439568
push edx
push 0
push str.CheckPassWord
push eax
call esi
test eax, eax
je 0x401afd
mov ecx, dword [0x44d740]
push 4
push 0x439568
push 4
push 0
push str.CheckPassWord
push ecx
call edi
mov eax, dword [0x439568]
test eax, eax
je 0x401b13
mov edx, dword [0x44d510]
push 8
push 0x6c
push edx
jmp 0x401b1d
mov eax, dword [0x44d510]
push 0
push 0x6c
push eax
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov eax, dword [0x44d740]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push 0x42e228
push edx
push 0
push str.ProtectModeFlag
push eax
call esi
test eax, eax
je 0x401b65
mov ecx, dword [0x44d740]
push 4
push 0x42e228
push 4
push 0
push str.ProtectModeFlag
push ecx
call edi
mov ecx, dword [0x44d740]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push 0x439580
push eax
push 0
push str.XPEmbededOS
push ecx
call esi
mov eax, dword [0x439580]
test eax, eax
je 0x401bc9
mov edx, dword [0x44d510]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xfefcffff
push eax
mov eax, dword [0x44d510]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [0x44d510]
push 0x27
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [0x44d740]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push 0x439550
push eax
push 0
push str.DebugOption
push ecx
call esi
mov ecx, dword [0x44d740]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push 0x439558
push eax
push 0
push str.UserPassWord
push ecx
mov dword [esp + 0x28], 0x10
call esi
test eax, eax
je 0x401c2c
mov edx, dword [0x44d740]
push 0x10
push 0x439558
push 1
push 0
push str.UserPassWord
push edx
call edi
mov eax, dword [0x439568]
test eax, eax
je 0x401c6a
mov eax, dword [esp + 0x18]
mov esi, 1
cmp eax, esi
je 0x401c6a
mov eax, dword [0x439eb8]
test eax, eax
jne 0x401c5a
push 0x439ba0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401c6a
mov eax, dword [0x43988c]
test eax, eax
jne 0x401c6a
mov word [0x43956c], si
mov eax, dword [0x439fc8]
mov ecx, dword [eax*4 + 0x42e7f8]
push ecx
push 0x432474
push 0x44d540
call ebx
mov edx, dword [0x439fc8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov edi, dword [edx*4 + 0x42e7f8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x44d540
push 1
push eax
mov eax, dword [0x44d740]
push str.CurrentSelectedMfr
push eax
call esi
mov eax, dword [0x439fc8]
mov ecx, dword [eax*4 + 0x439fcc]
mov edx, dword [eax*4 + 0x431580]
shl ecx, 7
mov eax, dword [ecx + edx]
push eax
push 0x432474
push 0x44d540
call ebx
mov eax, dword [0x439fc8]
add esp, 0xc
mov ecx, dword [eax*4 + 0x439fcc]
mov edx, dword [eax*4 + 0x431580]
shl ecx, 7
xor eax, eax
mov edi, dword [ecx + edx]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x44d540
push 1
push eax
mov eax, dword [0x44d740]
push str.CurrentSelectedType
push eax
call esi
mov ecx, dword [0x44d740]
push 0xf
push str.XCY8C3X.EXE
push 1
push 0
push str.CurrentExeFileName
push ecx
call esi
mov edx, dword [0x44d740]
push 0xf
push str.V3.19
push 1
push 0
push str.CurrentExeVersion
push edx
call esi
mov eax, dword [0x44d740]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x44d510]
push ecx
call fcn.00407d50
add esp, 4
call fcn.0040a5f0
mov edx, dword [0x44c278]
shl edx, 0xa
push edx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x44d51c], eax
jne 0x401df1
mov eax, dword [0x44d510]
push 0x20
push 0x432594
push str.PC_Buffer_Memory_Size_not_enougth__n_nPress__OK__to_Exit
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
je 0x401da8
cmp eax, 2
jne 0x401db0
mov dword [esp + 0x18], 1
push 0x44d4f0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [0x44d4fc]
mov eax, dword [0x44d4f8]
xor edx, edx
and ecx, 0xffff
mov dx, word [0x44d4fa]
push ecx
and eax, 0xffff
push edx
push eax
push str.__02d:_02d:_02d__tPC_Buffer_Memory_Size_not_enougth__r_n
push 0x44d540
call ebx
add esp, 0x14
call fcn.0040ac50
mov esi, dword [esp + 0x18]
cmp esi, 1
je 0x401e9e
mov eax, dword [0x43988c]
test eax, eax
jne 0x401e9e
mov ecx, dword [0x44d510]
push 0
push ecx
call fcn.004093b0
mov edx, dword [0x44d510]
push edx
call fcn.00408c00
mov eax, dword [0x439994]
add esp, 0xc
test eax, eax
jne 0x401e70
mov eax, dword [0x439fc8]
mov ecx, dword [eax*4 + 0x439fcc]
mov edx, dword [eax*4 + 0x431580]
shl ecx, 7
cmp dword [ecx + edx + 0x44], 1
jne 0x401e5c
mov eax, dword [0x44d49c]
push 0xff
dec eax
push eax
jmp 0x401e66
mov ecx, dword [0x44d49c]
push 0
dec ecx
push ecx
push 0
call fcn.00409900
add esp, 0xc
mov eax, dword [0x439fc8]
mov edx, dword [eax*4 + 0x439fcc]
mov eax, dword [eax*4 + 0x431580]
shl edx, 7
cmp dword [edx + eax + 0x44], 1
jne 0x401e94
push 0xff
jmp 0x401e96
push 0
call fcn.0040a590
add esp, 4
mov ecx, dword [0x44d510]
mov edx, dword [esp + 0x24c]
push 0
push 0x406780
push ecx
push str.DeviceBox
push edx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x44d52c], eax
call fcn.00409e30
mov eax, dword [0x439fc8]
mov ecx, dword [eax*4 + 0x439fcc]
mov edx, dword [eax*4 + 0x431580]
shl ecx, 7
cmp byte [ecx + edx + 8], 0xb4
jne 0x401ef0
call fcn.00417e10
mov eax, dword [0x439fc8]
mov ecx, dword [eax*4 + 0x439fcc]
mov edx, dword [eax*4 + 0x431580]
shl ecx, 7
cmp byte [ecx + edx + 8], 0xb5
jne 0x401f0d
call fcn.00418000
push 0x439ba0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
test eax, eax
je 0x402017
mov al, byte [0x439ba1]
mov cl, 0x5c
cmp al, 0x3a
jne 0x401f39
cmp byte [0x439ba2], cl
je 0x401f45
cmp byte [0x439ba0], cl
jne 0x401f57
cmp al, cl
jne 0x401f57
push 0x439ba0
push 0x439ca0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x401f73
push 0x439894
push 0x439ca0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x439ba0
push 0x439ca0
call ebp
push 0
push 0x80
push 3
push 0
push 0
push MenuHelp
push 0x439ca0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x44ccf4], eax
je 0x402017
cmp esi, 1
je 0x402091
mov eax, dword [0x43988c]
test eax, eax
jne 0x402017
mov edi, 0x439ca0
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, 0x439998
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x44d510]
push ecx
call fcn.00422ce0
add esp, 0xc
cmp eax, 1
jne 0x402005
mov edx, dword [0x44d510]
push 0
push 0x46
push 0x111
push edx
call ebx
mov dword [esp + 0x1c], 1
jmp 0x402017
mov eax, dword [0x439568]
test eax, eax
je 0x402017
mov word [0x43956c], 0
mov esi, dword [esp + 0x18]
cmp esi, 1
je 0x402091
mov eax, dword [0x43988c]
test eax, eax
jne 0x402091
mov eax, dword [0x439eb8]
test eax, eax
je 0x402091
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x402091
mov eax, dword [0x44d510]
push 1
push eax
call fcn.004219b0
add esp, 8
cmp eax, 1
jne 0x402063
mov ecx, dword [0x44d510]
push 0
push 0x46
push 0x111
push ecx
call ebx
jmp 0x402091
mov eax, dword [0x439ea4]
mov word [0x43956c], 0
test eax, eax
je 0x4020cb
mov eax, dword [0x43988c]
test eax, eax
jne 0x402091
mov edx, dword [0x44d510]
push 1
push 1
push edx
call fcn.00422ce0
add esp, 0xc
mov eax, dword [0x439ea4]
test eax, eax
je 0x4020cb
cmp esi, 1
je 0x4020cb
mov eax, dword [0x43988c]
test eax, eax
jne 0x4020cb
mov eax, dword [0x439eb8]
test eax, eax
jne 0x4020cb
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4020cb
mov eax, dword [0x44d510]
push 1
push 1
push eax
call fcn.00422ce0
add esp, 0xc
mov ecx, dword [0x44d510]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [0x44d510]
push edx
call fcn.0040aa20
add esp, 4
call fcn.00424330
cmp esi, 1
pop ebp
jne 0x402100
mov eax, dword [0x44d510]
push 0
push 0
push 0x10
push eax
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x238
ret