Function at 0x40b180
Capabilities:
Check if file exists
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47304b
mov eax, dword fs:[0]
push eax
sub esp, 0xa84
mov eax, dword [0x48e300]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xa80], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xa88], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xa8c], edi
mov dword [ebp - 0xa84], eax
call sym.host.exe_curl_easy_init
mov esi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0xa90], esi
mov dword [ebp - 0xa7c], 0
call fcn.00424e10
add esp, 0xc
test esi, esi
jne 0x40b227
cmp byte [ebx + 8], 0
jne 0x40b6eb
push esi
push 0x48201c
push 0x482024
jmp 0x40b6e2
push dword [ebp - 0xa80]
push 0x2712
push esi
call sym.host.exe_curl_easy_setopt
add esp, 0xc
push 1
push 0x2c
push esi
call sym.host.exe_curl_easy_setopt
add esp, 0xc
push esi
call sym.host.exe_curl_easy_perform
add esp, 4
test eax, eax
jne 0x40b291
lea eax, [ebp - 0xa7c]
push eax
push 0x200002
push esi
call sym.host.exe_curl_easy_getinfo
add esp, 0xc
cmp dword [ebp - 0xa7c], 0xc8
je 0x40b291
cmp byte [ebx + 8], 0
jne 0x40b6eb
push 0
push 0x48201c
push 0x482034
jmp 0x40b6e2
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x20
push 2
push 0
push 0
push 0x1f01ff
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x2b
push esi
call sym.host.exe_curl_easy_setopt
add esp, 0xc
push 0
push 0x2c
push esi
call sym.host.exe_curl_easy_setopt
add esp, 0xc
push fcn.0040b130
push 0x4e58
push esi
call sym.host.exe_curl_easy_setopt
add esp, 0xc
push ebx
push 0x2749
push esi
call sym.host.exe_curl_easy_setopt
add esp, 0xc
push edi
push 0x2711
push esi
call sym.host.exe_curl_easy_setopt
add esp, 0xc
push 0x40b140
push 0x4e2b
push esi
call sym.host.exe_curl_easy_setopt
add esp, 0xc
push esi
call sym.host.exe_curl_easy_perform
add esp, 4
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x40b6d0
lea eax, [ebp - 0xa7c]
push eax
push 0x200002
push dword [ebp - 0xa90]
call sym.host.exe_curl_easy_getinfo
add esp, 0xc
cmp dword [ebp - 0xa7c], 0xc8
jne 0x40b6eb
lea eax, [ebp - 0xa80]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0xa80], esi
mov esi, dword [ebp - 0xa8c]
push eax
push ecx
or edx, 0xffffffff
mov ecx, esi
call fcn.00409440
add esp, 0xc
test eax, eax
je 0x40b6eb
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xa88]
call fcn.004227dd
add esp, 8
test eax, eax
jne 0x40b6bc
mov dword [ebp - 0x834], 7
mov dword [ebp - 0x838], eax
mov word [ebp - 0x848], ax
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x482074
lea ecx, [ebp - 0x848]
call fcn.00409260
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x848]
call fcn.0040bec0
push 0x482074
lea ecx, [ebp - 0x848]
call fcn.0040bec0
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.00421563
add esp, 8
test eax, eax
je 0x40b41f
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x481a40
lea eax, [ebp - 0x218]
push eax
call edi
push 0x482078
lea eax, [ebp - 0x218]
push eax
call edi
push 0x482090
lea ecx, [ebp - 0x848]
call fcn.0040bec0
push esi
lea ecx, [ebp - 0x848]
call fcn.0040bec0
push 0x482074
lea ecx, [ebp - 0x848]
call fcn.0040bec0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.00424e10
add esp, 0xc
lea eax, [ebp - 0xa80]
push eax
lea eax, [ebp - 0x628]
push eax
push ecx
or edx, 0xffffffff
lea ecx, [ebp - 0x218]
call fcn.00409440
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
test eax, eax
je 0x40b4f3
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0xa84]
call fcn.004227dd
add esp, 8
test eax, eax
je 0x40b4f3
push 0x64
call edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x64
call edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b614
push ecx
mov ecx, esi
call fcn.00414e00
add esp, 4
mov esi, eax
push 0x22c
lea eax, [ebp - 0xa74]
push 0
push eax
mov dword [ebp - 0xa78], 0
call fcn.00424e10
add esp, 0xc
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebp - 0xa84]
push eax
push ecx
mov ecx, esi
mov dword [ebp - 0xa84], 0
call fcn.00414f90
add esp, 0xc
test eax, eax
je 0x40b592
mov ecx, esi
call fcn.00415100
cmp byte [ebx + 8], 0
jne 0x40b582
push 0
push 0x48201c
push 0x482098
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x848]
call fcn.00403730
jmp 0x40b6eb
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00424e10
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x481a40
lea eax, [ebp - 0x420]
push eax
call edi
push 0x482078
lea eax, [ebp - 0x420]
push eax
call edi
mov edx, dword [ebp - 0xa78]
sub esp, 8
lea eax, [ebp - 0x420]
push eax
mov ecx, esi
call fcn.004150b0
add esp, 0xc
mov ecx, esi
call fcn.00415100
lea ecx, [ebx + 0xc]
lea eax, [ebp - 0x848]
cmp ecx, eax
je 0x40b62b
push 0xffffffffffffffff
push 0
push eax
call fcn.00403c50
cmp dword [ebp - 0x834], 8
push 5
lea ecx, [ebp - 0x830]
push ecx
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x481dec
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jl 0x40b6a1
mov ecx, str.OnlinePlayer.exe
call fcn.0040a0e0
mov ecx, str.Task.exe
call fcn.0040a0e0
mov ecx, str.PopView.exe
call fcn.0040a0e0
mov ecx, str.OpenView.exe
call fcn.0040a0e0
mov ecx, str.host.exe
call fcn.0040a0e0
lea ecx, [ebp - 0x848]
call fcn.00403730
jmp 0x40b6eb
cmp byte [ebx + 8], 0
jne 0x40b582
push 0
push 0x48201c
push 0x482138
jmp 0x40b579
cmp byte [ebx + 8], 0
jne 0x40b6eb
push 0
push 0x48201c
push 0x482178
jmp 0x40b6e2
cmp byte [ebx + 8], 0
jne 0x40b6eb
push 0
push 0x48201c
push 0x4821d0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00420548
mov esp, ebp
pop ebp
ret 0x10