Function at 0x40e306
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x604
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax]
mov dword [ebp - 0x5c4], ecx
mov edx, dword [ebp - 0x5c4]
sub edx, 1
mov dword [ebp - 0x5c4], edx
cmp dword [ebp - 0x5c4], 0xde
ja case.0x40e290.24
mov ecx, dword [ebp - 0x5c4]
xor eax, eax
mov al, byte [ecx + 0x40eb7b]
jmp dword [eax*4 + 0x40eb17]
push 0xf
push 0
lea edx, [ebp - 0x18]
push edx
call sub.MSVCRTD.dll_memset
add esp, 0xc
push str.Ver_1.5
push 0x4225c4
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRTD.dll_sprintf]
add esp, 0xc
push 0
push 1
lea ecx, [ebp - 0x18]
push ecx
call sub.MSVCRTD.dll_strlen
add esp, 4
push eax
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x74]
push ecx
call fcn.004012ad
jmp case.0x40e290.24
mov ecx, dword [ebp - 4]
call fcn.00401140
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov ecx, dword [ebp - 4]
call fcn.00401140
jmp case.0x40e290.24
mov edx, dword [ebp + 8]
add edx, 1
push edx
push 0x4225c4
push 0x423868
call sub.MFC42D.DLL_Ordinal_2168
add esp, 0xc
cmp dword [0x423870], 0
je 0x40e355
push 0
mov eax, dword [0x423870]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
mov edx, dword [0x423870]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [0x423870], 0
push 0
push 0
push 0
push 0
push 8
push 0x4011c2
call sub.MFC42D.DLL_Ordinal_1043
mov dword [0x423870], eax
jmp case.0x40e290.24
cmp dword [0x42386c], 0
je 0x40e3a9
push 0
mov ecx, dword [0x42386c]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
mov eax, dword [0x42386c]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [0x42386c], 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x78]
push eax
push 0x401195
call sub.MFC42D.DLL_Ordinal_1043
mov dword [0x42386c], eax
jmp case.0x40e290.24
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 1]
mov dword [ecx + 0x80], eax
jmp case.0x40e290.24
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x1c], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x20], eax
push 0xf
push 0
lea ecx, [ebp - 0x30]
push ecx
call sub.MSVCRTD.dll_memset
add esp, 0xc
push 4
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x30]
push eax
call sub.MSVCRTD.dll_memcpy
add esp, 0xc
push 4
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x2c]
push edx
call sub.MSVCRTD.dll_memcpy
add esp, 0xc
push 0
push 0
push 8
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x74]
push edx
call fcn.004012ad
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 1]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 5]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.0040132a
push 0
push 3
push 0
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x74]
push ecx
call fcn.004012ad
jmp case.0x40e290.24
mov edx, dword [ebp + 8]
mov eax, dword [edx + 1]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 5]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 9]
mov dword [ebp - 0x44], ecx
xor edx, edx
cmp dword [ebp - 0x44], 0
setne dl
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call fcn.0040114f
push 0
push 3
push 0
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x74]
push ecx
call fcn.004012ad
jmp case.0x40e290.24
mov edx, dword [ebp + 8]
mov eax, dword [edx + 1]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 5]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 9]
mov dword [ebp - 0x50], ecx
xor edx, edx
cmp dword [ebp - 0x50], 0
setne dl
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004010eb
push 0
push 3
push 0
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x74]
push ecx
call fcn.004012ad
jmp case.0x40e290.24
mov edx, dword [ebp + 8]
mov eax, dword [edx + 1]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 5]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 9]
mov dword [ebp - 0x5c], ecx
xor edx, edx
cmp dword [ebp - 0x5c], 0
setne dl
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x58]
push edx
call fcn.00401118
push 0
push 3
push 0
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x74]
push ecx
call fcn.004012ad
jmp case.0x40e290.24
mov edx, dword [ebp + 8]
mov eax, dword [edx + 1]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 5]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 9]
mov dword [ebp - 0x68], ecx
xor edx, edx
cmp dword [ebp - 0x68], 0
setne dl
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x64]
push edx
call fcn.00401226
push 0
push 3
push 0
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x74]
push ecx
call fcn.004012ad
jmp case.0x40e290.24
mov edx, dword [ebp + 8]
mov eax, dword [edx + 1]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 5]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 9]
mov dword [ebp - 0x74], ecx
xor edx, edx
cmp dword [ebp - 0x74], 0
setne dl
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x70]
push edx
call fcn.004012f3
push 0
push 3
push 0
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x74]
push ecx
call fcn.004012ad
jmp case.0x40e290.24
mov edx, dword [ebp + 8]
mov eax, dword [edx + 1]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 5]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 9]
mov dword [ebp - 0x80], ecx
xor edx, edx
cmp dword [ebp - 0x80], 0
setne dl
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
call fcn.004010ff
push 0
push 3
push 0
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x74]
push ecx
call fcn.004012ad
jmp case.0x40e290.24
mov edx, dword [ebp + 8]
mov eax, dword [edx + 1]
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 5]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.00401316
push 0
push 3
push 0
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x74]
push eax
call fcn.004012ad
jmp case.0x40e290.24
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 1]
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 5]
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x90]
push edx
mov eax, dword [ebp - 0x8c]
push eax
call fcn.004010a0
push 0
push 3
push 0
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x74]
push edx
call fcn.004012ad
jmp case.0x40e290.24
mov eax, dword [ebp + 8]
add eax, 1
push eax
push 0x4225c4
push 0x423868
call sub.MFC42D.DLL_Ordinal_2168
add esp, 0xc
cmp dword [0x423870], 0
je 0x40e735
push 0
mov ecx, dword [0x423870]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
mov eax, dword [0x423870]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [0x423870], 0
push 0
push 0
push 0
push 0
push 0x81
push 0x4011c2
call sub.MFC42D.DLL_Ordinal_1043
mov dword [0x423870], eax
jmp case.0x40e290.24
mov edx, dword [ebp + 8]
mov eax, dword [edx + 1]
mov dword [ebp - 0x94], eax
xor ecx, ecx
cmp dword [ebp - 0x94], 0
setne cl
push ecx
call fcn.00401050
jmp case.0x40e290.24
mov edx, dword [ebp + 8]
mov eax, dword [edx + 1]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.004011b8
jmp case.0x40e290.24
call fcn.004012b7
jmp case.0x40e290.24
push 0xff
push 0
lea edx, [ebp - 0x198]
push edx
call sub.MSVCRTD.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, 1
push eax
push 0x4225c4
lea ecx, [ebp - 0x198]
push ecx
call dword [sym.imp.MSVCRTD.dll_sprintf]
add esp, 0xc
push 0xa
push 0
lea edx, [ebp - 0x1a4]
push edx
call sub.MSVCRTD.dll_memset
add esp, 0xc
push 0
push 0
push 0xa
lea eax, [ebp - 0x1a4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x74]
push edx
call fcn.0040122b
mov dword [ebp - 0x1a8], eax
cmp dword [ebp - 0x1a8], 0
jle 0x40e8a2
push 0
push 3
push 0
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x74]
push ecx
call fcn.004012ad
mov dword [ebp - 0x1a8], eax
mov edx, dword [ebp - 0x1a4]
mov dword [0x423878], edx
lea eax, [ebp - 0x198]
push eax
push 0x4225c4
push 0x423868
call sub.MFC42D.DLL_Ordinal_2168
add esp, 0xc
cmp dword [0x423870], 0
je 0x40e886
push 0
mov ecx, dword [0x423870]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
mov eax, dword [0x423870]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [0x423870], 0
push 0
push 0
push 0
push 0
push 0x85
push 0x4011c2
call sub.MFC42D.DLL_Ordinal_1043
mov dword [0x423870], eax
jmp case.0x40e290.24
push 0xff
push 0
lea edx, [ebp - 0x2a8]
push edx
call sub.MSVCRTD.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, 1
push eax
push 0x4225c4
lea ecx, [ebp - 0x2a8]
push ecx
call dword [sym.imp.MSVCRTD.dll_sprintf]
add esp, 0xc
push 0xa
push 0
lea edx, [ebp - 0x2b4]
push edx
call sub.MSVCRTD.dll_memset
add esp, 0xc
push 0
push 0
push 0xa
lea eax, [ebp - 0x2b4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x74]
push edx
call fcn.0040122b
mov dword [ebp - 0x2b8], eax
cmp dword [ebp - 0x2b8], 0
jle 0x40e9a9
push 0
push 3
push 0
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x74]
push ecx
call fcn.004012ad
mov dword [ebp - 0x2b8], eax
mov edx, dword [ebp - 0x2b4]
mov dword [0x423878], edx
lea eax, [ebp - 0x2a8]
push eax
push 0x4225c4
push 0x423868
call sub.MFC42D.DLL_Ordinal_2168
add esp, 0xc
cmp dword [0x423870], 0
je 0x40e98d
push 0
mov ecx, dword [0x423870]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
mov eax, dword [0x423870]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [0x423870], 0
push 0
push 0
push 0
push 0
push 0x86
push 0x4011c2
call sub.MFC42D.DLL_Ordinal_1043
mov dword [0x423870], eax
jmp case.0x40e290.24
push 0xff
push 0
lea edx, [ebp - 0x3b8]
push edx
call sub.MSVCRTD.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, 1
push eax
push 0x4225c4
lea ecx, [ebp - 0x3b8]
push ecx
call dword [sym.imp.MSVCRTD.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x3b8]
push edx
call fcn.00401181
mov dword [ebp - 0x3bc], eax
push 0xff
push 0
lea eax, [ebp - 0x3b8]
push eax
call sub.MSVCRTD.dll_memset
add esp, 0xc
push 4
lea ecx, [ebp - 0x3bc]
push ecx
lea edx, [ebp - 0x3b8]
push edx
call sub.MSVCRTD.dll_memcpy
add esp, 0xc
push 0
push 4
push 4
lea eax, [ebp - 0x3b8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x74]
push edx
call fcn.004012ad
jmp case.0x40e290.24
push 0xff
push 0
lea eax, [ebp - 0x4bc]
push eax
call sub.MSVCRTD.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
push 0x4225c4
lea edx, [ebp - 0x4bc]
push edx
call dword [sym.imp.MSVCRTD.dll_sprintf]
add esp, 0xc
push 0xff
push 0
lea eax, [ebp - 0x5bc]
push eax
call sub.MSVCRTD.dll_memset
add esp, 0xc
push 0
push 0
push 0xff
lea ecx, [ebp - 0x5bc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x74]
push eax
call fcn.0040122b
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle case.0x40e290.24
lea ecx, [ebp - 0x5bc]
push ecx
lea edx, [ebp - 0x4bc]
push edx
call fcn.004012c6
mov dword [ebp - 0x5c0], eax
push 0xff
push 0
lea eax, [ebp - 0x4bc]
push eax
call sub.MSVCRTD.dll_memset
add esp, 0xc
push 4
lea ecx, [ebp - 0x5c0]
push ecx
lea edx, [ebp - 0x4bc]
push edx
call sub.MSVCRTD.dll_memcpy
add esp, 0xc
push 0
push 4
push 4
lea eax, [ebp - 0x4bc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x74]
push edx
call fcn.004012ad
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8