Function at 0x407330
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f50ab
mov eax, dword fs:[0]
push eax
mov eax, 0x167c
call fcn.0055dba0
mov eax, dword [0x6807dc]
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 dword [ebp - 0x1688], edi
push 0x1450
lea eax, [ebp - 0x1668]
push 0
push eax
call fcn.005c81c0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005c81c0
add esp, 0x18
lea eax, [ebp - 0x1684]
push eax
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
lea eax, [ebp - 0x218]
push eax
jne 0x407598
push dword [ebp - 0x1684]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x1684]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4073d3
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x510]
call fcn.00405d50
push 0x663eb8
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1668]
push 0x663ed8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x1670], 0
xor eax, eax
mov dword [ebp - 0x166c], 7
lea ecx, [ebp - 0x1680]
mov word [ebp - 0x1680], ax
push 7
push 0x663ee4
call fcn.00405d50
lea ecx, [ebp - 0x1668]
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407455
mov eax, dword [ebp - 0x166c]
sub ecx, edx
mov edx, dword [ebp - 0x1670]
sub eax, edx
sar ecx, 1
cmp ecx, eax
ja 0x4074b8
cmp dword [ebp - 0x166c], 8
lea eax, [ecx + ecx]
push eax
lea esi, [ebp - 0x1680]
cmovae esi, dword [ebp - 0x1680]
lea eax, [ebp - 0x1668]
push eax
lea edi, [edx + ecx]
mov dword [ebp - 0x1670], edi
lea eax, [esi + edx*2]
push eax
call fcn.005c85a0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [ebp - 0x1688]
jmp 0x4074d9
push ecx
lea eax, [ebp - 0x1668]
mov byte [ebp - 0x1688], 0
push eax
push dword [ebp - 0x1688]
push ecx
lea ecx, [ebp - 0x1680]
call fcn.0040c890
lea esi, [edi + 0x2c]
push str.edit_dir
mov ecx, esi
call fcn.004136b5
cmp dword [ebp - 0x166c], 8
lea ecx, [ebp - 0x1680]
cmovae ecx, dword [ebp - 0x1680]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x3c]
lea ecx, [ebp - 0x1668]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407510
sub ecx, edx
lea eax, [ebp - 0x1668]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x4b8]
call fcn.00405d50
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x166c]
cmp edx, 8
jb 0x407579
mov ecx, dword [ebp - 0x1680]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40756f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407628
push edx
push ecx
call fcn.0055cf9a
add esp, 8
xor eax, eax
mov dword [ebp - 0x1670], 0
mov dword [ebp - 0x166c], 7
mov word [ebp - 0x1680], ax
jmp 0x4075f5
lea eax, [ebp - 0x1668]
push str.C:Program_Files__x86_DoFunzuhaowan
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x1668]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4075b6
sub ecx, edx
lea eax, [ebp - 0x1668]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x4b8]
call fcn.00405d50
lea esi, [edi + 0x2c]
push str.edit_dir
mov ecx, esi
call fcn.004136b5
lea ecx, [ebp - 0x1668]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x3c]
push str.edit_dir
mov ecx, esi
call fcn.004136b5
push 0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xec]
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.0055cf54
mov esp, ebp
pop ebp
ret
call fcn.005cd033
int3