Function at 0x51d5ac
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1fc
mov eax, dword [0x816078]
xor eax, esp
mov dword [esp + 0x1f8], eax
push ebx
push esi
xor ebx, ebx
mov esi, ebx
mov dword [esp + 0xc], ebx
push edi
mov edi, edx
mov edx, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x1c], ebx
cmp dword [0x8328c4], ebx
jne 0x51d5f6
xor ecx, ecx
mov esi, 0x8ff000ff
inc ecx
jmp 0x51da6e
test edi, edi
jne 0x51d607
push 2
mov esi, 0x80004005
pop ecx
jmp 0x51da6e
test edx, edx
jne 0x51d64a
push 0x55
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLocaleName]
test eax, eax
jne 0x51d62c
push 3
mov esi, 0x80004005
pop ecx
jmp 0x51da6a
lea ecx, [esp + 0x150]
push ebx
push dword [ebp + 0xc]
mov edx, edi
push dword [ebp + 8]
call fcn.0051d5ac
mov esi, eax
mov ecx, ebx
jmp 0x51da53
push 0x767720
push edx
call fcn.0067239c
pop ecx
pop ecx
test eax, eax
jne 0x51d6a1
push 0x55
lea eax, [esp + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLocaleName]
test eax, eax
je 0x51d690
lea eax, [esp + 0xa0]
push 0x767720
push eax
call fcn.0067239c
pop ecx
pop ecx
test eax, eax
je 0x51d690
lea ecx, [esp + 0xa0]
jmp 0x51d633
push 4
pop ecx
mov esi, 0x80004005
mov dword [esp + 0x10], ecx
jmp 0x51da53
push str.x_none
push dword [esp + 0x10]
call fcn.0067239c
pop ecx
pop ecx
test eax, eax
jne 0x51d6bc
mov dword [edi], ebx
jmp 0x51da57
push 0x6d92dc
push dword [esp + 0x10]
call fcn.0067239c
pop ecx
pop ecx
test eax, eax
jne 0x51d6db
mov dword [edi], 1
jmp 0x51da57
cmp dword [0x8328dc], ebx
jne 0x51d6ea
call fcn.0051bac7
mov esi, eax
test esi, esi
js 0x51da68
mov ecx, dword [esp + 0xc]
or dword [edi], 0xffffffff
call fcn.0051a952
mov ecx, eax
cmp ecx, dword [0x8328d8]
jae 0x51d73e
push 5
pop eax
mov dword [edi], ecx
mov dword [esp + 0x10], eax
call fcn.0051a459
test dword [eax + 0xc], 0x4000000
je 0x51da50
mov ecx, dword [esp + 0xc]
mov edx, edi
push 8
pop eax
mov dword [esp + 0x10], eax
call fcn.0051b343
mov esi, eax
push 8
jmp 0x51da52
mov ecx, dword [esp + 0xc]
call fcn.0051a9de
mov edx, eax
test edx, edx
je 0x51d788
mov ecx, dword [edx + 8]
mov dword [esp + 0x10], ecx
cmp byte [ebp + 8], bl
jne 0x51d76b
cmp ecx, 6
jne 0x51d76b
or dword [edi], 0xffffffff
mov esi, 0x80004005
jmp 0x51da6a
cmp byte [ebp + 0xc], bl
jne 0x51d775
cmp ecx, 7
je 0x51d75e
mov eax, dword [edx + 4]
mov esi, dword [edx]
mov dword [edi], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x1c], eax
jmp 0x51da53
cmp byte [ebp + 8], bl
je 0x51d9f0
mov esi, ebx
cmp dword [0x832910], ebx
jne 0x51d7a6
call fcn.0051e48b
mov esi, eax
test esi, esi
js 0x51d7ec
mov eax, ebx
mov dword [esp + 0x14], ebx
cmp dword [0x83290c], eax
jbe 0x51d7df
mov edx, dword [0x832910]
mov ecx, dword [esp + 0xc]
mov edx, dword [edx + eax*8]
call fcn.00518a81
test eax, eax
je 0x51d9b0
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [0x83290c]
jb 0x51d7b4
mov esi, 0x80004005
test esi, esi
jns 0x51d9f0
mov eax, dword [esp + 0xc]
cmp word [eax], bx
je 0x51d82a
cmp word [eax + 2], bx
je 0x51d82a
mov esi, ebx
cmp dword [0x8328e4], ebx
jne 0x51d810
call fcn.0051b93f
mov esi, eax
mov eax, dword [esp + 0xc]
test esi, esi
js 0x51d832
mov edx, edi
mov ecx, eax
call fcn.0051b343
mov esi, eax
test esi, esi
js 0x51d832
push 8
pop eax
mov dword [esp + 0x10], eax
test esi, esi
jns 0x51d9f0
xor eax, eax
lea edi, [esp + 0x54]
stosd dword es:[edi], eax
lea edx, [esp + 0x54]
push ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
lea edi, [esp + 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
lea edi, [esp + 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
lea edi, [esp + 0x6c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x6c]
push eax
push ecx
lea eax, [esp + 0x38]
push eax
push ecx
lea eax, [esp + 0x54]
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0051d35c
test al, al
je 0x51d9ec
lea edx, [esp + 0x54]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x51d891
sub edx, ecx
sar edx, 1
je 0x51d9ec
lea ecx, [esp + 0x40]
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x51d8ad
sub ecx, edi
sar ecx, 1
je 0x51d9ec
push 9
pop ecx
xor eax, eax
lea edi, [esp + 0x7c]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x84]
push 0x12
push eax
call fcn.006708b9
lea ecx, [esp + 0x3c]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x51d8ec
sub ecx, edx
sar ecx, 1
je 0x51d944
push 1
push 0x768808
lea eax, [esp + 0x84]
push 0x12
push eax
call fcn.0067b2c2
lea ecx, [esp + 0x3c]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x51d91d
sub ecx, edx
lea eax, [esp + 0x2c]
sar ecx, 1
push ecx
push eax
lea eax, [esp + 0x84]
push 0x12
push eax
call fcn.0067b2c2
add esp, 0x10
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x7c]
push ebx
push ebx
push ebx
mov edx, edi
call fcn.0051d5ac
mov esi, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
test esi, esi
js 0x51d9a6
cmp dword [edi], 0xffffffff
je 0x51d9a6
cmp dword [edi], ebx
je 0x51d9a6
cmp dword [edi], 1
je 0x51d9a6
lea edx, [esp + 0x14]
lea ecx, [esp + 0x40]
call fcn.0051cef1
test eax, eax
js 0x51d9a6
mov ecx, dword [edi]
lea edx, [esp + 0x18]
call fcn.0051e647
test eax, eax
js 0x51d9a6
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x14], eax
je 0x51d9f0
cmp dword [esp + 0x14], ebx
je 0x51d9f0
test eax, eax
je 0x51d9f0
or dword [edi], 0xffffffff
mov esi, 0x80004005
jmp 0x51d9f0
mov eax, dword [0x832910]
mov ecx, dword [esp + 0x14]
lea ecx, [eax + ecx*8]
test ecx, ecx
je 0x51d7df
mov eax, dword [ecx + 4]
mov dword [edi], eax
mov ecx, dword [ecx + 4]
push 6
pop eax
mov dword [esp + 0x10], eax
call fcn.0051a459
test eax, eax
je 0x51d7e4
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
jmp 0x51d7e4
mov edi, dword [esp + 0x18]
cmp byte [ebp + 0xc], bl
je 0x51da25
cmp dword [edi], 0xffffffff
jne 0x51da25
mov esi, ebx
cmp dword [0x8328ec], ebx
jne 0x51da0b
call fcn.0051b8c5
mov esi, eax
test esi, esi
js 0x51da25
mov ecx, dword [esp + 0xc]
mov edx, edi
call fcn.0051dd35
push 7
pop ecx
mov esi, eax
mov dword [esp + 0x10], ecx
jmp 0x51da29
mov ecx, dword [esp + 0x10]
cmp dword [edi], 0xffffffff
jne 0x51da38
cmp byte [ebp + 8], bl
je 0x51da53
cmp byte [ebp + 0xc], bl
je 0x51da53
push dword [esp + 0x1c]
mov edx, dword [edi]
push dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0051aab0
mov ecx, dword [esp + 0x10]
jmp 0x51da53
push 5
pop ecx
test esi, esi
js 0x51da6a
cmp dword [edi], 0xffffffff
mov eax, 0x80004005
mov ecx, dword [esp + 0x10]
cmove esi, eax
jmp 0x51da6a
mov ecx, ebx
mov edx, dword [esp + 0xc]
cmp byte [ebp + 0x10], bl
je 0x51db43
test esi, esi
js 0x51da89
cmp ecx, 6
je 0x51da89
cmp ecx, 7
jne 0x51db43
mov eax, esi
cmp esi, 0x8ff000ff
jne 0x51daaf
mov dword [esp + 0x14], eax
mov edx, esi
mov eax, dword [0x817f50]
test eax, eax
cmovs edx, eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
test edi, edi
je 0x51dab5
mov ebx, dword [edi]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x24], vtable.Mso::Logging::StructuredObject_wchar_t_const___1_.0
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x2c], str.wzAliasTag
push eax
lea eax, [esp + 0x60]
mov dword [esp + 0x34], edi
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x78], vtable.Mso::Logging::StructuredObject_wchar_t_const___1_.0
push eax
push ecx
push ecx
mov dword [esp + 0x88], str.wzTag
mov dword [esp + 0x8c], edx
mov dword [esp + 0x5c], 0x6dbdb4
mov dword [esp + 0x60], str.phCulture
mov dword [esp + 0x64], ebx
mov dword [esp + 0x70], 0x6dbf5c
mov dword [esp + 0x74], str.HResult
mov dword [esp + 0x48], 0x6dbe44
mov dword [esp + 0x4c], str.ResultOrigin
mov dword [esp + 0x50], ecx
call fcn.0051e8ec
mov ecx, dword [esp + 0x204]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0064c681
mov esp, ebp
pop ebp
ret 0xc