Function at 0x40e560
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x420c80
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x42b1d0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42b1d0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x80]
xor ebx, ebx
push str.WriteURL_enter...
mov dword [esp + 0x7c], ebx
call fcn.004124a0
add esp, 4
lea ecx, [esp + 0x34]
call fcn.0040fd30
mov byte [esp + 0x78], 1
push ebx
push 0x423d93
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00401c30
push 0xd
push str.Arconfig.dat
lea eax, [esp + 0x3c]
mov byte [esp + 0x80], 2
call fcn.00401740
mov eax, dword [esp + 0x38]
mov edi, 0x10
xor esi, esi
cmp dword [esp + 0x4c], edi
jae 0x40e606
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40e779
push ebx
push 0x423d93
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.00401c30
mov byte [esp + 0x78], 3
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x4c], edi
jae 0x40e647
lea ecx, [esp + 0x38]
push str.domain
lea edx, [esp + 0x54]
mov ebx, str.OPEN_URL
call fcn.0040e120
mov edi, dword [esp + 0x68]
mov ebx, dword [esp + 0x54]
mov edx, ebx
cmp edi, 0x10
jae 0x40e66d
lea edx, [esp + 0x54]
xor eax, eax
mov ecx, 0x423d93
call fcn.00401040
mov esi, dword [esp + 0x64]
test eax, eax
jne 0x40e68c
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x40e6cb
mov eax, esi
cmp esi, 0x17
jb 0x40e698
mov eax, 0x17
mov edx, ebx
cmp edi, 0x10
jae 0x40e6a3
lea edx, [esp + 0x54]
mov ecx, str.This_value_is_not_found
call fcn.00401040
test eax, eax
jne 0x40e6c0
cmp esi, 0x17
jb 0x40e6c0
cmp esi, 0x17
setne al
test eax, eax
je 0x40e6cb
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x58]
push eax
jmp 0x40e6d7
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401850
cmp dword [ebp + 0x248], 2
jne 0x40e70e
push 9
push str._version
lea eax, [esp + 0x20]
call fcn.00401740
push 0
lea edx, [ebp + 0x168]
push edx
or eax, 0xffffffff
lea esi, [esp + 0x20]
call fcn.00401b40
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [ebp + 0x18]
call fcn.00401850
mov edi, dword [esp + 0x1c]
mov ebx, 0x10
cmp dword [esp + 0x30], ebx
jae 0x40e732
lea edi, [esp + 0x1c]
mov esi, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebx
jae 0x40e740
lea esi, [esp + 0x38]
call fcn.00411900
mov esi, eax
test esi, esi
je 0x40e752
push str.WriteURL_successed...
jmp 0x40e757
push str.WriteURL_failed...
call fcn.004124a0
add esp, 4
cmp dword [esp + 0x68], ebx
jb 0x40e772
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0041288e
add esp, 4
mov edi, 0x10
xor ebx, ebx
cmp dword [esp + 0x30], edi
jb 0x40e78c
mov edx, dword [esp + 0x1c]
push edx
call fcn.0041288e
add esp, 4
mov ebp, 0xf
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp dword [esp + 0x4c], edi
jb 0x40e7b0
mov eax, dword [esp + 0x38]
push eax
call fcn.0041288e
add esp, 4
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
cmp dword [esp + 0x9c], edi
jb 0x40e7d5
mov ecx, dword [esp + 0x88]
push ecx
call fcn.0041288e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00412899
add esp, 0x68
ret 0x20