Function at 0x401490
Capabilities:
Accept command line arguments
Create process on windows
Open clipboard
Query environment variable
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xe98
mov eax, dword [0x410008]
xor eax, esp
mov dword [esp + 0xe94], eax
push esi
push edi
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xorps xmm0, xmm0
mov dword [esp + 0x18], eax
push 0x12
movaps xmmword [esp + 0x154], xmm0
lea ecx, [esp + 0x84]
movaps xmmword [esp + 0x134], xmm0
movaps xmmword [esp + 0xd4], xmm0
movaps xmmword [esp + 0xb4], xmm0
movaps xmmword [esp + 0x114], xmm0
movaps xmmword [esp + 0xf4], xmm0
push str._______
mov dword [esp + 0x168], 0
mov dword [esp + 0x16c], 0xf
mov byte [esp + 0x158], 0
mov dword [esp + 0x148], 0
mov dword [esp + 0x14c], 0xf
mov byte [esp + 0x138], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0xf
mov byte [esp + 0xd8], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xcc], 0xf
mov byte [esp + 0xb8], 0
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], 0xf
mov byte [esp + 0x118], 0
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], 0xf
mov byte [esp + 0xf8], 0
movaps xmmword [esp + 0x88], xmm0
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
call fcn.00404140
mov al, byte [0x40c348]
movq xmm0, qword [str.https:__]
push 0xbaf
mov byte [esp + 0x2ec], al
lea eax, [esp + 0x2ed]
push 0
push eax
movq qword [esp + 0x2ec], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push str.USERPROFILE
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov edx, eax
add esp, 4
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x401624
sub edx, esi
lea ecx, [esp + 0x110]
push edx
push eax
call fcn.004039e0
push 0xb8
lea eax, [esp + 0x22c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x12c]
mov eax, 0x7fffffff
sub eax, ecx
add esp, 0xc
cmp eax, 0xe
jb 0x4024e3
cmp dword [esp + 0x124], 0x10
lea edx, [esp + 0x110]
mov esi, 0xf
mov dword [esp + 0x50], 0
cmovae edx, dword [esp + 0x110]
lea edi, [esp + 0x40]
add ecx, 0xe
mov dword [esp + 0x1c], edx
mov dword [esp + 0x54], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
mov dword [esp + 0x14], ecx
cmp ecx, esi
jbe 0x40172e
mov esi, ecx
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x4016ee
mov ecx, 0x80000000
mov esi, 0x7fffffff
add ecx, 0x23
push ecx
call fcn.0040aad0
add esp, 4
test eax, eax
je 0x4017d7
mov ecx, dword [esp + 0x14]
lea edi, [eax + 0x23]
mov edx, dword [esp + 0x1c]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x40172a
mov eax, 0x16
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x40170f
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4024e8
jmp 0x4016ca
test eax, eax
je 0x401728
push eax
call fcn.0040aad0
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, dword [esp + 0x1c]
mov edi, eax
jmp 0x40172a
xor edi, edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x120]
push esi
push edx
push edi
mov dword [esp + 0x5c], ecx
call sub.VCRUNTIME140.dll_memcpy
movq xmm0, qword [str._smartsurf.ini]
lea ecx, [esp + 0x234]
movq qword [edi + esi], xmm0
mov eax, dword [0x40c360]
mov dword [edi + esi + 8], eax
mov ax, word [0x40c364]
mov word [edi + esi + 0xc], ax
lea eax, [esp + 0x4c]
mov byte [edi + esi + 0xe], 0
cmp dword [esp + 0x60], 0x10
cmovae eax, dword [esp + 0x4c]
push eax
call fcn.00403160
mov eax, dword [esp + 0x228]
mov eax, dword [eax + 4]
mov dword [esp + eax + method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0x228]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [esp + ecx + 0x224], eax
mov ecx, dword [esp + 0x54]
cmp ecx, 0x10
jb 0x4017e7
mov edx, dword [esp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4017dd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4017dd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040ab00
add esp, 8
cmp dword [esp + 0x284], 0
je 0x4018f4
mov eax, dword [esp + 0x228]
lea ecx, [esp + 0x228]
push 0xa
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
lea edx, [esp + 0x150]
push eax
lea ecx, [esp + 0x22c]
call fcn.00404640
mov eax, dword [esp + 0x22c]
lea ecx, [esp + 0x22c]
add esp, 4
add ecx, dword [eax + 4]
push 0xa
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
lea edx, [esp + 0x130]
push eax
lea ecx, [esp + 0x22c]
call fcn.00404640
mov eax, dword [esp + 0x22c]
lea ecx, [esp + 0x22c]
add esp, 4
add ecx, dword [eax + 4]
push 0xa
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
lea edx, [esp + 0xd0]
push eax
lea ecx, [esp + 0x22c]
call fcn.00404640
mov eax, dword [esp + 0x22c]
lea ecx, [esp + 0x22c]
add esp, 4
add ecx, dword [eax + 4]
push 0xa
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
lea edx, [esp + 0xb0]
push eax
lea ecx, [esp + 0x22c]
call fcn.00404640
add esp, 4
lea ecx, [esp + 0x238]
call fcn.004037c0
test eax, eax
jne 0x401a29
push eax
mov eax, dword [esp + 0x22c]
lea ecx, [esp + 0x22c]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
jmp 0x401a29
push 0xb8
lea eax, [esp + 0x174]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push str.c:_smartsurf_smartsurf.ini
lea ecx, [esp + 0x180]
call fcn.00403160
cmp dword [esp + 0x1cc], 0
je 0x40227c
mov eax, dword [esp + 0x170]
lea ecx, [esp + 0x170]
push 0xa
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
lea edx, [esp + 0x150]
push eax
lea ecx, [esp + 0x174]
call fcn.00404640
mov eax, dword [esp + 0x174]
lea ecx, [esp + 0x174]
add esp, 4
add ecx, dword [eax + 4]
push 0xa
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
lea edx, [esp + 0x130]
push eax
lea ecx, [esp + 0x174]
call fcn.00404640
mov eax, dword [esp + 0x174]
lea ecx, [esp + 0x174]
add esp, 4
add ecx, dword [eax + 4]
push 0xa
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
lea edx, [esp + 0xd0]
push eax
lea ecx, [esp + 0x174]
call fcn.00404640
mov eax, dword [esp + 0x174]
lea ecx, [esp + 0x174]
add esp, 4
add ecx, dword [eax + 4]
push 0xa
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
lea edx, [esp + 0xb0]
push eax
lea ecx, [esp + 0x174]
call fcn.00404640
add esp, 4
lea ecx, [esp + 0x180]
call fcn.004037c0
test eax, eax
jne 0x401a1d
push eax
mov eax, dword [esp + 0x174]
lea ecx, [esp + 0x174]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [esp + 0x170]
call fcn.004024f0
cmp dword [esp + 0xac], 1
jle 0x401b64
mov eax, dword [esp + 0x18]
push 0xbb8
push dword [eax + 4]
lea eax, [esp + 0x2e8]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
add esp, 8
mov dword [esp + 0x54], 0
lea eax, [esp + 0x154]
xorps xmm0, xmm0
lea ecx, [esp + 0x44]
movaps xmmword [esp + 0x44], xmm0
push eax
call fcn.00403c90
lea ecx, [esp + 0x2e0]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401a80
sub ecx, edx
lea eax, [esp + 0x40]
push ecx
push 0x10
push eax
lea edx, [esp + 0x2ec]
add edx, ecx
push ecx
lea ecx, [esp + 0x2f0]
call fcn.00404a40
add esp, 0xc
mov byte [esp + 0x17], al
lea eax, [esp + 0x134]
mov dword [esp + 0x74], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x64]
movaps xmmword [esp + 0x64], xmm0
push eax
call fcn.00403c90
lea ecx, [esp + 0x2e0]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401ae0
sub ecx, edx
lea eax, [esp + 0x60]
push ecx
push 0x10
push eax
lea edx, [esp + 0x2ec]
add edx, ecx
push ecx
lea ecx, [esp + 0x2f0]
call fcn.00404a40
movzx ecx, byte [esp + 0x23]
xor edx, edx
add esp, 0x10
test al, al
cmovne ecx, edx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x60]
call fcn.004036a0
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x401b3e
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x401b3e
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
lea ecx, [esp + 0x40]
call fcn.004036a0
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x401b69
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x401b69
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
jmp 0x401b69
mov byte [esp + 0x14], 1
cmp byte [esp + 0x2e0], 0
jne 0x401b90
movq xmm0, qword [str.https:__]
mov al, byte [0x40c348]
movq qword [esp + 0x2e0], xmm0
mov byte [esp + 0x2e8], al
mov eax, dword [esp + 0x14]
cmp al, 1
jne 0x402166
cmp dword [esp + 0xc4], 0x10
lea ecx, [esp + 0xb0]
mov edi, dword [esp + 0xc0]
cmovae ecx, dword [esp + 0xb0]
setae byte [esp + 0x13]
cmp edi, 2
jne 0x401d2d
mov esi, edi
mov edx, 0x40c3f4
sub esi, 4
jb 0x401be5
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x401bea
add ecx, 4
add edx, 4
sub esi, 4
jae 0x401bd4
cmp esi, 0xfffffffc
je 0x401c1e
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x401c17
cmp esi, 0xfffffffd
je 0x401c1e
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x401c17
cmp esi, 0xfffffffe
je 0x401c1e
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x401c17
cmp esi, 0xffffffff
je 0x401c1e
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x401c1e
sbb eax, eax
or eax, 1
jmp 0x401c20
xor eax, eax
test eax, eax
jne 0x401d2d
lea edi, [esp + 0x2e0]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x401c32
mov edx, dword [esp + 0x94]
sub edi, ecx
mov ecx, dword [esp + 0x90]
mov eax, edx
sub eax, ecx
push edi
cmp edi, eax
ja 0x401c87
lea eax, [edi + ecx]
cmp edx, 0x10
mov dword [esp + 0x94], eax
lea esi, [esp + 0x84]
cmovae esi, dword [esp + 0x84]
lea eax, [esp + 0x2e4]
add esi, ecx
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x401ca5
lea eax, [esp + 0x2e4]
mov byte [esp + 0x1c], 0
push eax
push dword [esp + 0x20]
lea ecx, [esp + 0x8c]
push edi
call fcn.004044d0
mov edi, dword [esp + 0x90]
push 0
inc edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40216e
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x401cdb
mov byte [esp + 0x14], al
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x402162
cmp dword [esp + 0x94], 0x10
lea eax, [esp + 0x80]
push edi
cmovae eax, dword [esp + 0x84]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
neg eax
sbb al, al
and byte [esp + 0x14], al
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x402162
push 0xac
lea eax, [esp + 0x178]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x30], 0
mov ecx, 1
mov dword [esp + 0x34], 0
cmp edi, ecx
lea eax, [esp + 0xb0]
xorps xmm0, xmm0
cmovb ecx, edi
movaps xmmword [esp + 0x20], xmm0
cmp byte [esp + 0x13], 0
push ecx
cmovne eax, dword [esp + 0xb4]
lea ecx, [esp + 0x24]
push eax
call fcn.00404140
mov ecx, dword [esp + 0x34]
mov eax, ecx
mov edx, dword [esp + 0x30]
sub eax, edx
cmp eax, 0xb
jb 0x401e1b
cmp ecx, 0x10
lea esi, [esp + 0x20]
lea eax, [edx + 0xb]
cmovae esi, dword [esp + 0x20]
mov dword [esp + 0x30], eax
cmp esi, 0x40c413
jae 0x401dd5
lea eax, [esi + edx]
cmp eax, str.TSCLIENT_
jb 0x401dd5
cmp esi, str.TSCLIENT_
ja 0x401dcb
xor edi, edi
jmp 0x401dda
mov edi, esi
sub edi, str.TSCLIENT_
jmp 0x401dda
mov edi, 0xb
lea eax, [edx + 1]
push eax
lea ecx, [esi + 0xb]
push esi
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
push edi
push str.TSCLIENT_
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [esi + edi]
mov eax, 0xb
sub eax, edi
push eax
lea eax, [edi + 0x40c413]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x20]
jmp 0x401e34
push 0xb
sub esp, 8
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x2c]
push dword [esp + 0x24]
push 0xb
call fcn.00404c80
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
mov dword [esp + 0x54], 0
movups xmm0, xmmword [eax]
push 0xd
push str.itclient.url
movups xmmword [esp + 0x48], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esp + 0x58], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [esp + 0x5c]
mov eax, edx
mov ecx, dword [esp + 0x58]
sub eax, ecx
cmp eax, 0xd
jb 0x401eb0
cmp edx, 0x10
lea esi, [esp + 0x48]
lea eax, [ecx + 0xd]
cmovae esi, dword [esp + 0x48]
add esi, ecx
mov dword [esp + 0x58], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0xd], 0
lea eax, [esp + 0x40]
jmp 0x401ec4
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x48]
push dword [esp + 0x20]
push 0xd
call fcn.004044d0
mov dword [esp + 0x70], 0
lea esi, [esp + 0x60]
mov dword [esp + 0x74], 0
lea ecx, [esp + 0x1d8]
xorps xmm0, xmm0
movaps xmmword [esp + 0x60], xmm0
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x60], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esp + 0x70], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
cmp dword [esp + 0x74], 0x10
mov dword [esp + 0x170], 0x40c5f4
cmovae esi, dword [esp + 0x60]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [esp + 0x17c]
push eax
lea ecx, [esp + 0x17c]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [esp + 0x170]
mov eax, dword [eax + 4]
mov dword [esp + eax + method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0x170]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [esp + ecx + 0x16c], eax
lea ecx, [esp + 0x174]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
lea ecx, [esp + 0x174]
mov dword [esp + method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esp + 0x1bc], 0
mov byte [esp + 0x1b1], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov ecx, dword [0x4109d0]
mov eax, dword [0x4109cc]
push ecx
push 2
mov dword [esp + 0x1c0], ecx
lea ecx, [esp + 0x17c]
push esi
mov dword [esp + 0x1cc], 0
mov dword [esp + 0x1c0], eax
mov dword [esp + 0x1b8], 0
call fcn.00403850
test eax, eax
jne 0x401ffa
push eax
mov eax, dword [esp + 0x174]
lea ecx, [esp + 0x174]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov eax, dword [esp + 0x170]
mov eax, dword [eax + 4]
mov dword [esp + eax + method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0x170]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [esp + ecx + 0x16c], eax
mov ecx, dword [esp + 0x74]
cmp ecx, 0x10
jb 0x402059
mov edx, dword [esp + 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40204f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4020dd
push ecx
push edx
call fcn.0040ab00
add esp, 8
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0xf
mov byte [esp + 0x60], 0
cmp ecx, 0x10
jb 0x4020a0
mov edx, dword [esp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402096
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4020dd
push ecx
push edx
call fcn.0040ab00
add esp, 8
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0xf
mov byte [esp + 0x40], 0
cmp ecx, 0x10
jb 0x4020ed
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4020e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4020e3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040ab00
add esp, 8
lea edx, [esp + 0x2e0]
lea ecx, [esp + 0x170]
call fcn.00403e20
lea ecx, [esp + 0x174]
call fcn.004037c0
test eax, eax
jne 0x40212a
push eax
mov eax, dword [esp + 0x174]
lea ecx, [esp + 0x174]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [esp + 0x170]
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__::flush_void_]
mov eax, dword [esp + 0x170]
lea ecx, [esp + 0x170]
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::good_void_const]
neg al
lea ecx, [esp + 0x170]
sbb al, al
and byte [esp + 0x14], al
call fcn.004025b0
mov eax, dword [esp + 0x14]
test al, al
jne 0x402278
cmp dword [esp + 0xe4], 0x10
lea edi, [esp + 0xd0]
cmovae edi, dword [esp + 0xd0]
mov esi, edi
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x402190
sub esi, ecx
mov edx, 2
inc esi
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040ab0e
add esp, 4
mov dword [esp + 0x1c], eax
push 0xffffffffffffffff
push edi
push esi
push eax
push 0
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs_s]
add esp, 0x14
cmp dword [esp + 0xac], 1
jle 0x402261
lea ecx, [esp + 0x2e0]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4021e1
sub ecx, edx
lea eax, [esp + 0x2e0]
push ecx
push eax
lea ecx, [esp + 0xf8]
call fcn.004039e0
cmp dword [esp + 0x104], 0x10
lea eax, [esp + 0xf0]
cmovae eax, dword [esp + 0xf0]
mov edi, eax
mov dword [esp + 0x18], eax
lea ecx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x402220
sub edi, ecx
mov edx, 2
inc edi
xor ecx, ecx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040ab0e
add esp, 4
mov esi, eax
push 0xffffffffffffffff
push dword [esp + 0x1c]
push edi
push esi
push 0
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs_s]
add esp, 0x14
push 1
push 0
push esi
jmp 0x402267
push 1
push 0
push 0
push dword [esp + 0x28]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor esi, esi
jmp 0x4022a1
push 0x10
push str.ITCONNECT_Smartsurf___Fel_
push str.Hittar_inte_smartsurf.ini.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x170]
call fcn.004024f0
mov esi, 1
lea ecx, [esp + 0x228]
call fcn.004024f0
mov ecx, dword [esp + 0x94]
cmp ecx, 0x10
jb 0x4022e9
mov edx, dword [esp + 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4022df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4024bb
push ecx
push edx
call fcn.0040ab00
add esp, 8
mov ecx, dword [esp + 0x104]
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0xf
mov byte [esp + 0x80], 0
cmp ecx, 0x10
jb 0x402343
mov edx, dword [esp + 0xf0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402339
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4024bb
push ecx
push edx
call fcn.0040ab00
add esp, 8
mov eax, dword [esp + 0x124]
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0xf
mov byte [esp + 0xf0], 0
cmp eax, 0x10
jb 0x40239f
mov edx, dword [esp + 0x110]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x402395
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4024bb
push ecx
push edx
call fcn.0040ab00
add esp, 8
mov eax, dword [esp + 0xc4]
cmp eax, 0x10
jb 0x4023dd
mov edx, dword [esp + 0xb0]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x4023d3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4024bb
push ecx
push edx
call fcn.0040ab00
add esp, 8
mov ecx, dword [esp + 0xe4]
cmp ecx, 0x10
jb 0x402419
mov edx, dword [esp + 0xd0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40240f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4024bb
push ecx
push edx
call fcn.0040ab00
add esp, 8
mov ecx, dword [esp + 0x144]
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0xf
mov byte [esp + 0xd0], 0
cmp ecx, 0x10
jb 0x40246f
mov edx, dword [esp + 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402465
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4024bb
push ecx
push edx
call fcn.0040ab00
add esp, 8
mov ecx, dword [esp + 0x164]
mov dword [esp + 0x140], 0
mov dword [esp + 0x144], 0xf
mov byte [esp + 0x130], 0
cmp ecx, 0x10
jb 0x4024cb
mov edx, dword [esp + 0x150]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4024c1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4024c1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040ab00
add esp, 8
mov ecx, dword [esp + 0xe9c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0040aac2
mov esp, ebp
pop ebp
ret 0x10
call fcn.00401170
call fcn.004010d0
int3