Function at 0x404850
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4375f1
mov eax, dword fs:[0]
push eax
sub esp, 0x678
mov eax, dword [0x44765c]
xor eax, esp
mov dword [esp + 0x670], eax
push ebx
push esi
push edi
mov eax, dword [0x44765c]
xor eax, esp
push eax
lea eax, [esp + 0x688]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00407f95
mov eax, dword [esi + 0x20]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.0040a693
mov ebx, eax
test ebx, ebx
je 0x404952
call fcn.004053eb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4048cd
push 0x80004005
call fcn.00403e10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
push 0x65
mov dword [esp + 0x694], 0
call fcn.0040554c
test eax, eax
je 0x404903
push 0x65
push eax
lea ecx, [esp + 0x1c]
call fcn.00403900
mov edi, dword [esp + 0x14]
cmp dword [edi - 0xc], 0
je 0x40492b
mov ecx, dword [ebx + 4]
push 0
push 0
push 0x800
push ecx
call dword [sym.imp.USER32.dll_AppendMenuW]
mov edx, dword [ebx + 4]
push edi
push 0x10
push 0
push edx
call dword [sym.imp.USER32.dll_AppendMenuW]
add edi, 0xfffffff0
mov dword [esp + 0x690], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404952
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x47e]
push edx
mov word [esp + 0x480], cx
call fcn.00423730
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x276]
push ecx
mov word [esp + 0x278], ax
call fcn.00423730
mov eax, dword [esi + 0x20]
add esp, 0xc
push 0
push 0x1a
lea edx, [esp + 0x47c]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x43e440
lea eax, [esp + 0x478]
push eax
push 0x43dd8c
lea ecx, [esp + 0x278]
push 0x104
push ecx
call fcn.00421ab4
add esp, 0x14
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404a06
push str.log_dir_is_invalid_n
call fcn.00403f00
add esp, 4
push 0
lea ecx, [esp + 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x26c]
push edx
push str.OnInitDialog_gLogDir_is__s
call fcn.00403f00
lea eax, [esp + 0x274]
push eax
push str._sUninstall.log
push 0x104
push 0x44b5d8
call fcn.00421ab4
push 0x44b5d8
push str.OnInitDialog_gLogPath_is__s
call fcn.00403f00
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0x20
push eax
push 1
push 0x80
push ecx
call edi
mov eax, dword [esi + 0x74]
mov edx, dword [esi + 0x20]
push eax
push 0
push 0x80
push edx
call edi
call fcn.004053eb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404a8f
push 0x80004005
call fcn.00403e10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x690], 1
call fcn.004053eb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404ac4
push 0x80004005
call fcn.00403e10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push 0x67
mov byte [esp + 0x694], 2
call fcn.0040554c
test eax, eax
je 0x404af7
push 0x67
push eax
lea ecx, [esp + 0x1c]
call fcn.00403900
mov ebx, dword [esp + 0x14]
push ebx
mov ecx, esi
call fcn.0040a909
push 0x66
call fcn.0040554c
test eax, eax
je 0x404b1a
push 0x66
push eax
lea ecx, [esp + 0x20]
call fcn.00403900
mov edi, dword [esp + 0x18]
push edi
push 0x3e8
mov ecx, esi
call fcn.0040a874
mov ecx, eax
call fcn.0040a909
push 0
push 0x3e9
mov ecx, esi
call fcn.0040a874
mov ecx, eax
call fcn.0040a9ab
push 0
push 0x3ea
mov ecx, esi
call fcn.0040a874
mov ecx, eax
call fcn.0040a9ab
push 0
push 0x3ed
mov ecx, esi
call fcn.0040a874
mov ecx, eax
call fcn.0040a9ab
call fcn.0040a533
mov eax, dword [eax + 0xc]
push 0x81
push eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov dword [esi + 0x78], eax
lea eax, [edi - 0x10]
mov byte [esp + 0x690], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ba8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x690], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404bcf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x688]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x670]
xor ecx, esp
call fcn.004216ac
mov esp, ebp
pop ebp
ret