Function at 0x408e20
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47b32d
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x496684]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push esi
push edi
mov eax, dword [0x496684]
xor eax, esp
push eax
lea eax, [esp + 0x1c8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esi, [esp + 0x20]
mov dword [esp + 0x14], eax
call fcn.00413bf0
xor ebx, ebx
mov dword [esp + 0x1d0], ebx
mov ecx, str.cs.d.appduoduo.com
mov edi, esi
call fcn.00413ce0
lea esi, [esp + 0x2c]
call fcn.00413bf0
mov byte [esp + 0x1d0], 1
mov ecx, str.jn.d.appduoduo.com
mov edi, esi
call fcn.00413ce0
mov ecx, dword [esp + 0x25]
cmp ecx, dword [esp + 0x31]
sbb esi, esi
inc esi
mov dword [esp + 0x1c], esi
call fcn.004089f0
cmp eax, ebx
jne 0x409250
push 0xc
mov esi, 0xf
push str.3rdParty.zip
lea ecx, [esp + 0x84]
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
call fcn.004054e0
mov byte [esp + 0x1d0], 2
mov edi, dword [esp + 0x14]
add edi, 0x10
lea ecx, [esp + 0x7c]
call fcn.0040b9e0
mov byte [esp + 0x1d0], 1
cmp dword [esp + 0x90], 0x10
jb 0x408f22
mov edx, dword [esp + 0x7c]
push edx
call fcn.0042ca67
add esp, 4
push 0xc
push str.3rdParty.zip
lea ecx, [esp + 0x48]
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.004054e0
mov byte [esp + 0x1d0], 3
mov edi, dword [esp + 0x14]
add edi, 0x20
lea ecx, [esp + 0x40]
call fcn.0040b9e0
mov byte [esp + 0x1d0], 1
cmp dword [esp + 0x54], 0x10
jb 0x408f87
mov eax, dword [esp + 0x40]
push eax
call fcn.0042ca67
add esp, 4
push ebx
push 0x4886f6
lea ecx, [esp + 0xa0]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
call fcn.004054e0
mov byte [esp + 0x1d0], 4
lea ecx, [esp + 0xb4]
push ecx
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [esp + 0xb4]
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408ff1
sub eax, edx
push eax
lea edx, [esp + 0xb8]
push edx
lea ecx, [esp + 0x84]
call fcn.004054e0
mov byte [esp + 0x1d0], 5
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x80]
call fcn.00403370
add esp, 4
mov byte [esp + 0x1d0], 6
mov edi, eax
lea esi, [esp + 0x98]
call fcn.004050d0
mov byte [esp + 0x1d0], 5
mov esi, 0x10
cmp dword [esp + 0x54], esi
jb 0x409061
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0042ca67
add esp, 4
mov edi, 0xf
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov byte [esp + 0x1d0], 4
cmp dword [esp + 0x90], esi
jb 0x409090
mov edx, dword [esp + 0x7c]
push edx
call fcn.0042ca67
add esp, 4
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
call fcn.00405160
mov byte [esp + 0x1d0], 7
push 0xb
mov eax, str.AppleDriver
lea ecx, [esp + 0x64]
call fcn.00402d60
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x74], esi
jae 0x4090ee
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40910f
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x74], esi
jae 0x409107
lea eax, [esp + 0x60]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 1
mov eax, 0x488730
lea ecx, [esp + 0x64]
call fcn.00402d60
push 0xc
mov eax, str.3rdParty.zip
lea ecx, [esp + 0x64]
call fcn.00402d60
lea ecx, [esp + 0x40]
lea edx, [esp + 0x60]
cmp dword [esp + 0x1c], ebx
je 0x409188
push str.http:__jn.d.appduoduo.com_pcd_patches_3rdParty.zip
push ecx
call fcn.0040c3c0
add esp, 8
mov byte [esp + 0x1d0], 8
mov edi, dword [esp + 0x14]
push eax
mov ecx, edi
call fcn.0040c920
push eax
lea edx, [esp + 0x18]
push edx
push edi
call fcn.0040c4d0
mov byte [esp + 0x1d0], 7
cmp dword [esp + 0x58], esi
jb 0x4091d5
mov eax, dword [esp + 0x44]
push eax
call fcn.0042ca67
add esp, 4
jmp 0x4091d5
push str.http:__cs.d.appduoduo.com_pcd_patches_3rdParty.zip
push ecx
call fcn.0040c3c0
add esp, 8
mov byte [esp + 0x1d0], 0xb
mov edi, dword [esp + 0x14]
push eax
mov ecx, edi
call fcn.0040c920
push eax
lea edx, [esp + 0x3c]
push edx
push edi
call fcn.0040c4d0
mov byte [esp + 0x1d0], 7
cmp dword [esp + 0x58], esi
jb 0x4091d1
mov eax, dword [esp + 0x44]
push eax
call fcn.0042ca67
add esp, 4
mov edi, dword [esp + 0x14]
mov byte [esp + 0x44], bl
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], 0xf
mov byte [esp + 0x1d0], 4
cmp dword [esp + 0x74], esi
jb 0x409200
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0042ca67
add esp, 4
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
mov byte [esp + 0x1d0], 1
cmp dword [esp + 0xac], esi
jb 0x409231
mov edx, dword [esp + 0x98]
push edx
call fcn.0042ca67
add esp, 4
mov esi, dword [esp + 0x1c]
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
jmp 0x409289
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push ebx
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push 0x4886f6
mov byte [ecx], bl
call fcn.004054e0
mov byte [esp + 0x1ec], 0xe
mov byte [esp + 0x1ec], 1
call fcn.004096f0
mov edi, dword [esp + 0x14]
push esi
push edi
call fcn.00407a00
push edi
call fcn.00409300
mov byte [esp + 0x1d0], bl
mov edi, dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, vtable.CPing.0
mov dword [esp + 0x2c], esi
cmp byte [esp + 0x30], bl
je 0x4092b4
call edi
mov dword [esp + 0x1d0], 0xffffffff
mov dword [esp + 0x20], esi
cmp byte [esp + 0x24], bl
je 0x4092cb
call edi
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.0042ca72
mov esp, ebp
pop ebp
ret 4