Function at 0x40b911
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x465c14]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x458], ebx
test esi, esi
je 0x40bc5b
cmp byte [esi], bl
je 0x40bc5b
and dword [ebp - 0x478], ebx
mov dword [ebp - 0x47c], 0xc
mov dword [ebp - 0x474], 1
call fcn.00402afa
push eax
push ebx
lea eax, [ebp - 0x47c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x45c], eax
test eax, eax
jne 0x40b992
push str.ERROR:_Failed_to_create_list_mutex_in_parseLangXml___n
call fcn.0040bc72
pop ecx
jmp 0x40bc57
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1388
push eax
call edi
cmp eax, 0x80
jne 0x40b9b5
push 0x1388
push dword [ebp - 0x45c]
call edi
test eax, eax
je 0x40b9c9
push str.ERROR:_Failed_to_obtain_list_mutex_in_parseLangXml___n
call fcn.0040bc72
pop ecx
jmp 0x40bc4a
push 0x44d8a4
push esi
call fcn.00425ef0
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x40ba63
push 0x44d0d0
push esi
call fcn.00425ef0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40ba63
sub edi, ebx
lea eax, [ebp - 0x454]
push edi
push ebx
push eax
call fcn.0042d450
add esp, 0xc
cmp edi, 0x400
jae 0x40bc6c
lea eax, [ebp - 0x454]
mov byte [ebp + edi - 0x454], 0
push str.encoding_
push eax
call fcn.00425ef0
pop ecx
pop ecx
test eax, eax
je 0x40ba4f
add eax, 0xa
push 0x44d160
push eax
call fcn.00425ef0
pop ecx
pop ecx
test eax, eax
je 0x40ba4f
mov dword [0x467fb8], 1
push dword [0x465518]
push esi
call fcn.00425ef0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x40ba6b
push 0xfffffffffffffffe
pop ebx
jmp 0x40bc3e
mov ecx, dword [str._Translation]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ba74
push dword [0x465520]
sub ecx, edx
add esi, ecx
push esi
call fcn.00425ef0
push dword [0x46551c]
mov edi, eax
push esi
mov dword [ebp - 0x470], edi
call fcn.00425ef0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x40bc38
test edi, edi
je 0x40bab8
cmp ebx, edi
jae 0x40bc38
mov edx, dword [str._XlateString]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bac3
sub ecx, esi
add ebx, ecx
push edx
push ebx
mov dword [ebp - 0x464], ebx
call fcn.00425ef0
mov esi, eax
mov eax, dword [str.ID_]
mov dword [ebp - 0x54], eax
mov al, byte [0x44d97c]
mov byte [ebp - 0x50], al
lea eax, [ebp - 0x54]
push eax
push ebx
mov dword [ebp - 0x460], esi
call fcn.00425ef0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x40bb23
test esi, esi
je 0x40bb12
cmp ebx, esi
jb 0x40bb12
xor ebx, ebx
jmp 0x40bb23
lea ecx, [ebp - 0x54]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bb18
sub ecx, edx
add ebx, ecx
mov esi, str.Translation_
lea edi, [ebp - 0x54]
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x464]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00425ef0
mov edi, dword [ebp - 0x460]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40bb6a
test edi, edi
je 0x40bb59
cmp esi, edi
jb 0x40bb59
xor esi, esi
jmp 0x40bb6a
lea ecx, [ebp - 0x54]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bb5f
sub ecx, edx
add esi, ecx
test ebx, ebx
je 0x40bc13
test esi, esi
je 0x40bc13
lea eax, [ebp - 0x46c]
push eax
push 0x44d990
push ebx
call fcn.0040be86
add esp, 0xc
cmp eax, 1
je 0x40bba3
push str.ERROR:_parseLangXml___XlateString_entry_is_missing_its_ID_attribute._n
call fcn.0040bc72
jmp 0x40bc27
push 0x22
push esi
call fcn.00425dc0
pop ecx
pop ecx
test eax, eax
je 0x40bc0c
mov ecx, esi
mov byte [eax], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bbb9
sub ecx, edx
lea ebx, [ecx + 0x10]
push ebx
push 1
call fcn.0042dfca
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x40bbe3
push ebx
push str.ERROR:_parseLangXml___Unable_to_allocate__d_bytes_of_memory_for_XlateString_entry._n
call fcn.0040bc72
pop ecx
jmp 0x40bc27
mov edx, dword [ebp - 0x468]
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [ebp - 0x46c]
mov dword [edx], ecx
lea edx, [ecx + 0xc]
mov dword [ecx + 8], edx
sub edx, esi
mov dword [ecx + 4], eax
mov al, byte [esi]
mov byte [edx + esi], al
inc esi
test al, al
jne 0x40bc00
jmp 0x40bc28
push str.ERROR:_parseLangXml___XlateString_entry_is_missing_its_translation_attribute._n
jmp 0x40bb99
push str.ERROR:_parseLangXml___XlateString_entry_is_missing_a_required_attribute._n
call fcn.0040bc72
mov dword [ebp - 0x458], 1
pop ecx
mov ebx, edi
test edi, edi
mov edi, dword [ebp - 0x470]
jne 0x40baac
mov ebx, dword [ebp - 0x458]
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
jmp 0x40bc5e
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042345f
leave
ret
call fcn.0042396c
int3