Function at 0x418980
Capabilities:
Check if file exists
Create thread
Delete file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x497e2a
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x4ba110]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push esi
push edi
mov eax, dword [0x4ba110]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
mov edi, ecx
push str.VERSION
lea esi, [edi + 0x10c]
lea eax, [esp + 0x80]
push esi
push eax
mov dword [esp + 0x2c], edi
call fcn.0040cb20
add esp, 0xc
push str.GUID
lea ecx, [esp + 0x48]
push esi
push ecx
mov dword [esp + 0x184], 0
call fcn.0040cb20
add esp, 0xc
lea edx, [esp + 0xec]
push edx
mov byte [esp + 0x17c], 1
call fcn.00417870
mov byte [esp + 0x178], 2
mov eax, dword [edi]
mov edx, dword [eax + 0x50]
lea ecx, [esp + 0x98]
push ecx
mov ecx, edi
call edx
push str.VERSION
push eax
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0x184], 3
call fcn.0040ce40
add esp, 0xc
mov byte [esp + 0x178], 4
cmp dword [eax + 0x14], 8
jb 0x418a5b
mov esi, dword [eax]
jmp 0x418a5d
mov esi, eax
mov ecx, dword [0x4bb674]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x14], ecx
test esi, esi
je 0x418ab6
mov edx, esi
shr edx, 0x10
test edx, edx
jne 0x418a89
movzx eax, si
push eax
lea ecx, [esp + 0x18]
call fcn.00401720
jmp 0x418ab6
push esi
call ebx
mov edi, eax
test edi, edi
je 0x418ab6
push edi
lea ecx, [esp + 0x18]
call fcn.00401970
test eax, eax
je 0x418ab6
lea eax, [edi + edi]
push eax
add eax, 2
push esi
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.00401020
add esp, 0x10
mov byte [esp + 0x178], 5
cmp dword [esp + 0x90], 8
mov esi, dword [esp + 0x7c]
jae 0x418ad0
lea esi, [esp + 0x7c]
mov ecx, dword [0x4bb674]
mov dword [esp + 0x18], ecx
test esi, esi
je 0x418b23
mov edx, esi
shr edx, 0x10
test edx, edx
jne 0x418af6
movzx eax, si
push eax
lea ecx, [esp + 0x1c]
call fcn.00401720
jmp 0x418b23
push esi
call ebx
mov edi, eax
test edi, edi
je 0x418b23
push edi
lea ecx, [esp + 0x1c]
call fcn.00401970
test eax, eax
je 0x418b23
lea eax, [edi + edi]
push eax
add eax, 2
push esi
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.00401020
add esp, 0x10
push ecx
mov bl, 6
mov byte [esp + 0x17c], bl
mov ecx, dword [0x4bb674]
mov edi, 0x4a67bc
shr edi, 0x10
mov esi, esp
mov dword [esp + 0x28], esp
mov dword [esi], ecx
mov dword [esp + 0x14], edi
test di, di
jne 0x418b5e
mov edx, 0x4a67bc
movzx eax, dx
push eax
mov ecx, esi
call fcn.00401720
jmp 0x418b97
push 0x4a67bc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x418b93
push edi
mov ecx, esi
call fcn.00401970
test eax, eax
je 0x418b93
lea eax, [edi + edi]
push eax
add eax, 2
push 0x4a67bc
push eax
mov eax, dword [esi]
push eax
call fcn.00401020
add esp, 0x10
mov edi, dword [esp + 0x14]
push ecx
mov byte [esp + 0x180], 7
mov ecx, dword [0x4bb674]
mov esi, esp
mov dword [esp + 0x24], esp
mov dword [esi], ecx
test di, di
jne 0x418bc5
mov edx, 0x4a67bc
movzx eax, dx
push eax
mov ecx, esi
call fcn.00401720
jmp 0x418bfa
push 0x4a67bc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x418bfa
push edi
mov ecx, esi
call fcn.00401970
test eax, eax
je 0x418bfa
lea eax, [edi + edi]
push eax
add eax, 2
push 0x4a67bc
push eax
mov eax, dword [esi]
push eax
call fcn.00401020
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0xfc]
push eax
xor cl, cl
mov byte [esp + 0x18c], bl
call fcn.00417a20
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x418c42
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x418c42
push esi
call fcn.00473f58
add esp, 4
mov esi, dword [esp + 0x14]
lea edx, [esi - 0xc]
cmp edx, dword [0x4bb670]
je 0x418c64
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x418c64
push esi
call fcn.00473f58
add esp, 4
mov esi, 8
cmp dword [esp + 0x74], esi
jb 0x418c7c
mov eax, dword [esp + 0x60]
push eax
call fcn.00473515
add esp, 4
xor ecx, ecx
mov byte [esp + 0x178], 2
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], 0
mov word [esp + 0x60], cx
cmp dword [esp + 0xac], esi
jb 0x418cb4
mov edx, dword [esp + 0x98]
push edx
call fcn.00473515
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x50]
lea edx, [esp + 0x98]
push edx
call eax
push str.GUID
push eax
lea ecx, [esp + 0x68]
push ecx
mov byte [esp + 0x184], 8
call fcn.0040ce40
add esp, 0xc
mov byte [esp + 0x178], 9
cmp dword [eax + 0x14], esi
jb 0x418cf3
mov esi, dword [eax]
jmp 0x418cf5
mov esi, eax
mov edx, dword [0x4bb674]
mov dword [esp + 0x18], edx
test esi, esi
je 0x418d4c
mov eax, esi
shr eax, 0x10
test eax, eax
jne 0x418d1b
movzx eax, si
push eax
lea ecx, [esp + 0x1c]
call fcn.00401720
jmp 0x418d4c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x418d4c
push edi
lea ecx, [esp + 0x1c]
call fcn.00401970
test eax, eax
je 0x418d4c
mov ecx, dword [esp + 0x18]
lea eax, [edi + edi]
push eax
push esi
add eax, 2
push eax
push ecx
call fcn.00401020
add esp, 0x10
mov byte [esp + 0x178], 0xa
cmp dword [esp + 0x58], 8
mov esi, dword [esp + 0x44]
jae 0x418d63
lea esi, [esp + 0x44]
mov edx, dword [0x4bb674]
mov dword [esp + 0x14], edx
test esi, esi
je 0x418dba
mov eax, esi
shr eax, 0x10
test eax, eax
jne 0x418d89
movzx eax, si
push eax
lea ecx, [esp + 0x18]
call fcn.00401720
jmp 0x418dba
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x418dba
push edi
lea ecx, [esp + 0x18]
call fcn.00401970
test eax, eax
je 0x418dba
mov ecx, dword [esp + 0x14]
lea eax, [edi + edi]
push eax
push esi
add eax, 2
push eax
push ecx
call fcn.00401020
add esp, 0x10
mov byte [esp + 0x178], 0xb
mov ebx, dword [esp + 0x10]
mov edx, dword [0x4bb674]
push ecx
mov esi, esp
mov dword [esp + 0x20], esp
mov dword [esi], edx
test bx, bx
jne 0x418dec
mov eax, 0x4a67bc
movzx eax, ax
push eax
mov ecx, esi
call fcn.00401720
jmp 0x418e21
push 0x4a67bc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x418e21
push edi
mov ecx, esi
call fcn.00401970
test eax, eax
je 0x418e21
mov ecx, dword [esi]
lea eax, [edi + edi]
push eax
push 0x4a67bc
add eax, 2
push eax
push ecx
call fcn.00401020
add esp, 0x10
mov byte [esp + 0x17c], 0xc
mov edx, dword [0x4bb674]
push ecx
mov edi, esp
mov dword [esp + 0x2c], esp
mov dword [edi], edx
test bx, bx
jne 0x418e4f
mov eax, 0x4a67bc
movzx eax, ax
push eax
mov ecx, edi
call fcn.00401720
jmp 0x418e84
push 0x4a67bc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x418e84
push esi
mov ecx, edi
call fcn.00401970
test eax, eax
je 0x418e84
mov ecx, dword [edi]
lea eax, [esi + esi]
push eax
push 0x4a67bc
add eax, 2
push eax
push ecx
call fcn.00401020
add esp, 0x10
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
lea ecx, [esp + 0xf8]
push eax
push ecx
xor cl, cl
mov byte [esp + 0x18c], 0xb
call fcn.00417a20
mov eax, dword [esp + 0x14]
lea edx, [eax - 0xc]
cmp edx, dword [0x4bb670]
je 0x418ecb
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x418ecb
push esi
call fcn.00473f58
add esp, 4
mov esi, dword [esp + 0x18]
lea eax, [esi - 0xc]
cmp eax, dword [0x4bb670]
je 0x418ef1
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x418ef1
push esi
call fcn.00473f58
add esp, 4
mov esi, 8
cmp dword [esp + 0x74], esi
jb 0x418f09
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00473515
add esp, 4
xor edx, edx
mov ebx, 7
mov byte [esp + 0x178], 2
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], 0
mov word [esp + 0x60], dx
cmp dword [esp + 0xac], esi
jb 0x418f42
mov eax, dword [esp + 0x98]
push eax
call fcn.00473515
add esp, 4
mov ecx, dword [esp + 0xf0]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edx, [esp + 0x1c]
push edx
push 0
lea eax, [esp + 0xf4]
push eax
push 0x422c50
push 0
push 0
call fcn.00478f26
add esp, 0x18
mov dword [esp + 0x124], eax
test eax, eax
je 0x418f8b
mov ecx, dword [esp + 0xf8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x7c]
cmp dword [esp + 0x90], esi
jae 0x418f9c
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x41922c
lea edx, [esp + 0x98]
push edx
lea ecx, [esp + 0x80]
call fcn.004115e0
add esp, 4
mov edi, dword [esp + 0x20]
add edi, 0x144
xor ecx, ecx
mov dword [edi + 0x10], ecx
cmp dword [edi + 0x14], esi
jb 0x418fdb
mov eax, dword [edi]
jmp 0x418fdd
mov eax, edi
xor edx, edx
mov word [eax], dx
xor eax, eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ecx
mov word [esp + 0x28], ax
mov byte [esp + 0x178], 0xe
cmp dword [esp + 0xa8], ecx
je 0x4191c6
xor ebx, ebx
push ebx
push 0xa
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0xc0]
push edx
call fcn.00412960
add esp, 0x10
mov esi, eax
lea eax, [esp + 0x28]
cmp eax, esi
je 0x419096
cmp dword [esp + 0x3c], 8
jb 0x419041
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00473515
add esp, 4
xor edx, edx
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], dx
cmp dword [esi + 0x14], 8
jae 0x419071
mov eax, dword [esi + 0x10]
inc eax
add eax, eax
push eax
lea ecx, [esp + 0x2c]
push esi
push ecx
call fcn.004738f0
add esp, 0xc
jmp 0x419079
mov edx, dword [esi]
mov dword [esp + 0x28], edx
mov dword [esi], ebx
mov eax, dword [esi + 0x10]
mov dword [esp + 0x38], eax
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x3c], ecx
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], dx
mov byte [esp + 0x178], 0xe
cmp dword [esp + 0xc8], 8
jb 0x4190b8
mov eax, dword [esp + 0xb4]
push eax
call fcn.00473515
add esp, 4
xor ecx, ecx
push 1
mov word [esp + 0x64], cx
push 0x4a8da4
lea ecx, [esp + 0x68]
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], ebx
call fcn.0040b930
push ebx
push 0x3d
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0xc0]
push eax
mov byte [esp + 0x188], 0x10
call fcn.00412880
add esp, 0x10
mov byte [esp + 0x178], 0x11
cmp dword [edi + 0x10], ebx
je 0x419154
cmp dword [eax + 0x10], ebx
je 0x41915f
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0xd4]
push edx
mov ebx, eax
call fcn.0040cc50
add esp, 8
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
mov byte [esp + 0x184], 0x12
call fcn.0040b700
cmp dword [esp + 0xe4], 8
jb 0x41915f
mov eax, dword [esp + 0xd0]
push eax
call fcn.00473515
add esp, 4
jmp 0x41915f
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.0040b320
mov esi, 8
cmp dword [esp + 0xc8], esi
jb 0x41917d
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.00473515
add esp, 4
xor edx, edx
mov byte [esp + 0x178], 0xe
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], 0
mov word [esp + 0xb4], dx
cmp dword [esp + 0x74], esi
jb 0x4191b8
mov eax, dword [esp + 0x60]
push eax
call fcn.00473515
add esp, 4
cmp dword [esp + 0xa8], 0
jne 0x419006
mov ecx, dword [esp + 0x20]
push edi
add ecx, 0x17c
call fcn.00402f60
mov esi, 8
cmp dword [esp + 0x3c], esi
jb 0x4191ee
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00473515
add esp, 4
xor edx, edx
mov byte [esp + 0x178], 2
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], dx
cmp dword [esp + 0xac], esi
jb 0x419301
mov eax, dword [esp + 0x98]
push eax
call fcn.00473515
jmp 0x4192fe
mov ecx, dword [0x4bb674]
mov dword [esp + 0x10], ecx
mov byte [esp + 0x178], 0x13
mov eax, dword [esp + 0x7c]
cmp dword [esp + 0x90], esi
jae 0x41924f
lea eax, [esp + 0x7c]
push 0x4a8da8
push eax
lea edx, [esp + 0x18]
push str.ERROR_Cant_reach__s_file_from_the_server_url___s
push edx
call fcn.004011c0
add esp, 0x10
push 0x77
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.CBrowserInstallerImp::GetGuidAndVersionFromServer
call fcn.00401ef0
mov byte [esp + 0x180], 0x14
mov ecx, dword [0x4bd588]
test ecx, ecx
jne 0x4192c1
push 0x1c
call fcn.004740ea
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [esp + 0x180], 0x15
test eax, eax
je 0x4192af
mov ebx, eax
call fcn.00401c10
jmp 0x4192b1
xor eax, eax
mov ecx, eax
mov byte [esp + 0x180], 0x14
mov dword [0x4bd588], ecx
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x184], 0x13
call fcn.00401d00
mov byte [esp + 0x178], 2
mov eax, dword [esp + 0x10]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x419301
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x419301
push esi
call fcn.00473f58
add esp, 4
mov eax, dword [esp + 0x44]
mov esi, 8
cmp dword [esp + 0x58], esi
jae 0x419314
lea eax, [esp + 0x44]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
cmp eax, 1
jne 0x419443
lea edx, [esp + 0x98]
push edx
lea ecx, [esp + 0x48]
call fcn.004115e0
add esp, 4
mov byte [esp + 0x178], 0x16
push 0x1d
xor eax, eax
push str.const_wchar_t_kAppGuid____L_
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.0040b930
mov byte [esp + 0x178], 0x17
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], esi
jae 0x41937f
lea eax, [esp + 0x28]
mov edi, dword [esp + 0x38]
push edi
push 0
push eax
lea ecx, [esp + 0xa4]
call fcn.0040b420
mov esi, eax
cmp esi, 0xffffffff
je 0x4193f5
push 2
add esi, edi
push esi
push 0x4a8ee8
lea ecx, [esp + 0xa4]
call fcn.0040b420
cmp eax, 0xffffffff
je 0x4193f5
cmp esi, eax
jae 0x4193f5
sub eax, esi
push eax
push esi
lea ecx, [esp + 0xd8]
push ecx
lea ecx, [esp + 0xa4]
call fcn.0040ab70
mov ecx, dword [esp + 0x20]
push eax
add ecx, 0x128
mov byte [esp + 0x17c], 0x18
call fcn.0040b1e0
lea ecx, [esp + 0xd0]
call fcn.0040ab10
mov esi, 8
cmp dword [esp + 0x3c], esi
jb 0x41940d
mov edx, dword [esp + 0x28]
push edx
call fcn.00473515
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
cmp dword [esp + 0xac], esi
jb 0x419516
mov ecx, dword [esp + 0x98]
push ecx
call fcn.00473515
jmp 0x419513
mov edx, dword [0x4bb674]
mov dword [esp + 0x10], edx
mov byte [esp + 0x178], 0x19
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], esi
jae 0x419463
lea eax, [esp + 0x44]
push str.http:__files.playfree.org_PlayFreeBrowser26_GUID
push eax
lea eax, [esp + 0x18]
push str.ERROR_Cant_reach__s_file_from_the_server_url___s
push eax
call fcn.004011c0
add esp, 0x10
push 0x87
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.CBrowserInstallerImp::GetGuidAndVersionFromServer
call fcn.00401ef0
mov byte [esp + 0x180], 0x1a
mov ecx, dword [0x4bd588]
test ecx, ecx
jne 0x4194de
push 0x1c
call fcn.004740ea
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [esp + 0x180], 0x1b
test eax, eax
je 0x4194c6
mov ebx, eax
call fcn.00401c10
jmp 0x4194c8
xor eax, eax
mov byte [esp + 0x180], 0x1a
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, eax
mov dword [0x4bd588], ecx
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x184], 0x19
call fcn.00401d00
mov eax, dword [esp + 0x10]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4bb670]
je 0x419516
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x419516
push esi
call fcn.00473f58
add esp, 4
mov eax, dword [esp + 0x7c]
mov edi, 8
cmp dword [esp + 0x90], edi
jae 0x41952c
lea eax, [esp + 0x7c]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x41954e
mov eax, dword [esp + 0x7c]
cmp dword [esp + 0x90], edi
jae 0x41954b
lea eax, [esp + 0x7c]
push eax
call esi
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], edi
jae 0x41955c
lea eax, [esp + 0x44]
push eax
call ebx
cmp eax, 1
jne 0x419575
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], edi
jae 0x419572
lea eax, [esp + 0x44]
push eax
call esi
lea ecx, [esp + 0xec]
mov byte [esp + 0x178], 1
call fcn.00417960
cmp dword [esp + 0x58], edi
jb 0x41959c
mov edx, dword [esp + 0x44]
push edx
call fcn.00473515
add esp, 4
xor eax, eax
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
cmp dword [esp + 0x90], edi
jb 0x4195c9
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00473515
add esp, 4
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.0047421a
mov esp, ebp
pop ebp
ret