Function at 0x405960
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x104
push esi
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00404e70
mov esi, dword [esp + 0x34]
push str.new_TaoBrowser.exe
push esi
call fcn.004397bd
add esp, 0x10
test eax, eax
jne 0x405ff6
push ebx
push ebp
push edi
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00404df0
add esp, 8
push str.new_
lea ecx, [esp + 0x38]
call fcn.00404a60
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 0xc]
mov ecx, dword [esp + 0x34]
sub eax, dword [ecx - 0xc]
lea edx, [esp + 0x28]
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.00403680
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
jmp 0x4059e0
push 0x4a3888
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00403af0
mov eax, dword [eax]
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push eax
call edi
mov esi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405a30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x405cf4
push 0x64
call ebp
inc ebx
cmp ebx, 0x14
jl 0x4059e0
xor ebp, ebp
push 0x4a3888
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00403af0
push 0x40
lea eax, [esp + 0xe4]
push ebp
push eax
call fcn.004395a0
mov ecx, dword [esp + 0x130]
add esp, 0x18
xor eax, eax
push ecx
push 0x4a3884
lea edx, [esp + 0x24]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
push edx
lea eax, [esp + 0x38]
mov esi, 0x44
push eax
mov dword [esp + 0xe0], esi
mov dword [esp + 0x8c], ebp
call fcn.00403af0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00403af0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405ae3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xd4]
push edx
push eax
push ebp
push ebp
push ebp
push ebp
push ebp
push ecx
push ebp
call edi
test eax, eax
je 0x405b23
mov edx, dword [esp + 0x80]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [esp + 0x7c]
push eax
call ebx
push 0x40
lea ecx, [esp + 0x94]
push ebp
push ecx
call fcn.004395a0
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x30]
xor edx, edx
push ebp
push eax
mov dword [esp + 0xa0], esi
mov dword [esp + 0xcc], 1
mov word [esp + 0xd0], dx
mov dword [esp + 0x50], ebp
call fcn.00404df0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.00404f00
mov eax, dword [0x4fe3b0]
mov edx, dword [eax + 0xc]
add esp, 0x1c
mov ecx, 0x4fe3b0
call edx
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
push ebp
add eax, 0x10
push ebx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push str._sUploadStat.exe_ver:_s__outPID:taoBrowserUpdate_inPID:taoBrowserUpdate_url:http:__www.atpanel.com_bluesky.1.2.1.1.15_
push eax
call fcn.00403c60
mov esi, dword [esp + 0x24]
add esp, 0x10
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x90]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call edi
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405bee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c0b
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405c27
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ca7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405cc7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ce7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop ebp
pop ebx
mov al, 1
pop esi
add esp, 0x104
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004051f0
test al, al
je 0x405a43
push 0x4a3888
lea ecx, [esp + 0x40]
call fcn.00404a60
push str.bluesky.ini
lea ecx, [esp + 0x44]
call fcn.00404a60
push str.tbbrowserConfig.exe
lea ecx, [esp + 0x48]
call fcn.00404a60
push 0x4a374c
lea ecx, [esp + 0x4c]
call fcn.00404a60
push 0x4a374c
lea ecx, [esp + 0x50]
call fcn.00404a60
push str.Uninstall.exe
lea ecx, [esp + 0x54]
call fcn.00404a60
push str.wow_helper.exe
lea ecx, [esp + 0x58]
call fcn.00404a60
lea ecx, [esp + 0x1b]
push ecx
lea edx, [esp + 0x1f]
push edx
lea ecx, [esp + 0x64]
call fcn.004040f0
xor ebp, ebp
mov dword [esp + 0x24], ebp
lea edi, [esp + 0x3c]
mov esi, dword [esp + 0x28]
mov ecx, dword [esi - 0x10]
cmp ecx, ebp
je 0x405d9d
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp eax, ebp
jne 0x405dac
mov eax, dword [0x4fe3b0]
mov edx, dword [eax + 0x10]
mov ecx, 0x4fe3b0
call edx
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
je 0x405fec
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edx, dword [esi - 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push edx
lea ecx, [esp + 0x20]
push esi
push ecx
call fcn.004037a0
add esp, 0x14
push edi
push 0x4a3704
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00403af0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00403a70
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405e2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405ef3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x405ef3
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00404810
mov esi, dword [eax]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x64]
push ecx
call fcn.00404810
add esp, 0x10
cmp esi, ebp
je 0x405fec
mov eax, dword [eax]
push esi
push eax
call fcn.004397bd
add esp, 8
test eax, eax
mov eax, dword [esp + 0x58]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405ea8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ec8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x405ed5
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
jmp 0x405ef6
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x60]
call fcn.00405820
lea edx, [esp + 0x10]
push edx
mov ecx, eax
call fcn.00403b80
mov esi, dword [esp + 0x10]
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
inc eax
add edi, 4
cmp eax, 7
mov dword [esp + 0x24], eax
jl 0x405d87
cmp dword [esp + 0x78], ebp
jbe 0x405f76
lea ecx, [esp + 0x5c]
call fcn.00403c80
test al, al
je 0x405f76
lea ecx, [esp + 0x5c]
call fcn.00403db0
lea ecx, [esp + 0x5c]
test al, al
jne 0x405f71
call fcn.00403f20
lea ecx, [esp + 0x5c]
call fcn.00403e60
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x5c]
mov edx, dword [eax]
push eax
push ecx
push edx
push ecx
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x70]
call fcn.00405740
mov edx, dword [esp + 0x74]
push edx
call fcn.004390ba
mov eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebp
call fcn.004390ba
add esp, 8
lea esi, [esp + 0x58]
mov edi, 6
lea ecx, [ecx]
mov eax, dword [esi - 4]
sub esi, 4
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405fe2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
sub edi, 1
jns 0x405fc0
jmp 0x405a45
push 0x80004005
call fcn.00402e00
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406012
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
pop esi
add esp, 0x104
ret