Function at 0x407244
Capabilities:
Accept command line arguments
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x489c60
mov eax, dword fs:[0]
push eax
sub esp, 0x3d0
mov eax, dword [0x4aeda0]
xor eax, esp
mov dword [esp + 0x3c8], eax
push ebx
push esi
push edi
mov eax, dword [0x4aeda0]
xor eax, esp
push eax
lea eax, [esp + 0x3e0]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
and dword [esp + 0x14], 0
mov edi, 0x49b454
push edi
mov dword [esp + 0x24], eax
call fcn.00450ee8
pop ecx
mov esi, str._____________________________________________________n
push esi
call fcn.00450ee8
mov dword [esp], 0x4ad
push 0x3e
push str.__________Anti_Threat_Toolkit_1.2._d._d____________n
call fcn.00450ee8
add esp, 0xc
push esi
call fcn.00450ee8
mov dword [esp], str.________Copyright__c__2017__Trend_Micro_Inc._________n
call fcn.00450ee8
pop ecx
push edi
call fcn.00450ee8
mov dword [esp], pe_nt_image_headers32
call fcn.0045077b
mov ebx, eax
pop ecx
mov dword [esp + 0x1c], ebx
xor eax, eax
mov dword [esp + 0x3e8], eax
cmp ebx, eax
je 0x40733b
push eax
mov edi, 0x4b31e4
lea esi, [esp + 0x30]
call fcn.004265b0
pop ecx
mov byte [esp + 0x3e8], 1
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x14], 1
jb 0x407321
mov eax, dword [eax + 4]
jmp 0x407324
add eax, 4
mov edi, eax
push 0x800000
or eax, 0xffffffff
mov esi, ebx
call fcn.0041ee60
mov dword [esp + 0x18], ebx
jmp 0x40733f
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x3e8], 4
test byte [esp + 0x14], 1
je 0x407366
push 0
push 1
lea ecx, [esp + 0x34]
call fcn.0040230d
push str.Support_tool_started...
push 0x5c8
call fcn.0041ef10
mov esi, str..SupportWrapper.cpp
push eax
mov ebx, 0x800040
mov ecx, esi
call fcn.0041f0d0
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
add esp, 0xc
call fcn.00406d1e
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [esp + 0xd8]
push eax
call fcn.0042ac60
mov byte [esp + 0x3e8], 5
and dword [esp + 0x1c], 0
push str.hcapp_noselfsigchk
lea ecx, [esp + 0xbc]
call fcn.00401efd
lea ecx, [esp + 0xb8]
lea edi, [esp + 0x10]
mov byte [esp + 0x3e8], 6
call fcn.0042ebd0
push 0
push 1
lea ecx, [esp + 0xc0]
call fcn.0040230d
and dword [esp + 0xb0], 0
push 7
pop edi
xor eax, eax
mov dword [esp + 0xb4], edi
mov word [esp + 0xa0], ax
lea eax, [esp + 0x9c]
push eax
mov edx, 0x49caa0
lea ecx, [esp + 0xd8]
mov byte [esp + 0x3ec], 9
call fcn.0042bae0
test al, al
je 0x407480
lea eax, [esp + 0x10]
call fcn.0042ede0
test eax, eax
jne 0x40745c
push str.Failed_to_disable_self_sigcheck
push 0x5d5
call fcn.0041ef10
push eax
add ebx, 0xffffffc4
mov ecx, esi
call fcn.0041f0d0
add esp, 0xc
jmp 0x407491
push str.Self_sigcheck_disabled.
push 0x5d9
call fcn.0041ef10
push eax
mov ecx, esi
call fcn.0041f0d0
add esp, 0xc
mov dword [esp + 0x1c], 1
jmp 0x407491
cmp dword [esp + 0x10], 0
je 0x407491
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
and dword [esp + 0x94], 0
xor eax, eax
mov dword [esp + 0x98], edi
mov word [esp + 0x84], ax
lea eax, [esp + 0x80]
push eax
mov edx, str.CFGIP
lea ecx, [esp + 0xd8]
mov byte [esp + 0x3ec], 0xa
call fcn.0042bae0
test al, al
je 0x4075a1
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x30], esp
push 0x49b990
call fcn.004017d2
sub esp, 0x1c
mov byte [esp + 0x420], 0xb
lea eax, [esp + 0xb8]
mov esi, esp
mov dword [esp + 0x5c], esp
push eax
call fcn.004017f2
mov byte [esp + 0x420], 0xa
call fcn.00406e1a
add esp, 0x38
test eax, eax
jne 0x40753a
push str.Config.ini_download_failed
push 0x5e7
call fcn.0041ef10
push eax
mov ebx, 0x800040
mov ecx, str..SupportWrapper.cpp
call fcn.0041f0d0
add esp, 0xc
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x40], esp
push 0x49b664
call fcn.004017d2
sub esp, 0x1c
mov byte [esp + 0x420], 0xc
lea eax, [esp + 0xb8]
mov esi, esp
mov dword [esp + 0x4c], esp
push eax
call fcn.004017f2
mov byte [esp + 0x420], 0xa
call fcn.00406e1a
add esp, 0x38
test eax, eax
jne 0x4075a1
push str.pattern.zip_download_failed
push 0x5eb
call fcn.0041ef10
push eax
mov ebx, 0x800040
mov ecx, str..SupportWrapper.cpp
call fcn.0041f0d0
add esp, 0xc
lea eax, [esp + 0x14c]
push eax
call fcn.00402c6b
and dword [esp + 0x78], 0
xor eax, eax
mov dword [esp + 0x7c], edi
mov word [esp + 0x68], ax
lea eax, [esp + 0x64]
push eax
mov edx, str.FINGERPRINT
lea ecx, [esp + 0xd8]
mov byte [esp + 0x3ec], 0xe
call fcn.0042bae0
test al, al
je 0x4076c0
cmp dword [esp + 0x7c], 8
mov eax, dword [esp + 0x68]
jae 0x4075f3
lea eax, [esp + 0x68]
push 0x49cb24
push eax
call fcn.00452b2d
pop ecx
pop ecx
test eax, eax
jne 0x4076c0
xor ebx, ebx
inc ebx
push ebx
lea eax, [esp + 0x150]
push eax
mov ecx, 0x4b32e0
call fcn.00405baf
push 0
push ebx
lea esi, [esp + 0x6c]
call fcn.004019bb
lea edi, [esp + 0x14c]
mov byte [esp + 0x3e8], 0xa
call fcn.00402dcd
xor edi, edi
push edi
push ebx
lea esi, [esp + 0x88]
call fcn.004019bb
push edi
push ebx
lea esi, [esp + 0xa4]
call fcn.004019bb
cmp dword [esp + 0x10], edi
je 0x407676
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xd4]
mov byte [esp + 0x3e8], 4
call fcn.0042ad40
cmp dword [esp + 0x18], edi
je 0x4076b9
mov eax, dword [0x4b31a0]
mov ecx, dword [0x4b31a4]
mov edx, eax
or edx, ecx
mov dword [0x4b31b0], edi
je 0x4076af
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
push dword [esp + 0x18]
call fcn.0045061f
pop ecx
xor eax, eax
jmp 0x407cac
mov edx, 0x49cb28
lea ecx, [esp + 0xd4]
call fcn.0042ba10
test al, al
jne 0x407c04
mov edx, 0x49cb2c
lea ecx, [esp + 0xd4]
call fcn.0042ba10
test al, al
jne 0x407c04
mov edx, 0x49cb38
lea ecx, [esp + 0xd4]
call fcn.0042ba10
test al, al
jne 0x407c04
mov edx, 0x49b690
lea ecx, [esp + 0xd4]
call fcn.0042ba10
test al, al
je 0x40786c
mov eax, dword [esp + 0x20]
push dword [eax]
lea eax, [esp + 0x4c]
call fcn.004017d2
mov ebx, 0x49b660
push ebx
mov byte [esp + 0x3ec], 0xf
call fcn.00450a1d
pop ecx
test eax, eax
jbe 0x4077b6
mov ecx, dword [esp + 0x5c]
test ecx, ecx
jbe 0x4077b6
or edx, 0xffffffff
cmp ecx, edx
ja 0x40775d
lea edx, [ecx - 1]
cmp dword [esp + 0x60], 8
mov ecx, dword [esp + 0x4c]
jae 0x40776c
lea ecx, [esp + 0x4c]
lea ecx, [ecx + edx*2]
movzx edx, word [ecx]
mov edi, eax
mov esi, ebx
cmp word [esi], dx
je 0x407782
inc esi
inc esi
dec edi
jne 0x407776
xor esi, esi
test esi, esi
jne 0x40779d
cmp dword [esp + 0x60], 8
mov edx, dword [esp + 0x4c]
jae 0x407795
lea edx, [esp + 0x4c]
cmp ecx, edx
je 0x4077b6
dec ecx
dec ecx
jmp 0x40776f
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x4c]
jae 0x4077ac
lea eax, [esp + 0x4c]
sub ecx, eax
sar ecx, 1
mov dword [esp + 0x14], ecx
jmp 0x4077bb
or dword [esp + 0x14], 0xffffffff
cmp dword [esp + 0x14], 0xffffffff
je 0x407857
push 0
lea edi, [esp + 0x4c]
lea esi, [esp + 0xbc]
call fcn.004265b0
pop ecx
mov byte [esp + 0x3e8], 0x10
cmp dword [esp + 0xd0], 0x10
mov eax, dword [esp + 0xbc]
jae 0x4077f9
lea eax, [esp + 0xbc]
push eax
push str.SetCurrentDirectory_to__s
push 0x60c
push ecx
call fcn.0041ef10
pop ecx
push eax
mov ebx, 0x800040
mov ecx, str..SupportWrapper.cpp
call fcn.0041f0d0
mov edi, dword [esp + 0x24]
add esp, 0x10
inc edi
lea eax, [esp + 0x48]
call fcn.00407ea7
xor ecx, ecx
mov word [eax], cx
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x4c]
jae 0x407840
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push 1
lea ecx, [esp + 0xc0]
call fcn.0040230d
push 0
push 1
lea esi, [esp + 0x50]
mov byte [esp + 0x3f0], 0xe
call fcn.004019bb
push str.Starting...
mov ebx, 0x4b2360
push ebx
call fcn.0040b490
pop ecx
pop ecx
mov esi, eax
call fcn.00407d0f
mov esi, eax
call fcn.00407d0f
lea eax, [esp + 0x14c]
push eax
lea ecx, [esp + 0xd8]
call fcn.00402e4a
test eax, eax
jne 0x40798c
push str.Initialization_failed.
push ebx
call fcn.0040b490
pop ecx
pop ecx
mov esi, eax
call fcn.00407d0f
mov esi, eax
call fcn.00407d0f
push str.Wrapper_initialize_failed
push 0x618
call fcn.0041ef10
push eax
mov ebx, 0x800040
mov ecx, str..SupportWrapper.cpp
call fcn.0041f0d0
add esp, 0xc
xor ebx, ebx
push ebx
push 1
lea esi, [esp + 0x6c]
call fcn.004019bb
lea edi, [esp + 0x14c]
mov byte [esp + 0x3e8], 0xa
call fcn.00402dcd
push ebx
push 1
lea esi, [esp + 0x88]
call fcn.004019bb
push ebx
push 1
lea esi, [esp + 0xa4]
call fcn.004019bb
cmp dword [esp + 0x10], ebx
je 0x40793f
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xd4]
mov byte [esp + 0x3e8], 4
call fcn.0042ad40
cmp dword [esp + 0x18], ebx
je 0x407982
mov eax, dword [0x4b31a0]
mov ecx, dword [0x4b31a4]
mov edx, eax
or edx, ecx
mov dword [0x4b31b0], ebx
je 0x407978
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
push dword [esp + 0x18]
call fcn.0045061f
pop ecx
mov eax, 0x80010000
jmp 0x407cac
lea ecx, [esp + 0x14c]
call fcn.00406382
test eax, eax
jne 0x407a7d
push 0x40
push str.Trend_Micro
push str.Your_program_has_no_proper_Activation_Code_specified._Please_check_your_CONFIG.INI.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push str.No_proper_Activation_Code_specified:_program_stopped
push 0x623
call fcn.0041ef10
push eax
mov ebx, 0x800040
mov ecx, str..SupportWrapper.cpp
call fcn.0041f0d0
add esp, 0xc
push 0
push 1
lea esi, [esp + 0x6c]
call fcn.004019bb
lea edi, [esp + 0x14c]
mov byte [esp + 0x3e8], 0xa
call fcn.00402dcd
xor edi, edi
push edi
push 1
lea esi, [esp + 0x88]
call fcn.004019bb
push edi
push 1
lea esi, [esp + 0xa4]
call fcn.004019bb
cmp dword [esp + 0x10], edi
je 0x407a30
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xd4]
mov byte [esp + 0x3e8], 4
call fcn.0042ad40
cmp dword [esp + 0x18], edi
je 0x407a73
mov eax, dword [0x4b31a0]
mov ecx, dword [0x4b31a4]
mov edx, eax
or edx, ecx
mov dword [0x4b31b0], edi
je 0x407a69
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
push dword [esp + 0x18]
call fcn.0045061f
pop ecx
mov eax, 0x80060000
jmp 0x407cac
lea eax, [esp + 0xd4]
xor edi, edi
push eax
lea ecx, [esp + 0x150]
mov dword [esp + 0x18], edi
call fcn.00404b76
mov edx, eax
lea eax, [esp + 0x14]
call fcn.00402552
lea ecx, [esp + 0x14c]
call fcn.0040403a
mov edx, eax
lea eax, [esp + 0x14]
call fcn.00402552
cmp dword [esp + 0x180], edi
je 0x407ac7
call fcn.00406072
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x14c]
call fcn.00404f93
mov edx, str.DIRECTCLOSE
lea ecx, [esp + 0xd4]
call fcn.0042ba10
test al, al
jne 0x407b12
push str.The_console_will_be_automatically_closed_in_15_seconds...
push ebx
call fcn.0040b490
pop ecx
pop ecx
mov esi, eax
call fcn.00407d0f
mov esi, eax
call fcn.00407d0f
push 0x3a98
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x1c], edi
je 0x407b28
cmp dword [esp + 0x10], edi
je 0x407b28
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esp + 0x14]
push str.Finished_with_exit_code___d
push 0x63c
push ecx
call fcn.0041ef10
pop ecx
push eax
mov ebx, 0x800040
mov ecx, str..SupportWrapper.cpp
call fcn.0041f0d0
add esp, 0x10
cmp dword [esp + 0x3cc], edi
je 0x407b5e
call fcn.00407117
push edi
push 1
lea esi, [esp + 0x6c]
call fcn.004019bb
lea edi, [esp + 0x14c]
mov byte [esp + 0x3e8], 0xa
call fcn.00402dcd
xor edi, edi
push edi
push 1
lea esi, [esp + 0x88]
call fcn.004019bb
push edi
push 1
lea esi, [esp + 0xa4]
call fcn.004019bb
cmp dword [esp + 0x10], edi
je 0x407bb8
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xd4]
mov byte [esp + 0x3e8], 4
call fcn.0042ad40
cmp dword [esp + 0x18], edi
je 0x407bfb
mov eax, dword [0x4b31a0]
mov ecx, dword [0x4b31a4]
mov edx, eax
or edx, ecx
mov dword [0x4b31b0], edi
je 0x407bf1
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
push dword [esp + 0x18]
call fcn.0045061f
pop ecx
mov eax, dword [esp + 0x14]
jmp 0x407cac
call fcn.00406c76
push 0
push 1
lea esi, [esp + 0x6c]
call fcn.004019bb
lea edi, [esp + 0x14c]
mov byte [esp + 0x3e8], 0xa
call fcn.00402dcd
xor edi, edi
push edi
push 1
lea esi, [esp + 0x88]
call fcn.004019bb
push edi
push 1
lea esi, [esp + 0xa4]
call fcn.004019bb
cmp dword [esp + 0x10], edi
je 0x407c64
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xd4]
mov byte [esp + 0x3e8], 4
call fcn.0042ad40
cmp dword [esp + 0x18], edi
je 0x407ca7
mov eax, dword [0x4b31a0]
mov ecx, dword [0x4b31a4]
mov edx, eax
or edx, ecx
mov dword [0x4b31b0], edi
je 0x407c9d
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
push dword [esp + 0x18]
call fcn.0045061f
pop ecx
mov eax, accept
mov ecx, dword [esp + 0x3e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c8]
xor ecx, esp
call fcn.004504a7
mov esp, ebp
pop ebp
ret