Function at 0x406e20
Capabilities:
Check if file exists
Create directory
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x447c53
mov eax, dword fs:[0]
push eax
sub esp, 0x3e8
mov eax, dword [0x454280]
xor eax, esp
mov dword [esp + 0x3e0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x454280]
xor eax, esp
push eax
lea eax, [esp + 0x3fc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40c]
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x1c], eax
jne 0x406e75
xor eax, eax
jmp 0x4078cc
call fcn.004274e4
test al, al
je 0x406e96
push esi
push str.CUpdateMgr::Initialize__param_s
push 0xd2
push str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForTestqqpcmgr_projTxdlUpdateUpdateMgr.cpp
call fcn.00427373
add esp, 0x10
mov ebp, 7
mov eax, esi
mov dword [esp + 0x20], 1
mov dword [esp + 0x44], ebx
mov dword [esp + 0x178], ebp
mov dword [esp + 0x174], ebx
mov word [esp + 0x164], bx
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x406ec2
sub eax, ecx
sar eax, 1
push eax
push esi
lea esi, [esp + 0x168]
call fcn.00401f90
mov dword [esp + 0x404], ebx
push 1
push 0x44ab68
lea esi, [esp + 0x6c]
mov dword [esp + 0x84], ebp
mov dword [esp + 0x80], ebx
mov word [esp + 0x70], bx
call fcn.00401f90
mov byte [esp + 0x404], 1
push 1
mov edi, esi
push 0x44adc0
lea esi, [esp + 0x88]
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], bx
call fcn.00401f90
mov byte [esp + 0x404], 2
push 2
mov ebp, esi
push 0x44adc4
lea esi, [esp + 0x50]
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
call fcn.00401f90
mov ecx, esi
push ecx
sub esp, 0x1c
mov byte [esp + 0x424], 3
mov ecx, esp
mov dword [esp + 0x44], esp
push 0xffffffffffffffff
mov esi, 7
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0x188]
mov word [ecx + 4], bx
call fcn.004020c0
mov edx, edi
mov ecx, ebp
lea edi, [esp + 0x19c]
call fcn.00402d00
mov edi, 8
cmp dword [esp + 0x60], edi
jb 0x406fc1
mov edx, dword [esp + 0x4c]
push edx
call fcn.00428f1c
add esp, 4
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
cmp dword [esp + 0x98], edi
jb 0x406fe7
mov eax, dword [esp + 0x84]
push eax
call fcn.00428f1c
add esp, 4
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], bx
mov byte [esp + 0x404], 7
cmp dword [esp + 0x7c], edi
jb 0x407018
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00428f1c
add esp, 4
mov edx, dword [0x4564f4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4564f4
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], ebx
mov word [esp + 0xd8], bx
mov dword [esp + 0x108], esi
mov dword [esp + 0x104], ebx
mov word [esp + 0xf4], bx
mov dword [esp + 0x124], esi
mov dword [esp + 0x120], ebx
mov word [esp + 0x110], bx
mov byte [esp + 0x404], 0xb
call fcn.00408210
test eax, eax
jne 0x407661
push 6
mov dword [esp + 0xd4], esi
push str.dlType
lea esi, [esp + 0xc0]
mov dword [esp + 0x20], ebx
mov dword [esp + 0xd4], ebx
mov word [esp + 0xc4], bx
call fcn.00401f90
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
mov eax, esi
push eax
lea edx, [esp + 0x184]
add ecx, 8
push edx
mov byte [esp + 0x410], 0xc
call fcn.004096b0
mov byte [esp + 0x404], 0xb
cmp dword [esp + 0xd0], edi
jb 0x407105
mov eax, dword [esp + 0xbc]
push eax
call fcn.00428f1c
add esp, 4
lea ecx, [esp + 0x18]
push ecx
call fcn.00407d00
lea edi, [esp + 0x24]
mov byte [esp + 0x404], 0xd
call fcn.00405600
mov byte [esp + 0x404], 0xb
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407148
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x24]
cmp dword [esi - 0xc], ebx
je 0x40765c
mov edx, str.FileName
lea eax, [esp + 0x28]
call fcn.004039a0
mov edx, 0x44ab18
lea eax, [esp + 0xb8]
mov byte [esp + 0x404], 0xe
call fcn.004039a0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x180]
push edx
mov edx, eax
lea ecx, [esp + 0xdc]
mov byte [esp + 0x40c], 0xf
call fcn.004098f0
cmp dword [esp + 0xd0], 8
jb 0x4071b9
mov eax, dword [esp + 0xbc]
push eax
call fcn.00428f1c
add esp, 4
mov ebp, 7
mov byte [esp + 0x404], 0xb
cmp dword [esp + 0x40], 8
mov dword [esp + 0xd0], ebp
mov dword [esp + 0xcc], ebx
mov word [esp + 0xbc], bx
jb 0x4071f0
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00428f1c
add esp, 4
cmp dword [esp + 0xe8], ebx
jne 0x407224
call fcn.004274e4
test al, al
je 0x40765c
push str.Invalid_update_file_name
push 0xd2
push str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForTestqqpcmgr_projTxdlUpdateUpdateMgr.cpp
call fcn.00427373
add esp, 0xc
mov esi, ebp
jmp 0x407661
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.00402670
mov eax, str.QQPCMgr
lea edi, [esp + 0x18]
mov byte [esp + 0x404], 0x10
call fcn.00408ce0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407262
mov ecx, dword [esp + 0x18]
push ebx
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [esp + 0xec], 8
mov eax, dword [esp + 0xd8]
jae 0x40727a
lea eax, [esp + 0xd8]
lea edi, [esp + 0x18]
call fcn.00408ce0
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
add edi, 0x10
call fcn.00402980
push 0x208
lea edx, [esp + 0x1ea]
push ebx
push edx
mov word [esp + 0x1f0], bx
call fcn.0042b000
add esp, 0xc
mov dword [esp + 0xd0], ebp
mov dword [esp + 0xcc], ebx
mov word [esp + 0xbc], bx
mov edx, str.tempDir
lea eax, [esp + 0x28]
mov byte [esp + 0x404], 0x11
call fcn.004039a0
mov edx, str._appdata_TencentQQPCMgrDownload
lea eax, [esp + 0x9c]
mov byte [esp + 0x404], 0x12
call fcn.004039a0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x180]
push edx
mov edx, eax
lea ecx, [esp + 0xc0]
mov byte [esp + 0x40c], 0x13
call fcn.004098f0
lea esi, [esp + 0x9c]
call fcn.00401e80
lea esi, [esp + 0x28]
mov byte [esp + 0x404], 0x11
call fcn.00401e80
mov eax, dword [esp + 0xbc]
mov esi, 8
cmp dword [esp + 0xd0], esi
jae 0x407352
lea eax, [esp + 0xbc]
push 0x104
lea ecx, [esp + 0x1e8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [esp + 0x1e4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407388
push ebx
lea eax, [esp + 0x1e8]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [esp + 0xec], esi
mov eax, dword [esp + 0xd8]
jae 0x40739f
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x1e8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ebp, dword [esp + 0x1c]
lea edi, [ebp + 0x18]
lea edx, [esp + 0x1e4]
call fcn.00402980
lea esi, [esp + 0xb8]
call fcn.00401e80
mov byte [esp + 0x404], 0xb
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4073f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, 0x44ae34
lea eax, [esp + 0x28]
call fcn.004039a0
mov edx, 0x44ab18
lea eax, [esp + 0x9c]
mov byte [esp + 0x404], 0x14
call fcn.004039a0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x180]
push edx
mov edx, eax
lea ecx, [esp + 0x114]
mov byte [esp + 0x40c], 0x15
call fcn.004098f0
lea esi, [esp + 0x9c]
call fcn.00401e80
lea esi, [esp + 0x28]
mov byte [esp + 0x404], 0xb
call fcn.00401e80
cmp dword [esp + 0x120], ebx
jne 0x40748e
call fcn.004274e4
test al, al
je 0x40765c
push str.Invalid_update_md5
push 0xd2
push str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForTestqqpcmgr_projTxdlUpdateUpdateMgr.cpp
call fcn.00427373
add esp, 0xc
jmp 0x40765c
cmp dword [esp + 0x124], 8
mov edx, dword [esp + 0x110]
jae 0x4074a6
lea edx, [esp + 0x110]
add ebp, 0x14
mov edi, ebp
call fcn.00402980
mov edx, 0x44ae64
lea eax, [esp + 0x28]
call fcn.004039a0
mov edx, 0x44ab18
lea eax, [esp + 0x9c]
mov byte [esp + 0x404], 0x16
call fcn.004039a0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x180]
push edx
mov edx, eax
lea ecx, [esp + 0xf8]
mov byte [esp + 0x40c], 0x17
call fcn.004098f0
lea esi, [esp + 0x9c]
call fcn.00401e80
lea esi, [esp + 0x28]
mov byte [esp + 0x404], 0xb
call fcn.00401e80
cmp dword [esp + 0x104], ebx
jne 0x407537
call fcn.004274e4
test al, al
je 0x40765c
push str.Invalid_update_url
jmp 0x407477
cmp dword [esp + 0x108], 8
mov edx, dword [esp + 0xf4]
jae 0x40754f
lea edx, [esp + 0xf4]
mov esi, dword [esp + 0x1c]
lea edi, [esi + 0xc]
call fcn.00402980
mov eax, dword [ebp]
mov ecx, dword [esi + 0x10]
lea edi, [esi + 0x10]
push eax
push ecx
call fcn.00407f90
add esp, 8
test eax, eax
je 0x407591
mov dword [esp + 0x20], 0x64
call fcn.004274e4
test al, al
je 0x40765c
push str.CUpdateMgr::Init__Local_file_is_same_with_the_server_config
jmp 0x407477
mov eax, dword [ebp]
mov ecx, dword [esi + 0x18]
lea ebp, [esi + 0x18]
push eax
push ecx
call fcn.00407f90
add esp, 8
test eax, eax
je 0x4075ef
call fcn.004274e4
test al, al
je 0x4075c8
push str.CUpdateMgr::Init__Temp_file_is_same_with_the_server_config
push 0xd2
push str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForTestqqpcmgr_projTxdlUpdateUpdateMgr.cpp
call fcn.00427373
add esp, 0xc
mov ebp, dword [ebp]
mov esi, dword [edi]
lea eax, [esp + 0x44]
push eax
push ebp
call fcn.00407e20
cmp eax, ebx
mov dword [esp + 0x20], eax
mov esi, 7
jne 0x407661
mov dword [esp + 0x20], 0xc8
jmp 0x407661
cmp dword [esi + 8], ebx
mov edx, 0x44ab18
lea eax, [esp + 0x28]
jne 0x407622
call fcn.004039a0
lea ecx, [esp + 0x28]
push ecx
push 0x3bd7d314
push esi
mov byte [esp + 0x410], 0x18
call fcn.004451d0
add esp, 0xc
mov dword [esi + 0x20], eax
jmp 0x407643
call fcn.004039a0
push esi
lea esi, [esp + 0x2c]
mov byte [esp + 0x408], 0x19
call fcn.0041ee20
mov edx, dword [esp + 0x20]
add esp, 4
mov dword [edx + 0x24], eax
lea esi, [esp + 0x28]
call fcn.00401e80
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp dword [ecx + 0x20], ebx
sete al
mov dword [esp + 0x20], eax
mov esi, 7
mov dword [esp + 0x140], 0xf
mov dword [esp + 0x13c], ebx
mov byte [esp + 0x12c], bl
mov dword [esp + 0x144], ebx
mov dword [esp + 0x148], ebx
mov dword [esp + 0x14c], ebx
mov dword [esp + 0x150], ebx
mov dword [esp + 0x154], ebx
mov dword [esp + 0x158], ebx
mov dword [esp + 0x15c], ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x404], 0x1a
call fcn.00406a10
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x134]
mov byte [esp + 0x410], 0x1b
call fcn.00403b80
mov ebp, 0x10
mov byte [esp + 0x404], 0x1a
cmp dword [esp + 0x40], ebp
jb 0x4076f4
mov edx, dword [esp + 0x2c]
push edx
call fcn.00428f1c
add esp, 4
call fcn.004069b0
cmp dword [0x457394], ebx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x144], eax
mov eax, dword [esp + 0x20]
mov edi, 1
mov dword [esp + 0x148], edi
mov dword [esp + 0x14c], ebx
mov dword [esp + 0x150], eax
mov dword [esp + 0x154], ecx
jne 0x407750
mov ecx, str.071132e14ea664c6eaedb1417e589b86
call fcn.00408040
sub eax, edi
neg eax
sbb eax, eax
add eax, edi
mov dword [0x457398], eax
mov dword [0x457394], edi
jmp 0x407755
mov eax, dword [0x457398]
cmp dword [0x45739c], ebx
mov dword [esp + 0x158], eax
jne 0x407784
mov ecx, str.e9ffce8a13edb2ba35a8fca266b6ebb0
call fcn.00408040
sub eax, edi
neg eax
sbb eax, eax
add eax, 1
mov dword [0x4573a0], eax
mov dword [0x45739c], edi
jmp 0x407789
mov eax, dword [0x4573a0]
lea edx, [esp + 0x128]
push edx
mov dword [esp + 0x160], eax
call fcn.00413c28
mov ecx, eax
call fcn.00409b60
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp dword [ecx + 0x20], ebx
setne al
cmp dword [esp + 0x140], ebp
mov edi, eax
jb 0x4077cb
mov edx, dword [esp + 0x12c]
push edx
call fcn.00428f1c
add esp, 4
mov ebp, 8
cmp dword [esp + 0x124], ebp
mov dword [esp + 0x140], 0xf
mov dword [esp + 0x13c], ebx
mov byte [esp + 0x12c], bl
jb 0x407802
mov eax, dword [esp + 0x110]
push eax
call fcn.00428f1c
add esp, 4
cmp dword [esp + 0x108], ebp
mov dword [esp + 0x124], esi
mov dword [esp + 0x120], ebx
mov word [esp + 0x110], bx
jb 0x407831
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.00428f1c
add esp, 4
cmp dword [esp + 0xec], ebp
mov dword [esp + 0x108], esi
mov dword [esp + 0x104], ebx
mov word [esp + 0xf4], bx
jb 0x407860
mov edx, dword [esp + 0xd8]
push edx
call fcn.00428f1c
add esp, 4
mov byte [esp + 0x404], 7
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], ebx
mov word [esp + 0xd8], bx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40789e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x17c]
mov byte [esp + 0x404], bl
call fcn.00402e70
cmp dword [esp + 0x178], ebp
jb 0x4078ca
mov ecx, dword [esp + 0x164]
push ecx
call fcn.00428f1c
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x3fc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3e0]
xor ecx, esp
call fcn.00429296
add esp, 0x3f4
ret 4