Function at 0x470010
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cee10
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4fcb54]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push str.LanguageMap
lea ecx, [esp + 0x20]
mov byte [esp + 0x1b], 0
call fcn.00402520
lea esi, [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x30], 0
call fcn.0043ec30
or esi, 0xffffffff
mov bl, al
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470087
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x470411
push str.DefaultLangId
lea ecx, [esp + 0x24]
call fcn.00402520
mov dword [esp + 0x30], 1
mov ebx, dword [esp + 0x38]
lea ebp, [ebx + 0x1c]
push ebp
push edi
lea ecx, [esp + 0x28]
call fcn.0043eba0
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4700da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp]
cmp dword [ecx - 0xc], 0
jne 0x47012b
push str.LanguageMap_Default_ID_not_found_or_empty.
lea ecx, [esp + 0x24]
call fcn.00402520
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x34], 2
call fcn.0043e910
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x470124
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4703fb
mov ecx, edi
call fcn.0043ed90
mov ecx, ebx
call fcn.004903f3
push 0x4dfd54
lea ecx, [esp + 0x1c]
call fcn.00402520
push 0x4dfd54
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 3
call fcn.00402520
mov byte [esp + 0x30], 4
push ecx
mov eax, esp
mov dword [eax], 0x4df340
mov eax, dword [edi + 4]
call fcn.00430660
test al, al
je 0x4703a4
push 0x4df34c
lea ecx, [esp + 0x24]
call fcn.00402520
lea ecx, [esp + 0x18]
push ecx
push edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 5
call fcn.0043eba0
mov byte [esp + 0x30], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4701c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x18]
cmp dword [edx - 0xc], 0
je 0x4702a0
cmp byte [esp + 0x17], 0
jne 0x470200
mov eax, dword [ebp]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x470312
push eax
push edx
call fcn.004a30dd
add esp, 8
test eax, eax
sete al
test al, al
je 0x470200
mov byte [esp + 0x17], 1
push str.MessagesRef
lea ecx, [esp + 0x28]
call fcn.00402520
lea ecx, [esp + 0x1c]
push ecx
push edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 7
call fcn.0043eba0
mov byte [esp + 0x30], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x470244
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
cmp dword [esi - 0xc], 0
je 0x47031c
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.004905a7
test esi, esi
mov ebx, eax
jne 0x47027b
xor edx, edx
push edx
push esi
mov ecx, ebx
call fcn.00402430
mov ebx, dword [esp + 0x38]
or esi, 0xffffffff
jmp 0x470162
mov edx, esi
lea ecx, [edx + 1]
mov al, byte [edx]
add edx, 1
test al, al
jne 0x470280
sub edx, ecx
push edx
push esi
mov ecx, ebx
call fcn.00402430
mov ebx, dword [esp + 0x38]
or esi, 0xffffffff
jmp 0x470162
push str.Language_ID_not_found_or_empty.
lea ecx, [esp + 0x3c]
call fcn.00402520
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x34], 6
call fcn.0043e910
mov byte [esp + 0x30], 4
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4702e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470305
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x18]
jmp 0x47010b
push 0x80004005
call fcn.004021e0
push str.Language_MessageRef_not_found_or_empty.
lea ecx, [esp + 0x3c]
call fcn.00402520
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x34], 8
call fcn.0043e910
mov byte [esp + 0x30], 4
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47035e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470383
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x470118
mov ecx, edi
call fcn.0043ee80
mov byte [esp + 0x30], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4703cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4703f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
je 0x470415
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov ebx, dword [esp + 0x38]
push 0x4dfd54
lea ecx, [esp + 0x3c]
call fcn.00402520
mov dword [esp + 0x30], 9
mov ecx, dword [ebx + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push str.Default_language_ID__s_not_found_in_language_map.
push edx
call fcn.00404460
add esp, 0xc
lea eax, [esp + 0x38]
push eax
call fcn.0043e910
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x38]
jmp 0x47010b