Function at 0x402459
Capabilities:
Check os version
Create process on windows
Get system information on windows
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x740
mov eax, dword [0x406028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0xa0]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x9c
push 0
push eax
mov dword [ebp - 0x71c], edi
mov dword [ebp - 0x710], ebx
mov dword [ebp - 0xa4], 0x5c3a20
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [0x406714], edi
mov esi, 0x104
xor eax, eax
mov dword [ebp - 0x70c], eax
mov byte [0x406c20], al
push esi
push 0x406610
push 0x14
push edi
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x4024fa
push esi
push 0x4063f8
push 0x15
push dword [0x406714]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x4024fa
push esi
push 0x406508
push 0x16
push dword [0x406714]
call dword [sym.imp.USER32.dll_LoadStringA]
mov al, byte [ebx]
mov esi, ebx
jmp 0x402535
cmp al, 0x2d
je 0x402508
cmp al, 0x2f
jne 0x40252a
movsx eax, byte [esi + 1]
push eax
call dword [sym.imp.msvcrt.dll_toupper]
pop ecx
cmp eax, 0x51
jne 0x40252a
movsx eax, byte [esi + 2]
push eax
call dword [sym.imp.msvcrt.dll_toupper]
pop ecx
cmp eax, 0x54
je 0x40253b
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x402500
jmp 0x402545
mov dword [0x406728], 1
cmp dword [ebp + 0xc], 0
jne 0x4031f6
push 0
push str.STUFF_BOOT
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x4031f6
push 0xa0
lea eax, [ebp - 0x324]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov al, byte [ebx]
cmp al, 0x2d
je 0x402585
cmp al, 0x2f
jne 0x402633
movsx eax, byte [ebx + 1]
push eax
call dword [sym.imp.msvcrt.dll_toupper]
pop ecx
cmp eax, 0x4d
jne 0x402633
lea esi, [ebx + 2]
jmp 0x4025a0
inc esi
mov bl, byte [esi]
mov byte [ebp - 0x705], bl
cmp bl, 0x20
je 0x40259f
cmp bl, 0x22
jne 0x4025b3
inc esi
push ecx
push esi
push ecx
mov edi, 0xa0
lea ecx, [ebp - 0x324]
mov edx, edi
call fcn.0040170f
test eax, eax
js 0x403297
lea eax, [ebp - 0x324]
mov cl, byte [eax]
cmp cl, 0x20
jne 0x4025e2
cmp bl, 0x22
jne 0x4025f2
cmp cl, 0x22
jne 0x4025eb
cmp bl, cl
je 0x4025f2
test cl, cl
je 0x4025f2
inc eax
jmp 0x4025d6
mov edx, edi
mov byte [eax], 0
lea ecx, [ebp - 0x324]
call fcn.004021e7
cmp byte [ebp - 0x705], 0x22
lea ebx, [esi + eax]
mov dword [ebp - 0x710], ebx
jne 0x402620
cmp byte [ebx], 0x22
jne 0x402620
inc ebx
mov dword [ebp - 0x710], ebx
cmp byte [ebx], 0x20
jne 0x402638
inc ebx
cmp byte [ebx], 0x20
je 0x402625
mov dword [ebp - 0x710], ebx
jmp 0x402638
mov edi, 0xa0
push edi
lea eax, [ebp - 0x324]
push eax
push eax
call dword [sym.imp.USER32.dll_OemToCharBuffA]
mov al, byte [ebp - 0x324]
test al, al
je 0x402699
cmp al, 0x5c
je 0x402699
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0x3a
jne 0x402699
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], 0x5c
jne 0x402699
push esi
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0x5c
jne 0x402699
push ecx
push esi
push ecx
mov edx, edi
lea ecx, [ebp - 0x324]
call fcn.0040170f
test eax, eax
js 0x403297
mov edx, edi
lea ecx, [ebp - 0x324]
call fcn.004021e7
push ecx
mov esi, eax
mov edx, edi
lea eax, [ebp - 0x324]
push eax
push ecx
lea ecx, [ebp - 0x284]
call fcn.0040170f
test eax, eax
js 0x403297
lea eax, [ebp - 0x284]
add eax, esi
jmp 0x4026e3
cmp byte [eax], 0x5c
je 0x4026ed
push eax
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
lea ecx, [ebp - 0x284]
cmp eax, ecx
ja 0x4026d0
push eax
call dword [sym.imp.USER32.dll_CharNextA]
push 0x20
mov byte [eax], 0
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.msvcrt.dll_strchr]
pop ecx
pop ecx
test eax, eax
je 0x40276f
mov edx, edi
lea ecx, [ebp - 0x284]
call fcn.004021e7
add eax, 3
cmp eax, edi
jae 0x40276f
lea eax, [ebp - 0x284]
push eax
push 0x401198
lea eax, [ebp - 0x564]
push edi
push eax
call fcn.004016aa
add esp, 0x10
test eax, eax
js 0x403297
mov byte [ebp - 0x1e4], 0
mov al, byte [ebx]
cmp al, 0x2d
je 0x402759
cmp al, 0x2f
jne 0x4028b1
movsx eax, byte [ebx + 1]
push eax
call dword [sym.imp.msvcrt.dll_toupper]
pop ecx
cmp eax, 0x4c
jne 0x4027e7
add ebx, 2
jmp 0x402788
push ecx
lea eax, [ebp - 0x284]
mov edx, edi
push eax
push ecx
lea ecx, [ebp - 0x564]
call fcn.0040170f
jmp 0x40273c
inc ebx
cmp byte [ebx], 0x20
je 0x402787
push ecx
push ebx
push ecx
mov edx, edi
lea ecx, [ebp - 0x1e4]
call fcn.0040170f
test eax, eax
js 0x403297
mov al, byte [ebp - 0x1e4]
lea ecx, [ebp - 0x1e4]
jmp 0x4027ba
test al, al
je 0x4027be
inc ecx
mov al, byte [ecx]
cmp al, 0x20
jne 0x4027b3
mov byte [ecx], 0
mov edx, edi
lea ecx, [ebp - 0x1e4]
call fcn.004021e7
add ebx, eax
mov dword [ebp - 0x710], ebx
cmp byte [ebx], 0x20
jne 0x4027e7
inc ebx
cmp byte [ebx], 0x20
je 0x4027db
mov dword [ebp - 0x710], ebx
cmp byte [ebp - 0x1e4], 0
je 0x4028b1
lea eax, [ebp - 0x1e4]
push eax
lea eax, [ebp - 0x284]
push eax
push 0x40115c
lea eax, [ebp - 0x144]
push edi
push eax
call fcn.004016aa
add esp, 0x14
test eax, eax
js 0x403297
push 0
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
je 0x4031cb
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll__llseek]
mov edi, eax
push esi
mov dword [ebp - 0x714], edi
call dword [sym.imp.KERNEL32.dll__lclose]
cmp edi, 0xffff
jg 0x4031c6
test edi, edi
je 0x4031c6
and dword [0x406730], 0
lea eax, [ebp - 0x740]
and dword [0x40671c], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx edi, word [ebp - 0x740]
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edx, eax
movzx esi, dx
shr esi, 8
mov dword [ebp - 0x718], edx
cmp edi, 0xa
jae 0x402917
lfence
mov edi, dword [edi*4 + 0x401008]
jmp 0x40294a
push ecx
lea eax, [ebp - 0x324]
mov edx, edi
push eax
push ecx
lea ecx, [ebp - 0x144]
call fcn.0040170f
test eax, eax
js 0x403297
lea eax, [ebp - 0x144]
add eax, esi
jmp 0x4028ec
cmp byte [eax], 0x2e
je 0x4028f6
push eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
lea ecx, [ebp - 0x144]
cmp eax, ecx
ja 0x4028d9
push eax
call dword [sym.imp.USER32.dll_CharNextA]
push 0x406054
mov edx, edi
lea ecx, [ebp - 0x144]
mov byte [eax], 0
call fcn.00401645
jmp 0x402817
mov edi, 0x4064fc
jmp 0x40294a
cmp byte [edi], dl
jb 0x40292c
jne 0x402947
movzx eax, byte [edi + 1]
cmp eax, esi
ja 0x402947
mov edx, ecx
lea ecx, [ebp - 0x144]
call fcn.0040438d
test eax, eax
jne 0x402bc0
mov edx, dword [ebp - 0x718]
add edi, 0xc
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x40291e
mov esi, dword [0x406730]
test esi, esi
jne 0x402985
mov esi, str.Params
lea ecx, [ebp - 0x144]
mov edx, esi
call fcn.0040438d
test eax, eax
je 0x402bd6
mov dword [0x406730], esi
mov dword [0x40671c], 0x406058
lea eax, [ebp - 0x144]
mov edi, 0x80
push eax
push edi
push 0x406a00
push 0x401150
push 0x4011a0
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4031bb
lea eax, [ebp - 0x144]
push eax
push 0
push 0x4011ac
push dword [0x406730]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
shl eax, 0xa
mov dword [0x406960], eax
test eax, eax
jle 0x4031bb
lea eax, [ebp - 0x144]
push eax
push 1
push 0x4011b8
push dword [0x406730]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x406dc0], eax
test eax, eax
jle 0x4031bb
lea eax, [ebp - 0x144]
push eax
push 1
push 0x4011c4
push dword [0x406730]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x406b00], eax
test eax, eax
jle 0x4031bb
lea eax, [ebp - 0x144]
mov esi, 0x406760
push eax
push edi
push esi
push 0x401150
push 0x4011d0
push dword [0x406730]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4031bb
lea eax, [ebp - 0x144]
push eax
push edi
push 0x406860
push 0x401150
push 0x4011dc
push dword [0x406730]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4031bb
lea eax, [ebp - 0x144]
push eax
push edi
push 0x406a80
push 0x401150
push 0x4011e4
push dword [0x406730]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4031bb
lea eax, [ebp - 0x144]
push eax
push edi
push 0x4068e0
push 0x401150
push 0x4011f0
push dword [0x406730]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4031bb
push 0
push esi
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x4031f6
lea eax, [ebp - 0x144]
mov esi, 0x401150
push eax
push edi
push 0x406cc0
push esi
push 0x4011f8
push dword [0x406730]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x144]
push eax
push edi
push 0x406ba0
push esi
push 0x401204
push dword [0x406730]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x144]
push eax
push edi
push 0x406b20
push esi
push 0x401210
push dword [0x406730]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [0x406d40], 0
je 0x402c03
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 3
jne 0x402c03
call dword [sym.imp.KERNEL32.dll_GetVersion]
shr eax, 8
cmp al, 0xa
jae 0x402c03
cmp dword [0x406728], 0
jne 0x403208
push 0x100
lea eax, [ebp - 0x428]
push eax
push 0
push dword [0x406714]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x402be4
push ecx
push 0x406508
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x428]
call fcn.0040170f
test eax, eax
js 0x403297
jmp 0x402be4
mov esi, dword [edi + 4]
mov eax, dword [edi + 8]
mov dword [0x406730], esi
mov dword [0x40671c], eax
jmp 0x402957
push ecx
push 0
push 0
push 0x10
push 0xa
jmp 0x4031ff
push 0x10
lea eax, [ebp - 0x428]
push eax
push 0x406d40
push dword [0x406718]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403208
call fcn.00402229
mov cl, byte [0x4068e0]
mov eax, 0x4068e0
test cl, cl
je 0x402c41
push 0xd
pop ebx
cmp cl, 0x5c
jne 0x402c2e
lea ecx, [eax + 1]
cmp byte [ecx], 0x6e
jne 0x402c2e
mov byte [eax], bl
mov eax, ecx
mov byte [eax], 0xa
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x402c1a
mov ebx, dword [ebp - 0x710]
mov al, byte [ebx]
cmp al, 0x2d
je 0x402c4f
cmp al, 0x2f
jne 0x402d12
movsx eax, byte [ebx + 1]
push eax
call dword [sym.imp.msvcrt.dll_toupper]
pop ecx
cmp eax, 0x57
jne 0x402d12
add ebx, 2
jmp 0x402c6a
inc ebx
cmp byte [ebx], 0x20
je 0x402c69
push ecx
lea eax, [ebp - 0x284]
mov edx, 0x104
push eax
push ecx
lea ecx, [ebp - 0x428]
call fcn.0040170f
test eax, eax
js 0x403297
mov edx, 0x104
lea ecx, [ebp - 0x428]
call fcn.004021e7
lea ecx, [ebp - 0x428]
add ecx, eax
mov al, byte [ebx]
cmp al, 0x20
je 0x402cd8
mov edx, ecx
lea esi, [ebp - 0x428]
sub edx, esi
test al, al
je 0x402cd3
mov byte [ecx], al
inc ecx
inc edx
cmp edx, 0x104
jae 0x403297
inc ebx
mov al, byte [ebx]
cmp al, 0x20
jne 0x402cb8
mov esi, 0x401150
mov byte [ecx], 0
lea edx, [ebp - 0x284]
push ecx
lea ecx, [ebp - 0x428]
call fcn.0040fcc1
movzx ecx, ax
push 0xd
pop eax
cmp cx, ax
je 0x402d12
cmp ecx, 0x13
je 0x403208
push ecx
push 0
lea eax, [ebp - 0x428]
push eax
push 0x10
jmp 0x403200
lea eax, [ebp - 0x144]
push eax
push edi
mov edi, 0x406980
push edi
push esi
push 0x401220
push dword [0x406730]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x144]
push eax
push 0x80
push 0x4067e0
push esi
push 0x40122c
push dword [0x406730]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [0x406980], 0
mov esi, 0xa0
je 0x402e66
push ecx
lea eax, [ebp - 0x284]
mov edx, esi
push eax
push ecx
lea ecx, [ebp - 0x1e4]
call fcn.0040170f
test eax, eax
js 0x403297
push edi
mov edx, esi
lea ecx, [ebp - 0x1e4]
call fcn.00401645
test eax, eax
js 0x403297
cmp byte [0x4067e0], 0
je 0x402dd8
push 0x401238
mov edx, esi
lea ecx, [ebp - 0x1e4]
call fcn.00401645
test eax, eax
js 0x403297
push 0x4067e0
mov edx, esi
lea ecx, [ebp - 0x1e4]
call fcn.00401645
test eax, eax
js 0x403297
push 0x40123c
mov edx, esi
lea ecx, [ebp - 0x1e4]
call fcn.00401645
test eax, eax
js 0x403297
mov edi, 0x406a80
lea ecx, [ebp - 0x1e4]
push edi
mov edx, esi
call fcn.00401645
test eax, eax
js 0x403297
push 0x401240
mov edx, esi
lea ecx, [ebp - 0x1e4]
call fcn.00401645
test eax, eax
js 0x403297
push 0x4068e0
mov edx, esi
lea ecx, [ebp - 0x1e4]
call fcn.00401645
test eax, eax
js 0x403297
push 1
lea eax, [ebp - 0x1e4]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push edi
push 0x4067e0
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x70c], eax
test eax, eax
jne 0x402e86
mov ecx, dword [ebp - 0x71c]
call fcn.0040fcc1
mov dword [0x406718], eax
test eax, eax
jne 0x402e86
push ecx
push eax
push eax
push 0x10
push 6
jmp 0x4031ff
mov edx, dword [ebp - 0x714]
lea ecx, [ebp - 0x144]
call fcn.0040fcc1
movzx ecx, ax
push 0xd
pop eax
cmp cx, ax
je 0x402eac
push ecx
push 0
push 0
jmp 0x402d0b
push 0x401244
mov edx, esi
lea ecx, [ebp - 0xa4]
call fcn.00401645
test eax, eax
js 0x403297
mov edx, esi
lea ecx, [ebp - 0xa4]
call fcn.004021e7
lea ecx, [ebp - 0xa4]
mov edx, esi
add eax, ecx
push 0x40117c
mov dword [ebp - 0x714], eax
call fcn.00401645
test eax, eax
js 0x403297
push 0x406a00
mov edx, esi
lea ecx, [ebp - 0xa4]
call fcn.00401645
test eax, eax
js 0x403297
lea eax, [ebp - 0xa4]
push eax
push eax
call dword [sym.imp.USER32.dll_CharToOemA]
mov byte [ebp - 0x705], 0x5a
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
movzx ecx, byte [ebp - 0x705]
mov edi, eax
sub ecx, 0x41
call fcn.00402147
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp esi, 2
jne 0x402f96
mov al, byte [ebp - 0x705]
lea edx, [ebp - 0xa4]
mov edi, dword [ebp - 0x714]
lea ecx, [ebp - 0x284]
push edi
mov byte [ebp - 0xa4], al
call fcn.004032a3
push 0xd
movzx eax, ax
pop ecx
cmp ax, cx
je 0x4030a6
push 3
pop ecx
cmp ax, cx
je 0x402ea2
push 0xb
pop ecx
cmp ax, cx
je 0x403208
mov al, byte [ebp - 0x705]
dec al
mov byte [ebp - 0x705], al
cmp al, 0x41
jge 0x402f24
push 0xa0
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, eax
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [ebp - 0xa4]
add eax, esi
push eax
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
mov esi, 0xa0
cmp byte [eax], 0x5c
je 0x403007
push 0x40117c
mov edx, esi
lea ecx, [ebp - 0xa4]
call fcn.00401645
test eax, eax
js 0x403297
push 0x401244
mov edx, esi
lea ecx, [ebp - 0xa4]
call fcn.00401645
test eax, eax
js 0x403297
mov edx, esi
lea ecx, [ebp - 0xa4]
call fcn.004021e7
lea edi, [ebp - 0xa4]
mov edx, esi
push 0x40117c
lea ecx, [ebp - 0xa4]
add edi, eax
call fcn.00401645
test eax, eax
js 0x403297
push 0x406a00
mov edx, esi
lea ecx, [ebp - 0xa4]
call fcn.00401645
test eax, eax
js 0x403297
lea eax, [ebp - 0xa4]
push eax
push eax
call dword [sym.imp.USER32.dll_CharToOemA]
push edi
lea edx, [ebp - 0xa4]
lea ecx, [ebp - 0x284]
call fcn.0040fcc1
movzx ecx, ax
push 0xd
pop eax
cmp cx, ax
je 0x4030a6
push 0xb
pop eax
cmp cx, ax
je 0x403208
jmp 0x402ea2
push dword [0x40672c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x401198
mov esi, 0x406860
mov dword [0x40672c], eax
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x403193
add eax, 4
push 0x401250
push eax
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x403193
lea eax, [ebp - 0x284]
push ebx
push eax
push esi
mov esi, 0x1a0
lea eax, [ebp - 0x4c4]
push esi
push eax
call fcn.004016aa
add esp, 0x14
test eax, eax
js 0x403297
lea eax, [ebp - 0x4c4]
push eax
lea eax, [ebp - 0xa4]
push eax
push 0x401154
lea eax, [ebp - 0x704]
push esi
push eax
call fcn.004016aa
add esp, 0x14
test eax, eax
js 0x403297
push 0x10000
call dword [sym.imp.KERNEL32.dll_GlobalCompact]
cmp dword [0x406724], 0
jne 0x403155
call fcn.004043ba
mov ebx, dword [ebp - 0x70c]
test ebx, ebx
je 0x403172
push 0
push 0x105
push 0x111
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x704]
call fcn.00404270
test eax, eax
jne 0x40319e
push ecx
push eax
push eax
push 0x10
xor edx, edx
push 6
inc edx
pop ecx
call fcn.004022df
jmp 0x4031a8
lea eax, [ebp - 0x564]
jmp 0x4030f1
mov dword [0x406720], 1
test edi, edi
je 0x40320e
mov edx, edi
lea ecx, [ebp - 0xa4]
call fcn.00403352
jmp 0x40320e
push ecx
push 0
push 0
push 0x10
push 5
jmp 0x4031ff
mov edi, 0xa0
push ecx
lea eax, [ebp - 0x144]
mov edx, edi
push eax
push ecx
mov ecx, 0x406c20
call fcn.0040170f
test eax, eax
js 0x403297
push ecx
push 0
push 0
push 0x10
push 3
pop eax
mov ecx, eax
jmp 0x403200
push ecx
push 0
push 0
push 0x10
push 2
pop ecx
xor edx, edx
inc edx
call fcn.004022df
mov ebx, dword [ebp - 0x70c]
call fcn.0040423f
cmp dword [0x406720], 0
mov dword [0x406080], 9
je 0x40322b
call fcn.00404411
mov eax, dword [0x406718]
test eax, eax
je 0x40323b
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
test ebx, ebx
je 0x403281
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403281
xor eax, eax
cmp dword [0x406080], eax
push 0
setne al
add eax, 0x106
push eax
push 0x111
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403281
push 0
push 0
push 0x12
push ebx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 4]
mov eax, dword [0x406080]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00404d30
leave
ret 0x10
call fcn.0040221a
int3