Function at 0x41b320
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
push ebx
push esi
push edi
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx ebx, ax
mov dword [esp + 0x18], ebx
call fcn.0042ecac
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x68]
test edx, edx
jne 0x41b353
xor ecx, ecx
jmp 0x41b36f
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x41b360
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b360
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, 0x494c4c
call fcn.00416dd0
mov edx, dword [0x494c4c]
mov eax, dword [edx - 0xc]
dec eax
js 0x41ba4b
jmp 0x41b390
mov esi, dword [edx - 0xc]
cmp eax, esi
jg 0x41ba4b
cmp word [edx + eax*2], 0x5c
je 0x41b457
mov edi, eax
dec eax
mov dword [esp + 0x20], eax
xor eax, eax
test edi, edi
cmovs edi, eax
mov ebx, 1
cmp edi, 0x7ffffffe
jg 0x41ba37
lea eax, [edi + 1]
cmp eax, esi
jle 0x41b3d4
mov ebx, esi
sub ebx, edi
test ebx, ebx
jle 0x41b446
mov eax, esi
sub esi, edi
sub esi, ebx
sub eax, ebx
inc esi
cmp dword [edx - 4], 1
mov dword [esp + 0x1c], eax
jle 0x41b3fa
push dword [edx - 0xc]
mov ecx, 0x494c4c
call fcn.00416c30
mov edx, dword [0x494c4c]
lea ecx, [esi + esi]
push ecx
lea eax, [edi + ebx]
lea eax, [edx + eax*2]
push eax
push ecx
lea eax, [edx + edi*2]
push eax
call fcn.0043de49
push eax
call fcn.00416820
mov ecx, dword [esp + 0x30]
add esp, 0x14
test ecx, ecx
js 0x41ba4b
mov eax, dword [0x494c4c]
cmp ecx, dword [eax - 8]
jg 0x41ba4b
mov dword [eax - 0xc], ecx
mov eax, dword [0x494c4c]
xor edx, edx
mov word [eax + ecx*2], dx
mov edx, dword [0x494c4c]
mov eax, dword [esp + 0x20]
test eax, eax
jns 0x41b390
jmp 0x41ba4b
call fcn.00425809
mov ecx, eax
test ecx, ecx
je 0x41ba41
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push str.MultiLanguage0x_.4x.ini
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
push 0x494c4c
push eax
call fcn.0040de20
mov ecx, dword [esp + 0x24]
add esp, 0xc
movzx ecx, cx
push ecx
push dword [eax]
lea eax, [esp + 0x1c]
push eax
call fcn.00416560
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
or ebx, 0xffffffff
add esp, 0xc
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41b4c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.MultiLanguageLanguageSet.ini
lea eax, [esp + 0x1c]
push 0x494c4c
push eax
call fcn.0040de20
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
push dword [eax]
call edi
mov edx, dword [esp + 0x18]
test eax, eax
sete byte [esp + 0x13]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b505
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [esp + 0x13], 0
je 0x41b520
mov esi, dword [esp + 0x14]
push esi
call edi
test eax, eax
jne 0x41b907
jmp 0x41b80c
lea ecx, [esp + 0x2c]
call fcn.004263dd
push str.MultiLanguageLanguageSet.ini
lea eax, [esp + 0x1c]
push 0x494c4c
push eax
call fcn.0040de20
add esp, 0xc
lea ecx, [esp + 0x2c]
push 0
push 0x8000
push dword [eax]
call fcn.004268d4
mov edx, dword [esp + 0x18]
test eax, eax
setne byte [esp + 0x13]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b576
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [esp + 0x13], 0
je 0x41b7f1
lea ecx, [esp + 0x2c]
call fcn.00426812
mov edi, eax
shrd edi, edx, 1
shr edx, 1
test edi, edi
js 0x41ba4b
mov esi, dword [esp + 0x14]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edi
or ecx, eax
jge 0x41b5bd
push edi
lea ecx, [esp + 0x18]
call fcn.00416cf0
mov esi, dword [esp + 0x14]
cmp edi, dword [esi - 8]
jg 0x41ba4b
xor eax, eax
mov dword [esi - 0xc], edi
lea ecx, [esp + 0x2c]
mov word [esi + edi*2], ax
call fcn.00426812
push eax
push esi
lea ecx, [esp + 0x34]
call fcn.00426aa7
mov eax, dword [0x494c4c]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x41b5fa
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x41b610
call fcn.00425809
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x41ba55
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov eax, dword [0x494c4c]
mov dword [esp + 0x20], edi
mov ebx, dword [eax - 0xc]
mov dword [esp + 0x18], eax
lea edx, [ebx + 0xe]
mov dword [esp + 0x1c], ebx
test edx, edx
js 0x41ba5f
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, edx
or ecx, eax
jge 0x41b656
push edx
lea ecx, [esp + 0x24]
call fcn.00416cf0
mov edi, dword [esp + 0x20]
add ebx, ebx
push ebx
push dword [esp + 0x1c]
push ebx
push edi
call fcn.0043ddca
push 0x1c
push str.MultiLanguage_
lea eax, [ebx + edi]
push 0x1c
push eax
call fcn.0043ddca
mov eax, dword [esp + 0x3c]
add eax, 0xe
add esp, 0x20
cmp eax, dword [edi - 8]
jg 0x41ba4b
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
mov ecx, dword [edi - 0x10]
lea eax, [edi - 0x10]
mov dword [esp + 0x24], eax
test ecx, ecx
je 0x41b6ab
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x41b6c1
call fcn.00425809
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x41ba69
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi - 0xc]
mov ebx, dword [edi - 0xc]
add eax, 0x10
lea edx, [ebx + ecx]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ebx
test edx, edx
js 0x41ba73
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x41b701
push edx
lea ecx, [esp + 0x24]
call fcn.00416cf0
add ebx, ebx
push ebx
push edi
mov edi, dword [esp + 0x28]
push ebx
push edi
call fcn.0043ddca
mov eax, dword [esp + 0x2c]
add eax, eax
push eax
push esi
push eax
lea eax, [ebx + edi]
push eax
call fcn.0043ddca
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x3c]
add esp, 0x20
cmp eax, dword [edi - 8]
jg 0x41ba4b
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
lea edx, [edi - 0x10]
lea ecx, [esi - 0x10]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
cmp edx, ecx
je 0x41b7a7
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x41b792
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x41b792
push edx
call fcn.00416ec0
or ebx, 0xffffffff
add esp, 4
mov edi, eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x41b785
mov esi, dword [esp + 0x18]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov edx, dword [esp + 0x1c]
lea esi, [edi + 0x10]
mov dword [esp + 0x14], esi
jmp 0x41b7aa
push dword [edi - 0xc]
lea ecx, [esp + 0x18]
push edi
call fcn.00416dd0
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
or ebx, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b7c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x24]
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b7da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x2c]
call fcn.004266a8
lea ecx, [esp + 0x2c]
call fcn.00426453
jmp 0x41b907
push 0
push 0
push 0x47d170
call fcn.0042f631
lea ecx, [esp + 0x2c]
call fcn.00426453
mov esi, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0041acd0
lea ecx, [esp + 0x48]
call fcn.00427892
mov eax, dword [esp + 0x150]
lea ebx, [esi - 0x10]
lea edi, [eax - 0x10]
cmp edi, ebx
je 0x41b8ce
cmp dword [ebx + 0xc], 0
jl 0x41b8b6
mov ecx, dword [edi]
cmp ecx, dword [ebx]
jne 0x41b8b6
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x41b861
cmp ecx, dword [edi]
jne 0x41b861
mov esi, edi
mov eax, 1
lock xadd dword [edx], eax
jmp 0x41b896
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov esi, eax
test esi, esi
je 0x41ba7d
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
lea eax, [edi + 0x10]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push ecx
lea eax, [esi + 0x10]
push eax
call fcn.0043ddca
add esp, 0x10
or eax, 0xffffffff
lea ecx, [ebx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41b8ad
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x10
mov dword [esp + 0x14], esi
jmp 0x41b8c7
push dword [eax - 0xc]
lea ecx, [esp + 0x18]
push eax
call fcn.00416dd0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x150]
lea edx, [eax - 0x10]
or ebx, 0xffffffff
mov dword [esp + 0x48], vtable.LanugageSet.0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b8f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0xdc]
call fcn.0042812a
lea ecx, [esp + 0x48]
call fcn.004273d4
cmp dword [esi - 4], 1
jle 0x41b91d
push dword [esi - 0xc]
lea ecx, [esp + 0x18]
call fcn.00416c30
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.0041ee80
test al, al
jne 0x41b93b
push 0
push 0
push 0x47d170
call fcn.0042f631
jmp 0x41b80c
push str.0d0df97Windows
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x494b70], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41b98f
mov ecx, 0x47d1c0
call fcn.0041efe0
push dword [eax]
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x41ba17
push 1
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x41ba17
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x44], 8
mov dword [esp + 0x48], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov edi, dword [esp + 0x28]
mov ecx, edi
call fcn.0043007b
push ecx
lea ecx, [esp + 0x15c]
call fcn.0041bb60
lea eax, [esp + 0x158]
mov ecx, eax
mov dword [edi + 0x20], eax
call fcn.00427892
lea ecx, [esp + 0x26c]
call fcn.0040e8e0
lea ecx, [esp + 0x1f8]
call fcn.0042812a
mov edx, dword [esp + 0x1f0]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41ba0b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x158]
call fcn.004273d4
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x41ba2e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070216
call fcn.00416fc0
push 0x80004005
call fcn.00416fc0
push 0x80070057
call fcn.00416fc0
push 0x80004005
call fcn.00416fc0
push 0x80070057
call fcn.00416fc0
push 0x80004005
call fcn.00416fc0
push 0x80070057
call fcn.00416fc0
call fcn.00416e90
int3