Function at 0x403e70
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40fcc6
push eax
mov dword fs:[0], esp
sub esp, 0xc80
lea eax, [esp + 0x148]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
call fcn.00406edd
mov ebp, dword [esp + 0xcac]
mov ecx, dword [ebp]
push ecx
call fcn.00404390
mov eax, dword [ebp]
lea edx, [esp + 0x5c]
add esp, 0xc
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403ebd
lea edx, [esp + 0x51]
push 0x2e
push edx
lea esi, [esp + 0x58]
call fcn.004062d0
add esp, 8
test eax, eax
je 0x403ef0
mov esi, eax
inc eax
push 0x2e
push eax
call fcn.004062d0
add esp, 8
test eax, eax
jne 0x403ede
cmp byte [esi], 0x2e
jne 0x403ef8
mov byte [esi], 0
push str.generals
call fcn.004042d0
add esp, 4
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [str..lcf]
mov cl, byte [0x4131b0]
dec edi
mov dword [edi], eax
mov byte [edi + 4], cl
lea ecx, [esp + 0x18]
call fcn.00401000
lea edx, [esp + 0x50]
push 0x4131a8
push edx
mov dword [esp + 0xca0], 0
call fcn.00407222
mov esi, eax
add esp, 8
test esi, esi
jne 0x403f6c
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.00406e08
push esi
lea ecx, [esp + 0x1c]
call fcn.004011f0
push esi
mov bl, al
call fcn.004071ac
add esp, 4
test bl, bl
jne 0x403fa0
push 0
push 0x41314c
push str.File_launcher.cfg_is_corrupt
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call fcn.00406e08
lea ecx, [esp + 0x360]
call fcn.00404f60
lea eax, [esp + 0x360]
push 0
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.004050d0
add esp, 0xc
lea ecx, [esp + 0x980]
call fcn.00404f60
lea edx, [esp + 0x980]
push str.RUN2
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.004050d0
movsx ecx, al
mov eax, dword [esp + 0xcac]
mov edx, 1
add esp, 0xc
cmp eax, edx
mov dword [esp + 0x10], ecx
jle 0x4040c0
mov bp, word [0x4130b8]
lea edi, [esp + 0x560]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x560]
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xca4]
or ecx, 0xffffffff
mov word [edi - 1], bp
mov edi, dword [eax + edx*4]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, ebx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x4040a9
lea edi, [esp + 0xb80]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb80]
repne scasb al, byte es:[edi]
mov ecx, dword [esp + 0xca4]
mov word [edi - 1], bp
mov edi, dword [ecx + edx*4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
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]
mov eax, dword [esp + 0xca0]
inc edx
cmp edx, eax
jl 0x40400b
mov ebp, dword [esp + 0xca4]
cmp eax, 2
jl 0x4041a1
mov esi, dword [ebp + 4]
mov edi, str.GrabPatches
mov ecx, 0xc
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4041a1
lea ecx, [esp + 0x670]
call fcn.00404f60
xor eax, eax
mov cl, byte [esp + eax + 0x360]
mov byte [esp + eax + 0x670], cl
inc eax
test cl, cl
jne 0x4040ee
xor eax, eax
mov cl, byte [eax + str.patchget.dat]
mov byte [esp + eax + 0x770], cl
inc eax
test cl, cl
jne 0x404103
xor eax, eax
mov cl, byte [eax + 0x4162c4]
mov byte [esp + eax + 0x870], cl
inc eax
test cl, cl
jne 0x404117
lea eax, [esp + 0x670]
push eax
call fcn.00404f80
lea ecx, [esp + 0x674]
push 0
push ecx
call fcn.00405080
lea edx, [esp + 0x24]
lea eax, [esp + 0x268]
push edx
push 0x104
push eax
call fcn.00403390
add esp, 0x18
test eax, eax
je 0x404194
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x260]
push ecx
push edx
call fcn.00404440
lea eax, [esp + 0x24]
lea ecx, [esp + 0x268]
push eax
push 0x104
push ecx
call fcn.00403390
add esp, 0x18
test eax, eax
jne 0x404163
lea edx, [esp + 0x158]
push edx
jmp 0x40428a
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404269
lea ecx, [esp + 0x10]
call fcn.00401c90
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push str.FLAG
mov byte [esp + 0xca0], 1
call fcn.00401540
test al, al
je 0x4041ed
lea ecx, [esp + 0x10]
call fcn.00401f40
push eax
call fcn.0040646e
mov esi, eax
add esp, 4
test esi, esi
jne 0x404208
push 0
push 0x41314c
push str.File_launcher.cfg_is_corrupt
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call fcn.00406e08
push 0
call fcn.004070d0
add esp, 4
cmp eax, esi
jle 0x404242
mov eax, dword [ebp]
lea ecx, [esp + 0x360]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
call fcn.00403d20
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0xc98], 0
call fcn.00401cc0
jmp 0x404282
mov edx, dword [ebp]
lea ecx, [esp + 0x980]
push ecx
push edx
call fcn.00403e50
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0xc98], 0
call fcn.00401cc0
jmp 0x404282
mov edx, dword [ebp]
lea eax, [esp + 0x360]
lea ecx, [esp + 0x18]
push eax
push ecx
push edx
call fcn.00403d20
add esp, 0xc
lea eax, [esp + 0x158]
push eax
call fcn.00404390
lea ecx, [esp + 0x1c]
add esp, 4
mov dword [esp + 0xc98], 0xffffffff
call fcn.00401090
mov ecx, dword [esp + 0xc90]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0xc8c
ret