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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x4d0018]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
push 0
push 3
mov dword [ebp - 0x448], edi
call fcn.00411f89
mov ecx, dword [edi + 4]
add esp, 8
mov esi, eax
cmp dword [ecx - 0xc], 0
jne 0x407ccf
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00481670
add esp, 0xc
lea eax, [ebp - 0x210]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.XinZhiZao_
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407cb0
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 4]
call fcn.00406e90
mov eax, dword [edi + 4]
cmp dword [eax - 4], 1
jle 0x407ce6
push dword [eax - 0xc]
lea ecx, [edi + 4]
call fcn.00407090
mov eax, dword [edi + 4]
sub esp, 0x10
mov ecx, esp
push eax
call fcn.00408990
call fcn.004078f0
add esp, 0x10
test al, al
jne 0x407d3a
mov eax, dword [edi + 8]
cmp dword [eax - 0xc], 0
jne 0x407d1a
push 0x10
push 0x4ac568
push 0x4ac570
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
test esi, esi
je 0x407d25
mov ecx, esi
call fcn.00412069
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047ecc2
mov esp, ebp
pop ebp
ret 8
test esi, esi
je 0x407d25
push 0x226
lea eax, [ebp - 0x43a]
push 0
push eax
call fcn.00481670
add esp, 0xc
cmp dword [esi], 1
je 0x407d7a
xor ebx, ebx
xor eax, eax
mov word [ebp - 0x43c], ax
mov dword [ebp - 0x214], eax
mov eax, 0x80000
mov dword [ebp - 0x440], ebx
jmp 0x407e27
mov eax, dword [esi + 4]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x444], eax
lea edi, [eax + 0x244]
mov edx, edi
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x407d90
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407da6
mov eax, dword [ebp - 0x444]
sub ecx, edx
sar ecx, 1
movzx eax, word [eax + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x407de3
cmp eax, 0x2f
je 0x407de3
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x407dd0
mov eax, dword [0x4ac4cc]
mov dword [edi], eax
xor eax, eax
mov dword [0x4d378c], 0
xor ebx, ebx
mov word [ebp - 0x43c], ax
cmp dword [esi], 1
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x214], eax
je 0x407e10
mov eax, 0x80000
jmp 0x407e27
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x440]
push eax
push 0xffffffffffffffff
call fcn.004114f4
mov ebx, dword [ebp - 0x440]
xor edi, edi
mov dword [0x4d378c], eax
test ebx, ebx
jle 0x407ead
nop dword [eax]
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x440], 0
cmp dword [esi], 1
mov word [ebp - 0x43c], ax
mov dword [ebp - 0x214], eax
je 0x407e6a
mov dword [0x4d378c], 0x80000
jmp 0x407ea8
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x440]
push eax
push edi
call fcn.004114f4
mov dword [0x4d378c], eax
test eax, eax
jne 0x407ea8
cmp dword [esi], 1
jne 0x407efc
mov ecx, dword [esi + 4]
push 2
push eax
lea eax, [ebp - 0x43c]
push eax
push edi
call fcn.00411bd1
mov dword [0x4d378c], eax
test eax, eax
jne 0x407d1e
inc edi
cmp edi, ebx
jl 0x407e40
mov ebx, dword [ebp - 0x448]
mov ecx, ebx
call fcn.00406ff0
mov eax, dword [ebx + 4]
cmp dword [eax - 4], 1
jle 0x407ed1
push dword [eax - 0xc]
lea ecx, [ebx + 4]
call fcn.00407090
mov eax, dword [ebx + 4]
push eax
push str._sXinZhiZao.exe
push ebx
call fcn.00408970
add esp, 0xc
mov ecx, esi
call fcn.00412069
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047ecc2
mov esp, ebp
pop ebp
ret 8
mov dword [0x4d378c], 0x80000
jmp 0x407d1e