Function at 0x50d5a0
Capabilities:
Access peb ldr_data
Get geographical location
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x50d5a8
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x50da23
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xff
mov eax, dword [ebp - 8]
call fcn.004030c8
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50da01
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 2
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x1001
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebx + 8]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 3
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebx + 0xc]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 5
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 6
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebx + 0x14]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 7
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebx + 0x18]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0xc
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebx + 0x1c]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0xd
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 0x10]
movzx edx, word [eax]
lea eax, [ebp - 0xc]
call fcn.004063c8
mov eax, dword [ebp - 0xc]
call fcn.0040cfac
mov byte [ebx + 0x50], al
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0xe
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebx + 0x20]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x11
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x14
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebx + 0x28]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x15
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x16
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebx + 0x30]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x17
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebx + 0x34]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x19
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebx + 0x38]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x1b
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 0x18]
movzx edx, word [eax]
lea eax, [ebp - 0x14]
call fcn.004063c8
mov eax, dword [ebp - 0x14]
call fcn.0040cfac
mov byte [ebx + 0x51], al
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x1c
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
movzx eax, byte [0x50da30]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 0x24]
movzx edx, word [eax]
lea eax, [ebp - 0x20]
call fcn.004063c8
mov eax, dword [ebp - 0x20]
call fcn.0040cfac
mov eax, dword [eax*4 + 0x538abc]
mov ecx, dword [ebx + 0x28]
mov edx, 0x50da40
call fcn.004139a0
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x3c]
call fcn.0040625c
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x1d
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebx + 0x40]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x1e
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebx + 0x44]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x1003
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebx + 0x48]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x1f
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebx + 0x4c]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x20
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebx + 0x58]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x21
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 0x2c]
movzx edx, word [eax]
lea eax, [ebp - 0x28]
call fcn.004063c8
mov eax, dword [ebp - 0x28]
call fcn.0040cfac
mov byte [ebx + 0x52], al
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x22
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 0x34]
movzx edx, word [eax]
lea eax, [ebp - 0x30]
call fcn.004063c8
mov eax, dword [ebp - 0x30]
call fcn.0040cfac
mov byte [ebx + 0x53], al
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x23
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 0x3c]
movzx edx, word [eax]
lea eax, [ebp - 0x38]
call fcn.004063c8
mov eax, dword [ebp - 0x38]
call fcn.0040cfac
mov byte [ebx + 0x54], al
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x24
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 4]
call fcn.00406408
mov eax, dword [ebp - 0x44]
movzx edx, word [eax]
lea eax, [ebp - 0x40]
call fcn.004063c8
mov eax, dword [ebp - 0x40]
call fcn.0040cfac
mov byte [ebx + 0x55], al
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0xf
mov eax, dword [ebx + 0x5c]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebx + 0x60]
mov edx, dword [ebp - 4]
call fcn.00406408
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50da08
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004030e4
ret