Function at 0x40d370
Capabilities:
Get common file path
Get program files directory
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a063b
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x4d3040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
push str.click
push dword [esi]
call fcn.0048d783
add esp, 8
test eax, eax
jne 0x40d540
mov ecx, dword [esi + 0x108]
push str.closebtn
mov eax, dword [ecx]
call dword [eax + 0x28]
push eax
call fcn.0048d783
add esp, 8
test eax, eax
je 0x40d538
mov ecx, dword [esi + 0x108]
push 0x4acbbc
mov eax, dword [ecx]
call dword [eax + 0x28]
push eax
call fcn.0048d783
add esp, 8
test eax, eax
jne 0x40d460
mov dword [ebp - 0x43c], eax
xorps xmm0, xmm0
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x450]
push eax
movups xmmword [ebp - 0x450], xmm0
mov dword [ebp - 0x440], 0x43
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
test eax, eax
je 0x40d5c9
lea ecx, [ebp - 0x420]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push str.XinZhiZao_
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [edi + 0x18]
lea edx, [ebp - 0x420]
push edx
mov eax, dword [ecx]
call dword [eax + 0x50]
jmp 0x40d5c9
mov ecx, dword [esi + 0x108]
push 0x4acbc8
mov eax, dword [ecx]
call dword [eax + 0x28]
push eax
call fcn.0048d783
add esp, 8
test eax, eax
jne 0x40d5c9
mov ecx, dword [esi + 0x108]
push 0
mov eax, dword [ecx]
call dword [eax + 0x180]
push ecx
lea ecx, [ebp - 0x430]
call fcn.0040d710
call fcn.0040d5f0
push ecx
lea ecx, [ebp - 0x424]
mov dword [ebp - 4], 0
call fcn.00407560
mov ecx, dword [edi + 0x14]
call fcn.0041e502
mov dword [ebp - 0x454], eax
lea ecx, [edi + 0x1c]
lea eax, [ebp - 0x454]
push eax
call fcn.0040f720
push eax
lea ecx, [ebp - 0x424]
call fcn.004076e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x424]
mov edx, dword [edi + 0x18]
call fcn.00407710
push eax
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x4c]
push eax
lea ecx, [ebp - 0x430]
call fcn.00409780
test al, al
jne 0x40d538
push 0x10
push ecx
push 0x4ac680
call fcn.00409f90
mov ecx, eax
call fcn.0041c243
push eax
push ecx
push 0x4acbd0
call fcn.00409f90
mov ecx, eax
call fcn.0041c243
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.windowinit
push dword [esi]
call fcn.0048d783
add esp, 8
test eax, eax
jne 0x40d5a3
cmp dword [edi + 0x18], eax
je 0x40d5c9
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00484a20
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.XinZhiZao_
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [edi + 0x18]
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ecx]
call dword [eax + 0x50]
jmp 0x40d5c1
push str.itemselect
push dword [esi]
call fcn.0048d783
add esp, 8
test eax, eax
jne 0x40d5c9
mov eax, dword [esi + 0x108]
cmp eax, dword [edi + 0x14]
jne 0x40d5c9
lea ecx, [edi - 0x24]
call fcn.0040e8b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004820f4
mov esp, ebp
pop ebp
ret 4