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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1fc
mov eax, dword [0x4ad15c]
xor eax, esp
mov dword [esp + 0x1f8], eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, edx
mov esi, edi
mov dword [esp + 0x10], edi
mov edx, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0xc], edx
cmp dword [0x4d28f0], esi
jne 0x411b03
xor ecx, ecx
mov esi, 0x8ff000ff
inc ecx
jmp 0x411f7b
test ebx, ebx
jne 0x411b14
push 2
mov esi, 0x80004005
pop ecx
jmp 0x411f7b
test edx, edx
jne 0x411b57
push 0x55
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLocaleName]
test eax, eax
jne 0x411b39
push 3
mov esi, 0x80004005
pop ecx
jmp 0x411f77
lea ecx, [esp + 0x150]
push edi
push dword [ebp + 0xc]
mov edx, ebx
push dword [ebp + 8]
call fcn.00411abd
mov esi, eax
mov ecx, edi
jmp 0x411f60
xor eax, eax
mov ecx, str._x_sys_default_locale
cmp eax, ecx
je 0x411bbf
push ecx
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x411bbb
push 0x55
lea eax, [esp + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLocaleName]
test eax, eax
je 0x411baa
lea eax, [esp + 0xa0]
test eax, eax
je 0x411ba1
push str._x_sys_default_locale
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x411baa
lea ecx, [esp + 0xa0]
jmp 0x411b40
push 4
pop ecx
mov esi, 0x80004005
mov dword [esp + 0x10], ecx
jmp 0x411f60
mov edx, dword [esp + 0xc]
xor eax, eax
mov ecx, str.x_none
cmp eax, ecx
je 0x411bdf
push ecx
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x411bdf
mov dword [ebx], edi
jmp 0x411f64
xor eax, eax
mov ecx, 0x4808b8
cmp eax, ecx
je 0x411c06
push ecx
push dword [esp + 0x10]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x411c06
mov dword [ebx], 1
jmp 0x411f64
cmp dword [0x4d28d4], esi
jne 0x411c15
call fcn.0040fedd
mov esi, eax
test esi, esi
js 0x411f75
mov ecx, dword [esp + 0xc]
or dword [ebx], 0xffffffff
call fcn.0040ee2d
mov ecx, eax
cmp ecx, dword [0x4d28d0]
jae 0x411c69
push 5
pop eax
mov dword [ebx], ecx
mov dword [esp + 0x10], eax
call fcn.0041324d
test dword [eax + 0xc], 0x4000000
je 0x411f5d
mov ecx, dword [esp + 0xc]
mov edx, ebx
push 8
pop eax
mov dword [esp + 0x10], eax
call fcn.0040f7c4
mov esi, eax
push 8
jmp 0x411f5f
mov ecx, dword [esp + 0xc]
call fcn.0040eeba
mov edx, eax
test edx, edx
je 0x411cb5
cmp byte [ebp + 8], 0
mov ecx, dword [edx + 8]
mov dword [esp + 0x10], ecx
jne 0x411c97
cmp ecx, 6
jne 0x411c97
or dword [ebx], 0xffffffff
mov esi, 0x80004005
jmp 0x411f77
cmp byte [ebp + 0xc], 0
jne 0x411ca2
cmp ecx, 7
je 0x411c8a
mov eax, dword [edx + 4]
mov esi, dword [edx]
mov dword [ebx], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x1c], eax
jmp 0x411f60
cmp byte [ebp + 8], 0
je 0x411ef9
mov esi, edi
cmp dword [0x4d2890], esi
jne 0x411cd4
call fcn.004129a8
mov esi, eax
test esi, esi
js 0x411d16
mov eax, edi
mov dword [esp + 0x14], edi
cmp dword [0x4d288c], eax
jbe 0x411d09
mov edx, dword [0x4d2890]
mov ecx, dword [esp + 0xc]
mov edx, dword [edx + eax*8]
call fcn.00413325
test eax, eax
je 0x411d48
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [0x4d288c]
jb 0x411ce2
mov esi, 0x80004005
test esi, esi
jns 0x411ef9
mov esi, edi
cmp dword [0x4d28b8], esi
jne 0x411d27
call fcn.0040fd81
mov esi, eax
test esi, esi
js 0x411d79
mov ecx, dword [esp + 0xc]
mov edx, ebx
call fcn.0040f7c4
mov esi, eax
test esi, esi
js 0x411d79
push 8
pop eax
mov dword [esp + 0x10], eax
jmp 0x411ef9
mov eax, dword [0x4d2890]
mov ecx, dword [esp + 0x14]
lea ecx, [eax + ecx*8]
test ecx, ecx
je 0x411d09
mov eax, dword [ecx + 4]
mov dword [ebx], eax
mov ecx, dword [ecx + 4]
push 6
pop eax
mov dword [esp + 0x10], eax
call fcn.0041324d
test eax, eax
je 0x411d0e
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
jmp 0x411d0e
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.0041186a
xor edi, edi
test al, al
je 0x411ef9
lea edx, [esp + 0x54]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, di
jne 0x411dda
sub edx, ecx
sar edx, 1
je 0x411ef9
lea ecx, [esp + 0x40]
lea eax, [ecx + 2]
mov dword [esp + 0x18], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x411dfa
sub ecx, dword [esp + 0x18]
sar ecx, 1
je 0x411ef9
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 dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea ecx, [esp + 0x3c]
add esp, 0x10
lea edx, [ecx + 2]
xor edi, edi
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x411e3e
sub ecx, edx
sar ecx, 1
je 0x411e93
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea eax, [esp + 0x7c]
push 1
push 0x481fa4
push 0x12
push eax
call esi
lea ecx, [esp + 0x3c]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x411e6f
sub ecx, edx
lea eax, [esp + 0x2c]
sar ecx, 1
push ecx
push eax
lea eax, [esp + 0x84]
push 0x12
push eax
call esi
add esp, 0x10
push edi
push edi
push edi
mov edx, ebx
lea ecx, [esp + 0x88]
call fcn.00411abd
mov esi, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
test esi, esi
js 0x411ef1
mov ecx, dword [ebx]
call fcn.0040e9be
test al, al
jne 0x411ef1
lea edx, [esp + 0x14]
lea ecx, [esp + 0x40]
call fcn.00411316
test eax, eax
js 0x411ef1
mov ecx, dword [ebx]
lea edx, [esp + 0x18]
call fcn.00412b4d
test eax, eax
js 0x411ef1
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x14], eax
je 0x411ef9
cmp dword [esp + 0x14], edi
je 0x411ef9
test eax, eax
je 0x411ef9
or dword [ebx], 0xffffffff
mov esi, 0x80004005
cmp byte [ebp + 0xc], 0
je 0x411f30
cmp dword [ebx], 0xffffffff
jne 0x411f30
cmp dword [0x4d28ac], 0
mov esi, edi
jne 0x411f16
call fcn.0040fd08
mov esi, eax
test esi, esi
js 0x411f30
mov ecx, dword [esp + 0xc]
mov edx, ebx
call fcn.00412243
push 7
pop ecx
mov esi, eax
mov dword [esp + 0x10], ecx
jmp 0x411f34
mov ecx, dword [esp + 0x10]
cmp dword [ebx], 0xffffffff
jne 0x411f45
cmp byte [ebp + 8], 0
je 0x411f60
cmp byte [ebp + 0xc], 0
je 0x411f60
push dword [esp + 0x1c]
mov edx, dword [ebx]
push dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0040ef8e
mov ecx, dword [esp + 0x10]
jmp 0x411f60
push 5
pop ecx
test esi, esi
js 0x411f77
cmp dword [ebx], 0xffffffff
mov eax, 0x80004005
mov ecx, dword [esp + 0x10]
cmove esi, eax
jmp 0x411f77
mov ecx, edi
mov edx, dword [esp + 0xc]
cmp byte [ebp + 0x10], 0
je 0x412051
test esi, esi
js 0x411f97
cmp ecx, 6
je 0x411f97
cmp ecx, 7
jne 0x412051
mov eax, esi
cmp esi, 0x8ff000ff
jne 0x411fbd
mov dword [esp + 0x14], eax
mov edx, esi
mov eax, dword [0x4ad17c]
test eax, eax
cmovs edx, eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
test ebx, ebx
je 0x411fc3
mov edi, dword [ebx]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x24], 0x4813e0
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x2c], str.wzAliasTag
push eax
lea eax, [esp + 0x60]
mov dword [esp + 0x34], ebx
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x78], 0x4813e0
push eax
push ecx
push ecx
mov dword [esp + 0x88], str.wzTag
mov dword [esp + 0x8c], edx
mov dword [esp + 0x5c], 0x4820c4
mov dword [esp + 0x60], str.phCulture
mov dword [esp + 0x64], edi
mov dword [esp + 0x70], 0x482160
mov dword [esp + 0x74], str.HResult
mov dword [esp + 0x48], 0x4820b8
mov dword [esp + 0x4c], str.ResultOrigin
mov dword [esp + 0x50], ecx
call fcn.00413029
mov ecx, dword [esp + 0x204]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047a72f
mov esp, ebp
pop ebp
ret 0xc