Function at 0x4021c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41293e
mov eax, dword fs:[0]
push eax
sub esp, 0x7f4
mov eax, dword [0x87f03c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
call sub.mfc140.dll_Ordinal_7961
lea eax, [ebp - 0x7fc]
push eax
call fcn.00408980
push 0x100
lea eax, [ebp - 0x310]
mov dword [ebp - 0x324], 0x11c
push 0
push eax
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x314], 0
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0x10
xor eax, eax
mov word [ebp - 0x20e], ax
mov dword [ebp - 0x20c], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call esi
push edx
push eax
call esi
push edx
push eax
call esi
push edx
push eax
push 0x23
lea eax, [ebp - 0x324]
mov dword [ebp - 0x320], 6
xor ecx, ecx
mov dword [ebp - 0x31c], 2
push eax
mov word [ebp - 0x210], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
xorps xmm0, xmm0
test eax, eax
jne 0x4023e2
push 0x50
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
call fcn.00403290
mov dword [ebp - 0x2c], eax
mov ecx, 0x13
mov dword [ebp - 0x1c], 0x4f
mov esi, str.Some_libraries_on_your_system_are_missing._A_newer_Windows_version_is_required.
mov dword [ebp - 0x18], 0x4f
mov edi, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov byte [eax + 0x4f], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push 0x30
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0xf
call fcn.00403290
movups xmm0, xmmword [str.Settlers_United:_Required_Dependencies_Missing]
mov ecx, eax
mov dword [ebp - 0x34], 0x2e
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x30], 0x2f
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x414700]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [0x414710]
movq qword [ecx + 0x20], xmm0
mov eax, dword [0x414718]
mov dword [ecx + 0x28], eax
mov ax, word [0x41471c]
mov word [ecx + 0x2c], ax
mov byte [ecx + 0x2e], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00403df0
mov ecx, dword [ebp - 0x30]
add esp, 8
cmp ecx, 0x10
jb 0x402391
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402387
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023cd
push ecx
push edx
call fcn.0040e25c
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 0x10
jb 0x40308e
mov edx, dword [ebp - 0x2c]
inc ecx
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
jbe 0x4023d3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e25c
add esp, 8
jmp 0x40308e
mov edx, dword [edi + 0x48]
mov ecx, edx
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402400
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.00401290
mov ecx, dword [ebp - 0x34]
mov eax, 0x7fffffff
sub eax, ecx
mov dword [ebp - 4], 2
cmp eax, 1
jb 0x4030ac
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
push ecx
cmovae eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x8c]
push eax
push 1
push str._erifyKp_sdl_ob
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x7fc]
call fcn.004017e0
push 1
push str._erifyKp_sdl_ob
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.00403340
mov dword [ebp - 0x4c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x48], 0
movups xmm0, xmmword [eax]
mov byte [ebp - 4], 2
movups xmmword [ebp - 0x5c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x4c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x78]
cmp ecx, 0x10
jb 0x4024e0
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4024d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4024d6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e25c
add esp, 8
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 5
cmp ecx, 0x10
jb 0x40251a
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402510
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402510
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e25c
add esp, 8
push str.Settlers_UnitedS4
mov ecx, edi
call sub.mfc140.dll_Ordinal_13830
mov eax, dword [edi]
mov ecx, edi
push 0x4145dc
push str.NotEmpty
push 0x414740
call dword [eax + 0x90]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 4
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x2c], 0x74696177
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403f10
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0x7fc], al
mov byte [ebp - 4], 6
cmp ecx, 0x10
jb 0x4025af
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4025a5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4025a5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e25c
add esp, 8
mov edx, dword [edi + 0x48]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4025d0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00401290
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x7f8]
call fcn.00403490
mov ecx, dword [ebp - 0x18]
test al, al
mov byte [ebp - 4], 6
sete al
mov byte [ebp - 0x7f1], al
cmp ecx, 0x10
jb 0x40263f
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40262f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403018
push ecx
push edx
call fcn.0040e25c
mov al, byte [ebp - 0x7f1]
add esp, 8
test al, al
je 0x40265d
mov ecx, dword [edi + 0x48]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
je 0x4030b1
jmp 0x402650
push 0x4cc
lea eax, [ebp - 0x7f0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [str.ranked]
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], eax
add esp, 0xc
mov ax, word [0x4147a8]
mov byte [ebp - 0x7ec], 1
mov dword [ebp - 0x1c], 6
mov dword [ebp - 0x18], 0xf
mov word [ebp - 0x28], ax
mov byte [ebp - 0x26], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403f10
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0x327], al
mov byte [ebp - 4], 6
cmp ecx, 0x10
jb 0x4026f5
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4026eb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4026eb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e25c
add esp, 8
mov al, byte [0x4147b4]
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x6d0], 0
movq xmm0, qword [str.anonymous]
mov dword [ebp - 0x1c], 9
mov dword [ebp - 0x18], 0xf
movq qword [ebp - 0x2c], xmm0
mov byte [ebp - 0x24], al
mov byte [ebp - 0x23], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403f10
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0x35a], al
mov byte [ebp - 4], 6
cmp ecx, 0x10
jb 0x40277d
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402773
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402773
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e25c
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 4
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x2c], 0x6e696f6a
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403f10
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0x7f1], al
mov byte [ebp - 4], 6
cmp ecx, 0x10
jb 0x4027f3
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4027e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4027e3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e25c
mov al, byte [ebp - 0x7f1]
add esp, 8
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x2c]
movups xmmword [ebp - 0x2c], xmm0
test al, al
je 0x402a40
push 0x20
mov dword [ebp - 0x6d0], 1
mov dword [ebp - 0x18], 0xf
call fcn.00403290
movups xmm0, xmmword [str.join_num_max_players]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0x14
mov dword [ebp - 0x18], 0x1f
movups xmmword [eax], xmm0
mov ecx, dword [0x4147c8]
mov dword [eax + 0x10], ecx
mov byte [eax + 0x14], 0
push 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x5c]
call fcn.00404040
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x460], al
call fcn.004019f0
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov eax, dword [0x4147d8]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
movq xmm0, qword [str.join_game_name]
mov ax, word [0x4147dc]
mov dword [ebp - 0x1c], 0xe
mov dword [ebp - 0x18], 0xf
movq qword [ebp - 0x2c], xmm0
mov word [ebp - 0x20], ax
mov byte [ebp - 0x1e], 0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00404180
cmp dword [eax + 0x14], 0x10
jb 0x4028da
mov eax, dword [eax]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
push 0x64
push eax
lea eax, [ebp - 0x6cc]
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x74]
call fcn.004019f0
lea ecx, [ebp - 0x2c]
call fcn.004019f0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.004019f0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
push 0x4145dc
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
call fcn.00401290
push 0x12
xorps xmm0, xmm0
mov byte [ebp - 4], 0xf
push str.join_map_file_name
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
call fcn.00401290
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00404180
cmp dword [eax + 0x14], 0x10
jb 0x402977
mov eax, dword [eax]
push 0x104
push eax
lea eax, [ebp - 0x668]
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x74]
call fcn.004019f0
lea ecx, [ebp - 0x2c]
call fcn.004019f0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.004019f0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
push 0x4145dc
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
call fcn.00401290
push 0xe
xorps xmm0, xmm0
mov byte [ebp - 4], 0x11
push str.join_save_name
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
call fcn.00401290
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00404180
cmp dword [eax + 0x14], 0x10
jb 0x402a11
mov eax, dword [eax]
push 0x104
push eax
lea eax, [ebp - 0x564]
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x74]
call fcn.004019f0
lea ecx, [ebp - 0x2c]
call fcn.004019f0
lea ecx, [ebp - 0x44]
call fcn.004019f0
jmp 0x402bd8
push 4
push str.host
mov dword [ebp - 0x18], 0
call fcn.00401290
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403f10
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x7f1], al
mov byte [ebp - 4], 6
call fcn.004019f0
cmp byte [ebp - 0x7f1], 0
je 0x402bd2
push str.random
lea ecx, [ebp - 0xec]
mov dword [ebp - 0x6d0], 2
call fcn.004017a0
push str.host_type
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0x14
call fcn.004017a0
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 0x15
push eax
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00404180
lea ecx, [ebp - 0xd4]
call fcn.004019f0
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 0x18
call fcn.004019f0
lea eax, [ebp - 0x44]
push str.random
push eax
call fcn.00401180
add esp, 8
test al, al
je 0x402b06
mov byte [ebp - 0x45f], 0
jmp 0x402b44
lea eax, [ebp - 0x44]
push str.save
push eax
call fcn.00401180
add esp, 8
test al, al
je 0x402b24
mov byte [ebp - 0x45f], 1
jmp 0x402b44
lea eax, [ebp - 0x44]
push str.set_map
push eax
call fcn.00401180
add esp, 8
test al, al
je 0x403125
mov byte [ebp - 0x45f], 2
push 0x4145dc
lea ecx, [ebp - 0x74]
call fcn.004017a0
push str.host_filename
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 0x19
call fcn.004017a0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00404180
lea ecx, [ebp - 0x104]
call fcn.004019f0
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x1d
call fcn.004019f0
cmp byte [ebp - 0x45f], 0
je 0x402baa
cmp dword [ebp - 0x1c], 0
je 0x4030fa
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
cmovae eax, dword [ebp - 0x2c]
push 0x104
push eax
lea eax, [ebp - 0x45e]
push eax
call esi
add esp, 0xc
jmp 0x402a2b
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov eax, dword [str.user_id]
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], eax
mov ax, word [0x4148cc]
mov word [ebp - 0x28], ax
mov al, byte [0x4148ce]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x26], al
mov byte [ebp - 0x25], 0
push 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x1e
push eax
lea ecx, [ebp - 0x5c]
call fcn.00404040
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x7f0], eax
call fcn.004019f0
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x2c], 0x6b63696e
mov dword [ebp - 0x28], 0x656d616e
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0x20
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00404180
cmp dword [eax + 0x14], 0x10
jb 0x402c88
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x359]
push 0x32
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
lea ecx, [ebp - 0x74]
call fcn.004019f0
lea ecx, [ebp - 0x2c]
call fcn.004019f0
lea ecx, [ebp - 0x44]
call fcn.004019f0
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x2c], 0x65706970
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0x22
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00404180
lea ecx, [ebp - 0x2c]
call fcn.004019f0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x25
call fcn.004019f0
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x402d48
cmp eax, 0x13
ja 0x403150
cmp dword [ebp - 0x78], 0x10
lea eax, [ebp - 0x8c]
push 0x14
cmovae eax, dword [ebp - 0x8c]
push eax
lea eax, [ebp - 0x7eb]
push eax
call esi
add esp, 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
push 0x20
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x26
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
call fcn.00403290
movups xmm0, xmmword [str.screen_directory]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x18], 0x1f
movups xmmword [eax], xmm0
mov byte [eax + 0x10], 0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0x27
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00404180
lea ecx, [ebp - 0x2c]
call fcn.004019f0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x2a
call fcn.004019f0
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x402e0a
cmp eax, 0x104
ja 0x40317b
cmp dword [ebp - 0x90], 0x10
lea eax, [ebp - 0xa4]
push 0x104
cmovae eax, dword [ebp - 0xa4]
push eax
lea eax, [ebp - 0x7d7]
push eax
call esi
add esp, 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 8
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x44], 0x656d6167
mov dword [ebp - 0x40], 0x7269642d
mov byte [ebp - 0x3c], 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x2c
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00404180
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 0x2e
cmp ecx, 0x10
jb 0x402e96
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402e8c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ed2
push ecx
push edx
call fcn.0040e25c
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 0x2f
cmp ecx, 0x10
jb 0x402ee2
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402ed8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402ed8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e25c
add esp, 8
push 0x401160
sub esp, 0x18
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0xbc]
mov dword [ebp - 0x7f8], esp
mov ecx, esp
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
push eax
call fcn.004016f0
sub esp, 0x18
xorps xmm0, xmm0
mov esi, esp
mov dword [ebp - 0x7f8], esp
push 6
movups xmmword [esi], xmm0
push str.s4.dll
push esi
mov dword [esi + 0x10], 6
mov dword [esi + 0x14], 0xf
call sub.VCRUNTIME140.dll_memmove
mov byte [esi + 6], 0
sub esp, 0xc
mov byte [ebp - 4], 0x31
mov esi, esp
xorps xmm0, xmm0
push 0xb
movups xmmword [esi], xmm0
push str.S4_Main.exe
push esi
mov dword [esi + 0x10], 0xb
mov dword [esi + 0x14], 0xf
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0xb], 0
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 0x2f
call fcn.00404e70
push dword [ebp - 0x7fc]
lea eax, [ebp - 0x7f0]
mov byte [ebp - 4], 0x32
push 0x4cc
push eax
lea ecx, [ebp - 0x154]
mov byte [ebp - 0x108], 1
call fcn.00406e70
xor ecx, ecx
cmp ecx, eax
lea ecx, [ebp - 0x124]
sbb esi, esi
neg esi
call fcn.004019f0
lea ecx, [ebp - 0x13c]
call fcn.004019f0
lea ecx, [ebp - 0x154]
call fcn.004019f0
lea ecx, [ebp - 0xbc]
call fcn.004019f0
lea ecx, [ebp - 0xa4]
call fcn.004019f0
lea ecx, [ebp - 0x8c]
call fcn.004019f0
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x10
jb 0x403028
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40301e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40301e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e25c
add esp, 8
mov eax, esi
jmp 0x403090
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040e6c4
mov esp, ebp
pop ebp
ret
call fcn.00403260
sub ecx, edx
jne 0x4030ce
push str.Please_launch_via_the_settlers_united.com_app.
lea ecx, [ebp - 0x2f0]
call fcn.00401660
mov ecx, eax
call fcn.00403c30
jmp 0x4030d3
mov eax, str.A_timeout_occurred__please_try_again.
sub esp, 0x18
mov ecx, esp
push eax
call fcn.004017a0
lea ecx, [ebp - 0x178]
call fcn.004018f0
push 0x87c0b0
lea eax, [ebp - 0x178]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
sub esp, 0x18
mov ecx, esp
push str.host_filename_must_not_be_empty_unless_host_type_is_random.
call fcn.004017a0
lea ecx, [ebp - 0x19c]
call fcn.004018f0
push 0x87c0b0
lea eax, [ebp - 0x19c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
sub esp, 0x18
mov ecx, esp
push str.The_host_type_is_unsupported__must_be_one_of_random__save__or_set_map_.
call fcn.004017a0
lea ecx, [ebp - 0x1c0]
call fcn.004018f0
push 0x87c0b0
lea eax, [ebp - 0x1c0]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
sub esp, 0x18
mov ecx, esp
push str.The_pipe_name_is_too_long.
call fcn.004017a0
lea ecx, [ebp - 0x1e4]
call fcn.004018f0
push 0x87c0b0
lea eax, [ebp - 0x1e4]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
sub esp, 0x18
mov ecx, esp
push str.The_screen_directory_is_too_long.
call fcn.004017a0
lea ecx, [ebp - 0x208]
call fcn.004018f0
push 0x87c0b0
lea eax, [ebp - 0x208]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3