Function at 0x4039c0
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40ff26
push eax
mov dword fs:[0], esp
sub esp, 0xc84
lea eax, [esp + 0x560]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
call fcn.0040714a
add esp, 8
call dword [sym.imp.COMCTL32.DLL_InitCommonControls]
mov esi, dword [esp + 0xca8]
mov ecx, dword [esi]
push ecx
call fcn.00403ee0
mov edi, dword [esi]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x15c]
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 + 0x161]
lea esi, [esp + 0x160]
push ecx
call fcn.00406510
add esp, 0xc
test eax, eax
je 0x403a5e
mov esi, eax
inc eax
push 0x2e
push eax
call fcn.00406510
add esp, 8
test eax, eax
jne 0x403a4c
cmp byte [esi], 0x2e
jne 0x403a66
mov byte [esi], 0
mov edi, str..lcf
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x158]
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 + 0x1c]
call fcn.00401000
lea eax, [esp + 0x158]
push 0x41417c
push eax
mov dword [esp + 0xca4], 0
call fcn.004073b3
mov esi, eax
add esp, 8
test esi, esi
jne 0x403adf
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.00407075
push esi
lea ecx, [esp + 0x20]
call fcn.004011f0
push esi
mov bl, al
call fcn.0040733d
add esp, 4
test bl, bl
jne 0x403b13
push 0
push 0x414120
push str.File_launcher.cfg_is_corrupt
push 0
call dword [sym.imp.USER32.DLL_MessageBoxA]
push 0xffffffffffffffff
call fcn.00407075
lea ecx, [esp + 0x260]
call fcn.00404bf0
lea ecx, [esp + 0x260]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00404d60
mov ebp, dword [esp + 0xcac]
add esp, 8
cmp ebp, 1
jle 0x403bb6
mov eax, dword [esp + 0xca8]
dec ebp
lea edx, [eax + 4]
mov edi, 0x41409c
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x460]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add edx, 4
mov esi, edi
mov edi, ebx
mov ebx, ecx
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
lea ebx, [esp + 0x460]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [edx - 4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
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
dec ebp
rep movsb byte es:[edi], byte [esi]
jne 0x403b4b
mov ebp, dword [esp + 0xca4]
cmp ebp, 2
jl 0x403d03
mov ecx, dword [esp + 0xca8]
mov esi, str.GrabPatches
mov eax, dword [ecx + 4]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x403bf6
test cl, cl
je 0x403bf2
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x403bf6
add eax, 2
add esi, 2
test cl, cl
jne 0x403bce
xor eax, eax
jmp 0x403bfb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403d03
lea ecx, [esp + 0x674]
call fcn.00404bf0
lea edi, [esp + 0x260]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x674]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x774]
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 + 0x874]
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, 0x4171c0
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 + 0x674]
push ecx
call fcn.00404c10
lea edx, [esp + 0x678]
push 0
push edx
call fcn.00404d20
lea eax, [esp + 0x28]
lea ecx, [esp + 0x60]
push eax
push 0x104
push ecx
call fcn.004030a0
add esp, 0x18
test eax, eax
je 0x403cee
push eax
lea edx, [esp + 0x20]
lea eax, [esp + 0x58]
push edx
push eax
call fcn.00404180
lea ecx, [esp + 0x28]
lea edx, [esp + 0x60]
push ecx
push 0x104
push edx
call fcn.004030a0
add esp, 0x18
test eax, eax
jne 0x403cc3
lea eax, [esp + 0x570]
push eax
call fcn.00403ee0
add esp, 4
jmp 0x403ea9
mov ebp, 1
mov ebx, 0x75bcd15
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x54]
push ecx
push 0x104
push edx
call fcn.004030a0
add esp, 0xc
test eax, eax
je 0x403d55
push eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x58]
push eax
push ecx
call fcn.00404180
lea edx, [esp + 0x28]
lea eax, [esp + 0x60]
push edx
push 0x104
push eax
call fcn.004030a0
add esp, 0x18
test eax, eax
jne 0x403d28
jmp 0x403d5d
test ebp, ebp
je 0x403e8f
mov ecx, dword [esp + 0xca8]
xor ebp, ebp
mov edx, dword [ecx]
push edx
call fcn.00403ee0
add esp, 4
lea ecx, [esp + 0x14]
call fcn.00404fc0
lea eax, [esp + 0x260]
mov byte [esp + 0xc9c], 1
push eax
call fcn.00404c10
mov ecx, dword [esp + 0x570]
mov edx, dword [esp + 0x564]
add esp, 4
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00405200
lea eax, [esp + 0x10]
lea ecx, [esp + 0x260]
push eax
push ecx
call fcn.00404d20
mov eax, dword [esp + 0x18]
add esp, 8
cmp eax, ebx
jne 0x403e79
lea ecx, [esp + 0x984]
mov ebp, 1
call fcn.00404bf0
lea edi, [esp + 0x260]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x984]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xa84]
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 + 0xb84]
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, 0x4171c0
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 + 0x984]
push ecx
call fcn.00404c10
lea edx, [esp + 0x988]
push 0
push edx
call fcn.00404d20
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0xc9c], 0
call fcn.004051d0
jmp 0x403d0d
lea eax, [esp + 0x1c]
push eax
call fcn.004034e0
lea ecx, [esp + 0x574]
push ecx
call fcn.00403ee0
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc9c], 0xffffffff
call fcn.00401090
mov ecx, dword [esp + 0xc94]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0xc90
ret