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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x444c77
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x4585d8]
xor eax, esp
mov dword [esp + 0x478], eax
push ebx
push esi
push edi
mov eax, dword [0x4585d8]
xor eax, esp
push eax
lea eax, [esp + 0x490]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00411956
push 0
push 0x20000
push 0
mov ecx, esi
call fcn.0040fc60
push 0
push 0x10000
push 0
mov ecx, esi
call fcn.0040fc60
push 0x208
lea eax, [esp + 0x280]
push 0
push eax
call fcn.0042dd70
add esp, 0xc
test esi, esi
jne 0x406dc6
xor eax, eax
jmp 0x406dc9
mov eax, dword [esi + 0x20]
push 0
push 0x1a
lea ecx, [esp + 0x284]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.0040f605
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406df6
push 0x80004005
call fcn.00402470
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x8c
mov dword [esp + 0x49c], 0
call fcn.0040faf7
test eax, eax
je 0x406e2e
push 0x8c
push eax
lea ecx, [esp + 0x1c]
call fcn.00401ea0
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x280]
push edx
push 0x44cb30
push 0x104
push 0x45c9e0
call fcn.0042cc4c
add esp, 0x14
push 0x45c9e0
push str.gLogDirPath___s
call fcn.004045d0
add esp, 8
lea eax, [esp + 0x2c]
push eax
push 0x45c9e0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406e95
push str.dir_is_invalid_n
call fcn.004045d0
add esp, 4
push 0
push 0x45c9e0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.0040f605
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406eb6
push 0x80004005
call fcn.00402470
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x89
mov byte [esp + 0x49c], 1
call fcn.0040faf7
test eax, eax
je 0x406eeb
push 0x89
push eax
lea ecx, [esp + 0x20]
call fcn.00401ea0
mov ecx, dword [esp + 0x18]
push ecx
push 0x45c9e0
push 0x44cb30
push 0x104
push 0x45c7d8
call fcn.0042cc4c
add esp, 0x14
push 0x45c7d8
push str.gSetupFilePath___s
call fcn.004045d0
mov eax, dword [esi + 0xcc]
mov edx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 8
push eax
push 1
push 0x80
push edx
call edi
mov eax, dword [esi + 0xcc]
push eax
mov eax, dword [esi + 0x20]
push 0
push 0x80
push eax
call edi
call fcn.0041b18d
mov ecx, dword [eax + 0xc]
mov dword [0x45cbec], ecx
call fcn.0040f605
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406f74
push 0x80004005
call fcn.00402470
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
push 0x69
mov byte [esp + 0x49c], 2
call fcn.0040faf7
test eax, eax
je 0x406fa7
push 0x69
push eax
lea ecx, [esp + 0x24]
call fcn.00401ea0
mov ebx, dword [esp + 0x1c]
push ebx
mov ecx, esi
call fcn.0040fcb8
mov eax, esi
mov dword [0x45cbe8], esi
call fcn.004076d0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], vtable.CRgn.0
push 5
mov byte [esp + 0x49c], 3
mov eax, dword [esi + 0x84]
mov ecx, dword [esi + 0x80]
mov edx, dword [esi + 0x7c]
mov edi, dword [esi + 0x78]
push 5
push eax
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
push eax
lea ecx, [esp + 0x24]
call fcn.004112b8
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x20]
push 0
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov eax, dword [esi + 0x84]
sub eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x80]
sub ecx, dword [esi + 0x78]
push 0
push eax
push ecx
push 0
push 0
mov ecx, esi
call fcn.0040fd1a
push esi
call fcn.004077f0
lea eax, [esp + 0x28]
push 0
push eax
mov ecx, 0x89
call fcn.00408ee0
add esp, 8
push eax
mov ecx, 0x45cdb4
mov byte [esp + 0x49c], 4
call fcn.00402160
mov byte [esp + 0x498], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407085
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004083f0
call fcn.004087b0
test eax, eax
jne 0x4070e2
push str.UI_isRuning
call fcn.004045d0
add esp, 4
call fcn.004088a0
test eax, eax
je 0x4070db
call fcn.004087b0
test eax, eax
jne 0x4070d4
push str.UI_isRuning_still
call fcn.004045d0
add esp, 4
call fcn.004088a0
call fcn.004087b0
test eax, eax
jne 0x4070d4
push str.UI_isRuning_still
jmp 0x4070e7
push str.UI_stoped_Runing
jmp 0x4070e7
push str.Stop_UI_run_fail
jmp 0x4070e7
push str.UI_is_not_Runing
call fcn.004045d0
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
add esp, 4
push 0
push 0x32
push 1
push ecx
call edi
mov edx, dword [esi + 0x20]
push 0
push 0x12c
push 3
push edx
call edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esi, 0x47c
test eax, eax
je 0x407157
push esi
mov dword [esi], eax
mov dword [esi + 8], str.UTILITY
mov dword [esi + 0x18], 0x93
mov dword [esi + 0x1c], 1
call fcn.0040e300
test eax, eax
jne 0x40716b
push str.unPack.SetOutDir_error
call fcn.004045d0
add esp, 4
push 0
call fcn.0042c5a7
push str.unPack.InitResouse_error
call fcn.004045d0
add esp, 4
push 0
call fcn.0042c5a7
push esi
call fcn.0040e300
test eax, eax
jne 0x407189
push str.unPack.SetOutDir_error
call fcn.004045d0
add esp, 4
push 0
call fcn.0042c5a7
mov eax, esi
call fcn.0040e660
test eax, eax
jne 0x4071a8
push str.unPack.UnPack
call fcn.004045d0
add esp, 4
push 0
call fcn.0042c5a7
mov byte [esp + 0x498], 2
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], vtable.CRgn.0
call fcn.00403740
add ebx, 0xfffffff0
mov byte [esp + 0x498], 1
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4071e5
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov byte [esp + 0x498], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40720d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x498], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407238
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x490]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x478]
xor ecx, esp
call fcn.0042beff
mov esp, ebp
pop ebp
ret