Function at 0x40d9a0
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41d6eb
push eax
mov al, byte [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x4b0
test al, al
jne 0x40dc9b
push ebx
lea eax, [esp + 4]
push str..AutoPlayLangData_
push eax
call fcn.00410e7c
mov bl, byte [esp + 0x4d0]
add esp, 8
test bl, bl
jne 0x40db47
call fcn.00409b20
cmp byte [eax], 0
jne 0x40db47
lea ecx, [esp + 0x20c]
push str..AutoPlayLangData_
push ecx
call fcn.00410e7c
mov edx, dword [0x425050]
mov eax, dword [edx*4 + 0x4a71a8]
imul eax, eax, 0xa4
add eax, str.da_DK
push eax
lea eax, [esp + 0x218]
push eax
call fcn.00410e52
lea ecx, [esp + 0x21c]
push str.lang.dat
push ecx
call fcn.00410e52
lea edx, [esp + 0x224]
push edx
call fcn.0040abc0
add esp, 0x1c
test al, al
jne 0x40db1c
mov al, byte [0x42610d]
test al, al
je 0x40dafb
lea eax, [esp + 4]
push str..AutoPlayLangData_
push eax
call fcn.00410e7c
add esp, 8
mov ecx, 0x426108
call fcn.00401230
push eax
call fcn.0040caa0
imul eax, eax, 0xa4
add eax, str.da_DK
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00410e52
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x21c]
push eax
call fcn.00410e7c
lea ecx, [esp + 0x220]
push str.lang.dat
push ecx
call fcn.00410e52
lea edx, [esp + 0x228]
push edx
call fcn.0040abc0
add esp, 0x20
test al, al
jne 0x40dc4a
call fcn.00409b30
mov eax, dword [eax]
push 0x10
push 0x41f9a0
push str.File_lang.dat_file_is_not_present__which_is_given_as_DEFAULT_LANG_CODE_in_Main.ini
push eax
call dword [0x425cc4]
push 1
call fcn.0041242e
call fcn.00409b30
mov ecx, dword [eax]
push 0x10
push 0x41f9a0
push str.Please_provide_default_language_Code_in_Main.ini
push ecx
call dword [0x425cc4]
push 1
call fcn.0041242e
mov edx, dword [0x425050]
mov eax, dword [edx*4 + 0x4a71a8]
imul eax, eax, 0xa4
add eax, str.da_DK
push eax
lea eax, [esp + 8]
push eax
call fcn.00410e52
add esp, 8
jmp 0x40dc4a
call fcn.00409b20
cmp byte [eax], 0
je 0x40db7b
call fcn.0040d1a0
test al, al
je 0x40db7b
call fcn.00403920
push eax
call fcn.0040d020
imul eax, eax, 0xa4
add eax, str.da_DK
push eax
lea ecx, [esp + 0xc]
push ecx
jmp 0x40dc42
mov al, byte [0x42610d]
test al, al
je 0x40dc26
mov ecx, 0x426108
call fcn.00401230
push eax
call fcn.0040caa0
imul eax, eax, 0xa4
add eax, str.da_DK
push eax
lea edx, [esp + 0xc]
push edx
call fcn.00410e52
add esp, 0xc
test bl, bl
je 0x40dc4a
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x210]
push ecx
call fcn.00410e7c
lea edx, [esp + 0x214]
push str.lang.dat
push edx
call fcn.00410e52
lea eax, [esp + 0x21c]
push eax
call fcn.0040abc0
add esp, 0x14
test al, al
jne 0x40dc4a
lea ecx, [esp + 4]
push str..AutoPlayLangData_
push ecx
call fcn.00410e7c
call fcn.00403920
push eax
call fcn.0040d020
imul eax, eax, 0xa4
add eax, str.da_DK
push eax
lea edx, [esp + 0x14]
push edx
call fcn.00410e52
add esp, 0x14
jmp 0x40dc4a
call fcn.00403920
push eax
call fcn.0040d020
imul eax, eax, 0xa4
add eax, str.da_DK
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00410e52
add esp, 0xc
lea ecx, [esp + 4]
push str.lang.dat
push ecx
call fcn.00410e52
add esp, 8
lea edx, [esp + 4]
push edx
lea ecx, [esp + 0x418]
call fcn.0040ca20
push eax
mov ecx, 0x4a7258
mov dword [esp + 0x4c0], 0
call fcn.0040d940
lea ecx, [esp + 0x414]
mov dword [esp + 0x4bc], 0xffffffff
call fcn.0040c120
pop ebx
mov ecx, dword [esp + 0x4b0]
mov eax, 0x4a7258
mov dword fs:[0], ecx
add esp, 0x4bc
ret