Function at 0x4022b0
Capabilities:
Accept command line arguments
Create process on windows
Download url
Hide graphical window
Receive data
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407292
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x40b014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x402318
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0
push esi
call dword [sym.imp.mfc140u.dll_AfxWinInit]
test eax, eax
jne 0x402325
push 0x4084c8
jmp 0x40231d
push 0x4084e8
call fcn.00405a80
add esp, 4
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 0xf
mov byte [ebp - 0x180], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x188], 0
mov dword [ebp - 0x184], 0xf
mov byte [ebp - 0x198], 0
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x1f0], 0xf
mov byte [ebp - 0x204], 0
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1b4], 0xf
mov byte [ebp - 0x1c8], 0
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x19c], 0xf
mov byte [ebp - 0x1b0], 0
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x1cc], 0xf
mov byte [ebp - 0x1e0], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x208], 0xf
mov byte [ebp - 0x21c], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], 0
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 7
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__getcwd]
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x168], 0
add esp, 8
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x154], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x168], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4024a0
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x168]
call fcn.00405ab0
push ecx
push 0x408518
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 8
call fcn.00403fb0
cmp eax, 0xffffffff
je 0x40253b
nop word [eax + eax]
push ecx
push 0x408518
lea ecx, [ebp - 0x168]
call fcn.00403fb0
push 1
sub esp, 8
lea ecx, [ebp - 0x168]
push eax
call fcn.00404570
lea ecx, [ebp - 0x168]
cmp ecx, eax
je 0x402525
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x402516
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x168]
call fcn.00405ab0
push ecx
push 0x408518
lea ecx, [ebp - 0x168]
call fcn.00403fb0
cmp eax, 0xffffffff
jne 0x4024e0
push 0x408520
lea edx, [ebp - 0x168]
lea ecx, [ebp - 0x264]
call fcn.00404a50
sub esp, 0x14
mov byte [ebp - 4], 9
lea eax, [ebp - 0x264]
mov dword [ebp - 0x1e4], 0
xorps xmm0, xmm0
mov ecx, esp
movq qword [ebp - 0x1ec], xmm0
push eax
call fcn.00405bf0
lea ecx, [ebp - 0x1ec]
call fcn.00401180
add esp, 0x18
push dword [ebp - 0x268]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x168]
cmp dword [ebp - 0x154], 0x10
mov esi, dword [ebp - 0x158]
mov edx, esi
cmovae ecx, dword [ebp - 0x168]
push 1
sub esp, 8
call fcn.00404e80
add esp, 0x10
mov dword [ebp - 0x24c], 0
cmp esi, eax
mov dword [ebp - 0x23c], 0
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x238], 0xf
cmovb eax, esi
mov byte [ebp - 0x24c], 0
cmp dword [ebp - 0x154], 0x10
push eax
cmovae ecx, dword [ebp - 0x168]
push ecx
lea ecx, [ebp - 0x24c]
call fcn.00405ab0
push str._download_update.txt
lea edx, [ebp - 0x24c]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x138]
call fcn.00404a50
add esp, 4
lea ecx, [ebp - 0x180]
push eax
call fcn.00405a00
mov edx, dword [ebp - 0x124]
cmp edx, 0x10
jb 0x40266c
mov ecx, dword [ebp - 0x138]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402662
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402662
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00406406
add esp, 8
mov esi, dword [ebp - 0x1ec]
push ecx
push 0x408544
mov ecx, esi
call fcn.00403fb0
mov ecx, dword [esi + 0x10]
inc eax
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0xf
cmp ecx, eax
jb 0x403410
sub ecx, eax
or edi, 0xffffffff
cmp ecx, edi
mov edx, edi
cmovb edx, ecx
cmp dword [esi + 0x14], 0x10
jb 0x4026bd
mov esi, dword [esi]
push edx
add eax, esi
lea ecx, [ebp - 0x138]
push eax
call fcn.00405ab0
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x198]
call fcn.00405a00
mov edx, dword [ebp - 0x124]
cmp edx, 0x10
jb 0x402718
mov ecx, dword [ebp - 0x138]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40270e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402877
push edx
push ecx
call fcn.00406406
add esp, 8
push str._WebSimAssistant.exe
lea edx, [ebp - 0x168]
lea ecx, [ebp - 0x138]
call fcn.00404a50
add esp, 4
lea ecx, [ebp - 0x204]
push eax
call fcn.00405a00
mov edx, dword [ebp - 0x124]
cmp edx, 0x10
jb 0x402779
mov ecx, dword [ebp - 0x138]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40276f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40276f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00406406
add esp, 8
push str._download_MSP.exe
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x138]
call fcn.00404a50
add esp, 4
lea ecx, [ebp - 0x1c8]
push eax
call fcn.00405a00
mov edx, dword [ebp - 0x124]
cmp edx, 0x10
jb 0x4027da
mov ecx, dword [ebp - 0x138]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4027d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4027d0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00406406
add esp, 8
mov esi, dword [ebp - 0x1ec]
push ecx
add esi, 0x18
push 0x408544
mov ecx, esi
call fcn.00403fb0
mov ecx, dword [esi + 0x10]
inc eax
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0xf
cmp ecx, eax
jb 0x403410
sub ecx, eax
cmp ecx, 0xffffffff
cmovb edi, ecx
cmp dword [esi + 0x14], 0x10
jb 0x40282a
mov esi, dword [esi]
push edi
add eax, esi
lea ecx, [ebp - 0x138]
push eax
call fcn.00405ab0
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x1b0]
call fcn.00405a00
mov edx, dword [ebp - 0x124]
cmp edx, 0x10
jb 0x402887
mov ecx, dword [ebp - 0x138]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40287d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40287d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00406406
add esp, 8
push str._download
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x138]
call fcn.00404a50
add esp, 4
lea ecx, [ebp - 0x1e0]
push eax
call fcn.00405a00
mov edx, dword [ebp - 0x124]
cmp edx, 0x10
jb 0x4028e8
mov ecx, dword [ebp - 0x138]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4028de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4028de
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00406406
add esp, 8
push 0x13
push str.WebSimAssistant.exe
lea ecx, [ebp - 0x21c]
call fcn.00405ab0
push 0xd
push str.updateMsp.exe
lea ecx, [ebp - 0x234]
call fcn.00405ab0
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x4085a4
call fcn.004047e0
cmp dword [ebp - 0x16c], 0x10
lea edx, [ebp - 0x180]
push 0x404a20
push dword [ebp - 0x170]
cmovae edx, dword [ebp - 0x180]
mov ecx, eax
call fcn.00405610
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x4085b0
call fcn.004047e0
cmp dword [ebp - 0x184], 0x10
lea edx, [ebp - 0x198]
push 0x404a20
push dword [ebp - 0x188]
cmovae edx, dword [ebp - 0x198]
mov ecx, eax
call fcn.00405610
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x4085bc
call fcn.004047e0
cmp dword [ebp - 0x1f0], 0x10
lea edx, [ebp - 0x204]
push 0x404a20
push dword [ebp - 0x1f4]
cmovae edx, dword [ebp - 0x204]
mov ecx, eax
call fcn.00405610
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x4085c8
call fcn.004047e0
cmp dword [ebp - 0x1b4], 0x10
lea edx, [ebp - 0x1c8]
push 0x404a20
push dword [ebp - 0x1b8]
cmovae edx, dword [ebp - 0x1c8]
mov ecx, eax
call fcn.00405610
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x4085d4
call fcn.004047e0
cmp dword [ebp - 0x19c], 0x10
lea edx, [ebp - 0x1b0]
push 0x404a20
push dword [ebp - 0x1a0]
cmovae edx, dword [ebp - 0x1b0]
mov ecx, eax
call fcn.00405610
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x4085e0
call fcn.004047e0
cmp dword [ebp - 0x1cc], 0x10
lea edx, [ebp - 0x1e0]
push 0x404a20
cmovae edx, dword [ebp - 0x1e0]
push dword [ebp - 0x1d0]
mov ecx, eax
call fcn.00405610
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x4085ec
call fcn.004047e0
cmp dword [ebp - 0x208], 0x10
lea edx, [ebp - 0x21c]
push 0x404a20
push dword [ebp - 0x20c]
cmovae edx, dword [ebp - 0x21c]
mov ecx, eax
call fcn.00405610
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x4085f8
call fcn.004047e0
cmp dword [ebp - 0x220], 0x10
lea edx, [ebp - 0x234]
push 0x404a20
push dword [ebp - 0x224]
cmovae edx, dword [ebp - 0x234]
mov ecx, eax
call fcn.00405610
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x408604
push 0x404a20
call fcn.004047e0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp dword [ebp - 0x1cc], 0x10
lea eax, [ebp - 0x1e0]
push 0
cmovae eax, dword [ebp - 0x1e0]
push eax
call edi
add esp, 8
test eax, eax
je 0x402bb9
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x408608
push 0x404a20
call fcn.004047e0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
sub esp, 0x18
lea eax, [ebp - 0x1e0]
mov ecx, esp
push eax
call fcn.00405bf0
call fcn.00401610
add esp, 0x18
test al, al
jne 0x402bb9
push 0x404a20
mov edx, 0x40860c
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.004047e0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x402b20
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x40861c
push 0x404a20
call fcn.004047e0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0xbb8
call ebx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x408628
push 0x404a20
call fcn.004047e0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp dword [ebp - 0x184], 0x10
lea eax, [ebp - 0x198]
lea ecx, [ebp - 0x26c]
cmovae eax, dword [ebp - 0x198]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
push dword [eax]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
lea ecx, [ebp - 0x26c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0xbb8
call ebx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x408634
push 0x404a20
call fcn.004047e0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp dword [ebp - 0x16c], 0x10
lea eax, [ebp - 0x180]
lea ecx, [ebp - 0x274]
cmovae eax, dword [ebp - 0x180]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
mov esi, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x198]
cmp dword [ebp - 0x184], 0x10
cmovae ecx, dword [ebp - 0x198]
push ecx
lea ecx, [ebp - 0x270]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
push 0
push 0
push dword [esi]
push dword [eax]
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
lea ecx, [ebp - 0x270]
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0xb
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0x404a20
test esi, esi
je 0x402cdc
mov edx, 0x408640
jmp 0x402ba1
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x40864c
call fcn.004047e0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp dword [ebp - 0x16c], 0x10
lea eax, [ebp - 0x180]
push 0
cmovae eax, dword [ebp - 0x180]
push eax
call edi
add esp, 8
test eax, eax
jne 0x402b20
sub esp, 0x18
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x180]
xorps xmm0, xmm0
mov ecx, esp
movq qword [ebp - 0x120], xmm0
push eax
call fcn.00405bf0
lea ecx, [ebp - 0x120]
call fcn.00401180
add esp, 0x18
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x138]
push dword [ebp - 0x120]
call fcn.00405bf0
sub esp, 0x18
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x204]
mov ecx, esp
push eax
call fcn.00405bf0
lea ecx, [ebp - 0x150]
call fcn.004019d0
add esp, 0x18
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x138]
cmp dword [ebp - 0x124], 0x10
lea eax, [ebp - 0x150]
mov edi, dword [ebp - 0x138]
mov ebx, dword [ebp - 0x150]
cmovae edx, edi
cmp dword [ebp - 0x13c], 0x10
mov esi, dword [ebp - 0x140]
cmovae eax, ebx
cmp esi, dword [ebp - 0x128]
jne 0x402f47
sub esi, 4
jb 0x402dd8
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x402ddd
add eax, 4
add edx, 4
sub esi, 4
jae 0x402dc7
cmp esi, 0xfffffffc
je 0x402e11
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x402e0a
cmp esi, 0xfffffffd
je 0x402e11
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x402e0a
cmp esi, 0xfffffffe
je 0x402e11
mov cl, byte [eax + 2]
cmp cl, byte [edx + 2]
jne 0x402e0a
cmp esi, 0xffffffff
je 0x402e11
mov al, byte [eax + 3]
cmp al, byte [edx + 3]
je 0x402e11
sbb eax, eax
or eax, 1
jmp 0x402e13
xor eax, eax
test eax, eax
jne 0x402f47
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x13c]
cmp eax, 0x10
jb 0x402e55
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x402e4b
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40265c
push ecx
push ebx
call fcn.00406406
add esp, 8
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], 0
cmp eax, 0x10
jb 0x402eaa
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x402ea0
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40265c
push ecx
push edi
call fcn.00406406
add esp, 8
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x120]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
test ecx, ecx
je 0x402b20
mov edx, dword [ebp - 0x11c]
push ecx
call fcn.004050d0
mov ecx, dword [ebp - 0x118]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x120]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x402f1a
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40265c
push ecx
push esi
call fcn.00406406
add esp, 8
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
jmp 0x402b14
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x40865c
push 0x404a20
call fcn.004047e0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp dword [ebp - 0x19c], 0x10
lea eax, [ebp - 0x1b0]
lea ecx, [ebp - 0x278]
cmovae eax, dword [ebp - 0x1b0]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
push dword [eax]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
lea ecx, [ebp - 0x278]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
cmp dword [ebp - 0x1b4], 0x10
lea eax, [ebp - 0x1c8]
lea ecx, [ebp - 0x280]
cmovae eax, dword [ebp - 0x1c8]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
mov esi, eax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x1b0]
cmp dword [ebp - 0x19c], 0x10
cmovae ecx, dword [ebp - 0x1b0]
push ecx
lea ecx, [ebp - 0x27c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
push 0
push 0
push dword [esi]
push dword [eax]
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
lea ecx, [ebp - 0x27c]
mov esi, eax
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 0xf
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push 0x404a20
test esi, esi
je 0x403164
mov edx, 0x408640
call fcn.004047e0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x13c]
cmp edx, 0x10
jb 0x403072
mov ecx, dword [ebp - 0x150]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403068
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40265c
push edx
push ecx
call fcn.00406406
add esp, 8
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], 0
cmp eax, 0x10
jb 0x4030c7
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4030bd
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40265c
push ecx
push edi
call fcn.00406406
add esp, 8
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x120]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
test ecx, ecx
je 0x402b20
mov edx, dword [ebp - 0x11c]
push ecx
call fcn.004050d0
mov ecx, dword [ebp - 0x118]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x120]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x403137
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40265c
push ecx
push esi
call fcn.00406406
add esp, 8
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
jmp 0x402b14
mov edx, 0x408664
call fcn.004047e0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, str.WebSimAssistant.exe
call fcn.00401070
test eax, eax
je 0x4031e2
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x408670
push 0x404a20
call fcn.004047e0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
call fcn.00402080
call fcn.00402140
test al, al
jne 0x4031c5
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
call fcn.00402140
test al, al
je 0x4031b5
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x408684
push 0x404a20
call fcn.004047e0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x408690
push 0x404a20
call fcn.004047e0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1388
call ebx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x40869c
push 0x404a20
call fcn.004047e0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp dword [ebp - 0x1b4], 0x10
lea edx, [ebp - 0x1c8]
push 0
cmovae edx, dword [ebp - 0x1c8]
push 0x408764
push 0x408764
sub esp, 0x18
mov ecx, edx
mov esi, esp
lea eax, [ecx + 1]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov dword [ebp - 0x268], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403270
sub ecx, dword [ebp - 0x268]
push ecx
push edx
mov ecx, esi
call fcn.00405ab0
call fcn.00401880
add esp, 0x18
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x4086b4
push 0x404a20
call fcn.004047e0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, str.Project3.exe
call fcn.00401070
test eax, eax
je 0x4032de
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x7d0
call ebx
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x13c]
cmp edx, 0x10
jb 0x403323
mov ecx, dword [ebp - 0x150]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403319
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40265c
push edx
push ecx
call fcn.00406406
add esp, 8
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], 0
cmp eax, 0x10
jb 0x403378
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x40336e
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40265c
push ecx
push edi
call fcn.00406406
add esp, 8
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x120]
test ecx, ecx
je 0x403404
mov edx, dword [ebp - 0x11c]
push ecx
call fcn.004050d0
mov ecx, dword [ebp - 0x118]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x120]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x4033dc
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40265c
push ecx
push esi
call fcn.00406406
add esp, 8
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
push 0x6ddd00
call ebx
jmp 0x402b1a
call fcn.004058e0
int3