Function at 0x401be0
Capabilities:
Extract resource via kernel32 functions
Get geographical location
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533579
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x596908]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x44], 0
mov eax, dword [ebp + 8]
or edi, 0xffffffff
cmp dword [eax - 0xc], 0
mov dword [ebp - 4], 0
jne 0x401cb0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 9
lea eax, [ebp - 0x38]
push eax
push 0x59
push 0x400
call esi
lea ecx, [ebp - 0x38]
push 9
lea eax, [ecx + eax*2]
push eax
push 0x5a
mov ecx, 0x2d
push 0x400
mov word [eax - 2], cx
call esi
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x40]
call fcn.004010d0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00402500
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov esi, esp
push eax
call fcn.004018a0
add eax, 0x10
add esp, 4
mov ecx, ebx
mov dword [esi], eax
call fcn.00402670
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401cb0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x544c60
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x401cd7
push str.CLocaleManager::Initialize______FindResource___failed._r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor bl, bl
jmp 0x401f4b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401cf6
push str.CLocaleManager::Initialize______LoadResource___failed._r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor bl, bl
jmp 0x401f4b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x401d16
push str.CLocaleManager::Initialize______LockResource___failed._r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor bl, bl
jmp 0x401f4b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
jne 0x401d37
push str.CLocaleManager::Initialize______SizeofResource_failed._r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor bl, bl
jmp 0x401f4b
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x401d59
push str.CLocaleManager::Initialize______GlobalAlloc_failed._r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor bl, bl
jmp 0x401f4b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebx + 0x10], eax
test eax, eax
jne 0x401d82
push str.CLocaleManager::Initialize______GlobalLock_failed._r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor bl, bl
jmp 0x401f4b
push esi
push dword [ebp - 0x48]
push eax
call fcn.0051b6d0
add esp, 0xc
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x4c]
push eax
push 1
push dword [ebx + 0xc]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jns 0x401dc2
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor bl, bl
jmp 0x401f3a
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x7c]
call fcn.004011c0
lea esi, [ebx + 0x14]
push esi
push 0x544c30
push 0x17
push 0
push 0x544c20
mov byte [ebp - 4], 3
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [esi], 0
je 0x401e19
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00401320
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x44], 1
mov ecx, dword [esi]
push eax
mov byte [ebp - 4], 4
call fcn.004028c0
mov byte [ebp - 0x39], 0
test ax, ax
jne 0x401e1d
mov byte [ebp - 0x39], 1
test byte [ebp - 0x44], 1
mov dword [ebp - 4], 3
je 0x401e34
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp byte [ebp - 0x39], 0
je 0x401f2e
mov dword [ebp - 0x40], 0
mov eax, dword [esi]
lea edx, [ebp - 0x40]
mov ecx, dword [eax]
push edx
push eax
mov byte [ebp - 4], 5
call dword [ecx + 0xf0]
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x401f07
mov dword [ebp - 0x44], 0
mov ecx, dword [eax]
lea edx, [ebp - 0x44]
push edx
push eax
mov byte [ebp - 4], 6
call dword [ecx + 0x24]
push 0x544f24
lea ecx, [ebp - 0x50]
call fcn.00401030
mov edi, eax
push dword [ebp - 0x44]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.004010d0
mov esi, eax
push str.CLocaleManager::Initialize______Load_XML_Failed:
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 8
call fcn.00401030
push esi
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 9
call fcn.004015c0
push edi
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0xa
call fcn.004015c0
add esp, 0x18
lea ecx, [ebp - 0x54]
call fcn.00401360
lea ecx, [ebp - 0x5c]
call fcn.00401360
lea ecx, [ebp - 0x58]
call fcn.00401360
lea ecx, [ebp - 0x50]
call fcn.00401360
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x48]
call fcn.00401360
push dword [ebp - 0x44]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or edi, 0xffffffff
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 3
test eax, eax
je 0x401f2a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor bl, bl
jmp 0x401f30
mov bl, 1
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 0
test eax, eax
je 0x401f4b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x401f6c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051b2d8
mov esp, ebp
pop ebp
ret 4