Function at 0x4018e9
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1874
call fcn.0040e980
mov eax, dword [0x4158c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x186c], eax
mov eax, dword [ebp + 0xc]
mov esi, 0x206
xor edi, edi
push esi
mov dword [ebp - 0x1870], eax
lea eax, [ebp - 0x826]
push edi
push eax
mov word [ebp - 0x828], di
call fcn.00403a20
add esp, 0xc
lea ebx, [ebp - 0x828]
call fcn.004021ca
test eax, eax
je 0x401c89
push esi
lea eax, [ebp - 0x20e]
push edi
push eax
mov word [ebp - 0x210], di
call fcn.00403a20
add esp, 0xc
push dword [ebp - 0x1870]
lea eax, [ebp - 0x828]
push eax
push str._sTencentTXSSO_sBin_
mov edi, 0x208
push edi
mov ebx, 0x104
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0040321e
and word [ebp - 0x418], 0
push esi
lea eax, [ebp - 0x416]
push 0
push eax
call fcn.00403a20
mov eax, dword [ebp - 0x186c]
add esp, 0x24
push dword [eax]
lea eax, [ebp - 0x418]
push str._sBin_
push edi
push ebx
push eax
call fcn.0040321e
and word [ebp - 0xa30], 0
add esp, 0x14
push esi
lea eax, [ebp - 0xa2e]
push 0
push eax
call fcn.00403a20
and word [ebp - 0xc38], 0
add esp, 0xc
push esi
lea eax, [ebp - 0xc36]
push 0
push eax
call fcn.00403a20
and word [ebp - 0x620], 0
add esp, 0xc
push esi
lea eax, [ebp - 0x61e]
push 0
push eax
call fcn.00403a20
and word [ebp - 0xe40], 0
add esp, 0xc
push esi
lea eax, [ebp - 0xe3e]
push 0
push eax
call fcn.00403a20
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push str._sSSOPlatform.dll
push edi
lea eax, [ebp - 0xa30]
push ebx
push eax
call fcn.0040321e
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
push str._sSSOCommon.dll
push edi
lea eax, [ebp - 0xc38]
push ebx
push eax
call fcn.0040321e
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
push str._sSSOAxCtrlForPTLogin.dll
push edi
lea eax, [ebp - 0x620]
push ebx
push eax
call fcn.0040321e
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
push str._sSSOLUIControl.dll
push edi
lea eax, [ebp - 0xe40]
push ebx
push eax
call fcn.0040321e
and word [ebp - 0x1048], 0
add esp, 0x14
push esi
lea eax, [ebp - 0x1046]
push 0
push eax
call fcn.00403a20
and word [ebp - 0x1250], 0
add esp, 0xc
push esi
lea eax, [ebp - 0x124e]
push 0
push eax
call fcn.00403a20
and word [ebp - 0x1458], 0
add esp, 0xc
push esi
lea eax, [ebp - 0x1456]
push 0
push eax
call fcn.00403a20
and word [ebp - 0x1868], 0
add esp, 0xc
push esi
lea eax, [ebp - 0x1866]
push 0
push eax
call fcn.00403a20
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push str._sSSOPlatform.dll
push edi
lea eax, [ebp - 0x1048]
push ebx
push eax
call fcn.0040321e
add esp, 0x14
lea eax, [ebp - 0x418]
push eax
push str._sSSOCommon.dll
push edi
lea eax, [ebp - 0x1250]
push ebx
push eax
call fcn.0040321e
add esp, 0x14
lea eax, [ebp - 0x418]
push eax
push str._sSSOAxCtrlForPTLogin.dll
push edi
lea eax, [ebp - 0x1458]
push ebx
push eax
call fcn.0040321e
add esp, 0x14
lea eax, [ebp - 0x418]
push eax
push str._sSSOLUIControl.dll
push edi
lea eax, [ebp - 0x1868]
push ebx
push eax
call fcn.0040321e
add esp, 0x14
push 0
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0xa30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401bb0
push eax
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0x1048]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0xc38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401bd6
push eax
lea eax, [ebp - 0xc38]
push eax
lea eax, [ebp - 0x1250]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401bfc
push eax
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x1458]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0xe40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401c22
push eax
lea eax, [ebp - 0xe40]
push eax
lea eax, [ebp - 0x1868]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push str.Hr_g
call fcn.00401164
and word [ebp - 0x1660], 0
pop ecx
push esi
lea eax, [ebp - 0x165e]
push 0
push eax
call fcn.00403a20
add esp, 0xc
push dword [ebp - 0x1870]
lea eax, [ebp - 0x828]
push eax
push str._sTencentTXSSO_s_
push edi
lea eax, [ebp - 0x1660]
push ebx
push eax
call fcn.0040321e
add esp, 0x18
push dword [ebp - 0x186c]
lea ecx, [ebp - 0x1660]
call fcn.0040263f
lea ebx, [ebp - 0x210]
call fcn.004020e9
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403a9a
leave
ret 8