Function at 0x402090
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533620
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x596908]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x3c], 0
push str._tmx_body_tu__tuid
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.00401030
push str.__tuv__xml:lang
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00401030
push str.__seg
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00401030
mov byte [ebp - 4], 3
call fcn.00406e4e
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40211a
push 0x80004005
call fcn.00401840
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
xor esi, esi
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00401460
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00401740
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00401740
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00401740
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00401740
mov edi, dword [ebp - 0x10]
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push edi
call fcn.00401280
mov ecx, dword [ebx + 0x14]
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 6
call fcn.00401ae0
mov ecx, dword [eax]
mov byte [ebp - 4], 7
test ecx, ecx
jne 0x4021ab
push 0x80004003
call fcn.00533150
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 8
call fcn.00402920
mov ebx, dword [eax]
test ebx, ebx
je 0x4021c9
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov esi, ebx
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4021d6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 5
test eax, eax
je 0x4021e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
je 0x40225e
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00401b30
mov ebx, dword [eax]
mov byte [ebp - 4], 9
test ebx, ebx
je 0x402224
mov eax, dword [ebx]
test eax, eax
je 0x402224
push eax
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push dword [ebx]
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
test eax, eax
jne 0x402226
push 0x8007000e
call fcn.00533150
xor eax, eax
mov ebx, dword [ebp + 8]
push eax
mov ecx, ebx
call fcn.004010d0
lea ecx, [ebp - 0x2c]
call fcn.004013f0
mov eax, dword [esi]
push esi
mov byte [ebp - 4], 4
call dword [eax + 8]
add edi, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 3
lea ecx, [edi + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jmp 0x40245c
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401460
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00401740
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00401740
mov ebx, dword [ebp - 0x30]
lea ecx, [ebp - 0x10]
mov eax, dword [ebx + 4]
push dword [eax - 0xc]
push eax
call fcn.00401740
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00401740
mov edi, dword [ebp - 0x10]
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push edi
call fcn.00401280
mov ecx, dword [ebx + 0x14]
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0xa
call fcn.00401ae0
mov ecx, dword [eax]
mov byte [ebp - 4], 0xb
test ecx, ecx
jne 0x4022dc
push 0x80004003
call fcn.00533150
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0xc
call fcn.00402920
mov ebx, dword [eax]
test ebx, ebx
je 0x4022fa
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov esi, ebx
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x402307
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 5
test eax, eax
je 0x402318
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test esi, esi
je 0x40236a
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
call fcn.00401b30
mov ebx, dword [eax]
mov byte [ebp - 4], 0xd
test ebx, ebx
je 0x402355
mov eax, dword [ebx]
test eax, eax
je 0x402355
push eax
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push dword [ebx]
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
test eax, eax
jne 0x402357
push 0x8007000e
call fcn.00533150
xor eax, eax
mov ebx, dword [ebp + 8]
push eax
mov ecx, ebx
call fcn.004010d0
lea ecx, [ebp - 0x30]
jmp 0x402234
push str._not_found___Defaulting_to_English._r_n
lea ecx, [ebp - 0x38]
call fcn.00401030
mov esi, eax
push str.CLocaleManager::LookUpLocalString_____
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xe
call fcn.00401030
lea ecx, [ebp + 0xc]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0xf
call fcn.004015c0
push esi
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 0x10
call fcn.004015c0
add esp, 0x18
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 0x12
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4023d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x13
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4023f1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x14
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402411
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, dword [ebp + 8]
push 0x544fe0
mov ecx, ebx
call fcn.00401030
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402449
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edi + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402466
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402486
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4024a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4024c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 0xc]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4024e7
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8