Function at 0x4d2c60
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x30
mov eax, dword [0x7af6e0]
test eax, eax
je 0x4d36a0
lea ecx, [ebp - 0x18]
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
mov ebx, dword fs:[0x18]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 1
call eax
sub esp, 0x10
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x1adf
xor eax, eax
test edi, edi
sete al
mov dword [esp + 4], str.Expected_GetUserPreferredUILanguages_to_fail_n
mov dword [esp], eax
call fcn.004b46e0
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x1ae0
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.Expected_error_ERROR_INVALID_PARAMETER__got__ld_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebx + 0x34], 0x57
sete al
mov dword [esp], eax
call fcn.004b46e0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 5
call dword [0x7af6e0]
sub esp, 0x10
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x1ae6
xor eax, eax
test edi, edi
sete al
mov dword [esp + 4], str.Expected_GetUserPreferredUILanguages_to_fail_n
mov dword [esp], eax
call fcn.004b46e0
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x1ae7
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.Expected_error_ERROR_INVALID_PARAMETER__got__ld_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebx + 0x34], 0x57
sete al
mov dword [esp], eax
call fcn.004b46e0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0x404
call dword [0x7af6e0]
sub esp, 0x10
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x1aed
xor eax, eax
test edi, edi
sete al
mov dword [esp + 4], str.Expected_GetUserPreferredUILanguages_to_fail_n
mov dword [esp], eax
call fcn.004b46e0
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x1aee
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.Expected_error_ERROR_INVALID_PARAMETER__got__ld_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebx + 0x34], 0x57
sete al
mov dword [esp], eax
call fcn.004b46e0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 4
call dword [0x7af6e0]
sub esp, 0x10
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x1af4
xor eax, eax
test edi, edi
lea edi, [ebp - 0x14]
sete al
mov dword [esp + 4], str.Expected_GetUserPreferredUILanguages_to_fail_n
mov dword [esp], eax
call fcn.004b46e0
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x1af5
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.Expected_error_ERROR_INVALID_PARAMETER__got__ld_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebx + 0x34], 0x57
sete al
mov dword [esp], eax
call fcn.004b46e0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 4
call dword [0x7af6e0]
sub esp, 0x10
mov dword [ebp - 0x20], eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x1afc
mov dword [esp + 4], str.Expected_GetUserPreferredUILanguages_to_succeed_n
mov edx, dword [ebp - 0x20]
mov dword [esp], edx
call fcn.004b46e0
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x1afd
mov dword [esp + 4], str.Expected_count___0_n
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.004b46e0
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x1afe
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], str.Expected_size___ld_____5__1_n
mov dword [esp + 8], eax
imul eax, eax, 0xcccccccd
add eax, 0x33333333
cmp eax, 0x33333332
setbe al
movzx eax, al
mov dword [esp], eax
call fcn.004b46e0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 8
call dword [0x7af6e0]
sub esp, 0x10
mov dword [ebp - 0x20], eax
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x1b04
mov dword [esp + 4], str.Expected_GetUserPreferredUILanguages_to_succeed_n
mov edx, dword [ebp - 0x20]
mov dword [esp], edx
call fcn.004b46e0
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x1b05
mov dword [esp + 4], str.Expected_count___0_n
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.004b46e0
call fcn.0057d110
mov dword [eax], 0x5d8897
mov dword [eax + 4], 0x1b06
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], str.Expected_size___ld_____6__1_n
mov dword [esp + 8], eax
imul eax, eax, 0xaaaaaaab
add eax, 0x55555555
ror eax, 1
cmp eax, 0x2aaaaaaa
setbe al
movzx eax, al
mov dword [esp], eax
call fcn.004b46e0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp edx, eax
cmovae eax, edx
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4d3680
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 4
call dword [0x7af688]
sub esp, 0x14
mov edi, eax
mov eax, 0x1b14
call fcn.004b3be0
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], 0x5d910c
mov dword [esp], eax
call fcn.004b46e0
mov eax, 0x1b15
call fcn.004b3be0
mov dword [esp + 4], str.Expected_count___0_n
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.004b46e0
mov eax, 0x1b16
call fcn.004b3be0
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], str.Expected_size___ld_____5__1_n
mov dword [esp + 8], eax
imul eax, eax, 0xcccccccd
add eax, 0x33333333
cmp eax, 0x33333332
setbe al
movzx eax, al
mov dword [esp], eax
call fcn.004b46e0
mov eax, dword [ebp - 0x20]
add eax, eax
mov dword [ebp - 0x24], eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], 0
mov edi, eax
mov eax, dword [ebp - 0x24]
sub esp, 0xc
mov dword [ebp - 0x18], ecx
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll_memset]
mov dword [esp + 4], 0x5a
mov dword [esp], edi
mov dword [ebp - 0x28], eax
call eax
lea eax, [ebp - 0x18]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], 0
call dword [0x7af6e0]
sub esp, 0x10
mov ebx, eax
mov eax, 0x1b1f
call fcn.004b3be0
mov dword [esp + 4], str.Expected_GetUserPreferredUILanguages_to_succeed_n
mov dword [esp], ebx
call fcn.004b46e0
mov eax, 0x1b20
call fcn.004b3be0
mov dword [esp + 4], str.Expected_count___0_n
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.004b46e0
mov eax, 0x1b21
call fcn.004b3be0
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], str.Expected_size___ld_____6__1_n
mov dword [esp + 8], eax
imul eax, eax, 0xaaaaaaab
add eax, 0x55555555
ror eax, 1
cmp eax, 0x2aaaaaaa
setbe al
movzx eax, al
mov dword [esp], eax
call fcn.004b46e0
test ebx, ebx
je 0x4d3212
imul eax, dword [ebp - 0x18], 0xaaaaaaab
add eax, 0x55555555
ror eax, 1
cmp eax, 0x2aaaaaaa
jbe 0x4d35e0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], 0x5a
mov dword [esp + 8], eax
mov dword [esp], edi
mov eax, dword [ebp - 0x28]
call eax
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0xdeadbeef
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], 4
call dword [0x7af6e0]
sub esp, 0x10
mov ebx, eax
mov eax, 0x1b2c
call fcn.004b3be0
mov dword [esp + 4], str.Expected_GetUserPreferredUILanguages_to_succeed_n
mov dword [esp], ebx
call fcn.004b46e0
mov eax, 0x1b2d
call fcn.004b3be0
mov dword [esp + 4], str.Expected_count___0_n
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.004b46e0
mov eax, 0x1b2e
call fcn.004b3be0
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], str.Expected_size___ld_____5__1_n
mov dword [esp + 8], eax
imul eax, eax, 0xcccccccd
add eax, 0x33333333
cmp eax, 0x33333332
setbe al
movzx eax, al
mov dword [esp], eax
call fcn.004b46e0
test ebx, ebx
je 0x4d32e8
imul eax, dword [ebp - 0x18], 0xcccccccd
cmp eax, 0xcccccccd
jae 0x4d3630
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0xdeadbeef
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], 8
call dword [0x7af6e0]
sub esp, 0x10
mov ebx, eax
mov eax, 0x1b38
call fcn.004b3be0
mov dword [esp + 4], str.Expected_GetUserPreferredUILanguages_to_succeed_n
mov dword [esp], ebx
call fcn.004b46e0
mov eax, 0x1b39
call fcn.004b3be0
mov dword [esp + 4], str.Expected_count___0_n
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.004b46e0
mov eax, 0x1b3a
call fcn.004b3be0
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], str.Expected_size___ld_____6__1_n
mov dword [esp + 8], eax
imul eax, eax, 0xaaaaaaab
add eax, 0x55555555
ror eax, 1
cmp eax, 0x2aaaaaaa
setbe al
movzx eax, al
mov dword [esp], eax
call fcn.004b46e0
test ebx, ebx
jne 0x4d3580
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
mov ebx, dword fs:[0x18]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp], 4
call dword [0x7af6e0]
sub esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, 0x1b43
call fcn.004b3be0
mov dword [esp + 4], str.Expected_GetUserPreferredUILanguages_to_fail_n
mov edx, dword [ebp - 0x20]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.004b46e0
mov eax, 0x1b44
call fcn.004b3be0
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.Expected_error_ERROR_INSUFFICIENT_BUFFER__got__ld_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebx + 0x34], 0x7a
sete al
mov dword [esp], eax
call fcn.004b46e0
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], 0x5a
mov dword [esp + 8], eax
mov dword [esp], edi
mov ecx, dword [ebp - 0x28]
call ecx
lea edx, [ebp - 0x18]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp], 4
call dword [0x7af6e0]
sub esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, 0x1b4b
call fcn.004b3be0
mov dword [esp + 4], str.Expected_GetUserPreferredUILanguages_to_fail_n
mov edx, dword [ebp - 0x20]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
call fcn.004b46e0
mov eax, 0x1b4c
call fcn.004b3be0
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.Expected_error_ERROR_INSUFFICIENT_BUFFER__got__ld_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebx + 0x34], 0x7a
sete al
mov dword [esp], eax
call fcn.004b46e0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0
lea eax, [edx - 2]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], 0x5a
mov dword [esp + 8], eax
mov dword [esp], edi
mov ecx, dword [ebp - 0x28]
call ecx
lea eax, [ebp - 0x18]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp], 0
call dword [0x7af6e0]
sub esp, 0x10
mov esi, eax
mov eax, 0x1b54
call fcn.004b3be0
xor eax, eax
test esi, esi
mov dword [esp + 4], str.Expected_GetUserPreferredUILanguages_to_fail_n
sete al
mov dword [esp], eax
call fcn.004b46e0
mov eax, 0x1b55
call fcn.004b3be0
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.Expected_error_ERROR_INSUFFICIENT_BUFFER__got__ld_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [ebx + 0x34], 0x7a
sete al
mov dword [esp], eax
call fcn.004b46e0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
imul eax, dword [ebp - 0x18], 0xcccccccd
cmp eax, 0xcccccccd
jb 0x4d339b
mov eax, 0x1b3c
call fcn.004b3be0
mov eax, dword [ebp - 0x18]
add eax, 0x7fffffff
movzx ecx, word [edi + eax*2]
movzx eax, word [edi + eax*2 - 2]
mov dword [esp + 4], str.Expected_last_two_WCHARs_being_empty__got_0x_x_0x_x_n
mov edx, ecx
mov dword [esp + 0xc], ecx
movzx ecx, ax
or ax, dx
mov dword [esp + 8], ecx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004b46e0
jmp 0x4d339b
mov eax, 0x1b23
call fcn.004b3be0
mov eax, dword [ebp - 0x18]
add eax, 0x7fffffff
movzx ecx, word [edi + eax*2]
movzx eax, word [edi + eax*2 - 2]
mov dword [esp + 4], str.Expected_last_two_WCHARs_being_empty__got_0x_x_0x_x_n
mov edx, ecx
mov dword [esp + 0xc], ecx
movzx ecx, ax
or ax, dx
mov dword [esp + 8], ecx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004b46e0
jmp 0x4d3212
mov eax, 0x1b30
call fcn.004b3be0
mov eax, dword [ebp - 0x18]
add eax, 0x7fffffff
movzx ecx, word [edi + eax*2]
movzx eax, word [edi + eax*2 - 2]
mov dword [esp + 4], str.Expected_last_two_WCHARs_being_empty__got_0x_x_0x_x_n
mov edx, ecx
mov dword [esp + 0xc], ecx
movzx ecx, ax
or ax, dx
mov dword [esp + 8], ecx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004b46e0
jmp 0x4d32e8
mov eax, 0x1b0b
call fcn.004b3be0
mov dword [esp], str.No_valid_buffer_size_n
call fcn.004b4030
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x1ad8
call fcn.004b3be0
mov dword [esp], str.GetUserPreferredUILanguages_is_not_available._n
call fcn.004b46b0
jmp 0x4d356f