Function at 0x403fe0
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40f2d6
push eax
mov dword fs:[0], esp
sub esp, 0xc7c
lea eax, [esp + 0x144]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
call fcn.004071df
mov ebp, dword [esp + 0xca8]
mov ecx, dword [ebp]
push ecx
call fcn.00404590
mov edi, dword [ebp]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x58]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x2e
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x5d]
lea esi, [esp + 0x5c]
push ecx
call fcn.00406610
add esp, 0x14
test eax, eax
je 0x40406e
mov esi, eax
inc eax
push 0x2e
push eax
call fcn.00406610
add esp, 8
test eax, eax
jne 0x40405c
cmp byte [esi], 0x2e
jne 0x404076
mov byte [esi], 0
push str.generals
call fcn.004044d0
add esp, 4
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov edi, str..lcf
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.00401000
lea eax, [esp + 0x4c]
push 0x4131a8
push eax
mov dword [esp + 0xc9c], 0
call fcn.00407524
mov esi, eax
add esp, 8
test esi, esi
jne 0x4040fc
push eax
push str.Launcher_config_file_missing
push str.You_must_run_the_game_from_its_install_directory.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call fcn.0040710a
push esi
lea ecx, [esp + 0x18]
call fcn.004011f0
push esi
mov bl, al
call fcn.004074ae
add esp, 4
test bl, bl
jne 0x404130
push 0
push str.Error
push str.File_launcher.cfg_is_corrupt
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call fcn.0040710a
lea ecx, [esp + 0x35c]
call fcn.00405230
lea ecx, [esp + 0x35c]
push 0
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.004053b0
add esp, 0xc
lea ecx, [esp + 0x97c]
call fcn.00405230
lea eax, [esp + 0x97c]
push str.RUN2
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004053b0
mov ebx, dword [esp + 0xca8]
add esp, 0xc
movsx edx, al
cmp ebx, 1
mov dword [esp + 0x10], edx
jle 0x40426e
lea edx, [ebp + 4]
dec ebx
mov edi, 0x4130b8
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x55c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebp, [esp + 0x55c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [edx]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, ebp
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x404256
mov edi, 0x4130b8
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0xb7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebp, [esp + 0xb7c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [edx]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add edx, 4
dec ebx
jne 0x404194
mov ebx, dword [esp + 0xc9c]
mov ebp, dword [esp + 0xca0]
cmp ebx, 2
jl 0x4043b5
mov eax, dword [ebp + 4]
mov esi, str.GrabPatches
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4042a7
test cl, cl
je 0x4042a3
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4042a7
add eax, 2
add esi, 2
test cl, cl
jne 0x40427f
xor eax, eax
jmp 0x4042ac
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4043b5
lea ecx, [esp + 0x66c]
call fcn.00405230
lea edi, [esp + 0x35c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x66c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x76c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.patchget.dat
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x86c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4142f0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x66c]
push ecx
call fcn.00405250
lea edx, [esp + 0x670]
push 0
push edx
call fcn.00405360
lea eax, [esp + 0x20]
lea ecx, [esp + 0x264]
push eax
push 0x104
push ecx
call fcn.00403420
add esp, 0x18
test eax, eax
je 0x4043a8
push eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x25c]
push edx
push eax
call fcn.00404640
lea ecx, [esp + 0x20]
lea edx, [esp + 0x264]
push ecx
push 0x104
push edx
call fcn.00403420
add esp, 0x18
test eax, eax
jne 0x404377
lea eax, [esp + 0x154]
push eax
jmp 0x40448d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40446c
lea ecx, [esp + 0x10]
call fcn.00401ca0
lea ecx, [esp + 0x10]
mov byte [esp + 0xc94], 1
push ecx
push str.FLAG
lea ecx, [esp + 0x1c]
call fcn.00401550
test al, al
je 0x404401
lea ecx, [esp + 0x10]
call fcn.00401f90
push eax
call fcn.004067ae
mov esi, eax
add esp, 4
test esi, esi
jne 0x40441c
push 0
push str.Error
push str.File_launcher.cfg_is_corrupt
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call fcn.0040710a
push 0
call fcn.004073d2
add esp, 4
cmp eax, esi
jle 0x404445
mov ecx, dword [ebp]
lea edx, [esp + 0x35c]
lea eax, [esp + 0x14]
push edx
push eax
push ecx
call fcn.00403e40
add esp, 0xc
jmp 0x404459
mov eax, dword [ebp]
lea edx, [esp + 0x97c]
push edx
push eax
call fcn.00403fc0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0xc94], 0
call fcn.00401cd0
jmp 0x404485
mov eax, dword [ebp]
lea ecx, [esp + 0x35c]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
call fcn.00403e40
add esp, 0xc
lea ecx, [esp + 0x154]
push ecx
call fcn.00404590
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0xc94], 0xffffffff
call fcn.00401090
mov ecx, dword [esp + 0xc8c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0xc88
ret