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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x434018]
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.0040a357
mov ecx, dword [edi + 4]
add esp, 8
mov esi, eax
cmp dword [ecx - 0xc], 0
jne 0x402cff
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0040cc50
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 0x402ce0
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 4]
call fcn.00402040
mov eax, dword [edi + 4]
cmp dword [eax - 4], 1
jle 0x402d16
push dword [eax - 0xc]
lea ecx, [edi + 4]
call fcn.00402240
mov eax, dword [edi + 4]
sub esp, 0x10
mov ecx, esp
push eax
call fcn.00403a10
call fcn.00402920
add esp, 0x10
test al, al
jne 0x402d6a
mov eax, dword [edi + 8]
cmp dword [eax - 0xc], 0
jne 0x402d4a
push 0x10
push 0x42b864
push 0x42b870
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
test esi, esi
je 0x402d55
mov ecx, esi
call fcn.0040a3d1
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a893
mov esp, ebp
pop ebp
ret 8
test esi, esi
je 0x402d55
push 0x226
lea eax, [ebp - 0x43a]
push 0
push eax
call fcn.0040cc50
add esp, 0xc
cmp dword [esi], 1
je 0x402daa
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 0x402e57
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 0x402dc0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402dd6
mov eax, dword [ebp - 0x444]
sub ecx, edx
sar ecx, 1
movzx eax, word [eax + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x402e13
cmp eax, 0x2f
je 0x402e13
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x402e00
mov eax, dword [0x42b7cc]
mov dword [edi], eax
xor eax, eax
mov dword [0x435fb0], 0
xor ebx, ebx
mov word [ebp - 0x43c], ax
cmp dword [esi], 1
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x214], eax
je 0x402e40
mov eax, 0x80000
jmp 0x402e57
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x440]
push eax
push 0xffffffffffffffff
call fcn.0040997e
mov ebx, dword [ebp - 0x440]
xor edi, edi
mov dword [0x435fb0], eax
test ebx, ebx
jle 0x402edd
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 0x402e9a
mov dword [0x435fb0], 0x80000
jmp 0x402ed8
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x440]
push eax
push edi
call fcn.0040997e
mov dword [0x435fb0], eax
test eax, eax
jne 0x402ed8
cmp dword [esi], 1
jne 0x402f2c
mov ecx, dword [esi + 4]
push 2
push eax
lea eax, [ebp - 0x43c]
push eax
push edi
call fcn.00409f9f
mov dword [0x435fb0], eax
test eax, eax
jne 0x402d4e
inc edi
cmp edi, ebx
jl 0x402e70
mov ebx, dword [ebp - 0x448]
mov ecx, ebx
call fcn.004021a0
mov eax, dword [ebx + 4]
cmp dword [eax - 4], 1
jle 0x402f01
push dword [eax - 0xc]
lea ecx, [ebx + 4]
call fcn.00402240
mov eax, dword [ebx + 4]
push eax
push str._sXinZhiZao.exe
push ebx
call fcn.004039f0
add esp, 0xc
mov ecx, esi
call fcn.0040a3d1
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a893
mov esp, ebp
pop ebp
ret 8
mov dword [0x435fb0], 0x80000
jmp 0x402d4e