Function at 0x4bf570
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5481f5
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x162b0
call fcn.00518fd0
mov eax, dword [0x57f0b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xec3c], 0
mov ecx, 0x59d518
call fcn.0040f700
test eax, eax
jne 0x4bf5c3
call fcn.004c4430
mov ecx, 0x59d518
call fcn.0040f700
test eax, eax
je 0x4bf913
lea ecx, [ebp - 0x58]
call fcn.00404860
mov dword [ebp - 4], 0
push 0x563af1
call fcn.00401cb0
add esp, 4
push eax
push 0x563af1
mov ecx, 0x59d528
call fcn.00405f10
xor edi, edi
mov dword [ebp - 0xec40], edi
mov ecx, 0x59d518
call fcn.0040f700
cmp edi, eax
jae 0x4bf904
push str.IPAddress
lea ecx, [ebp - 0xec8c]
call fcn.00404820
mov byte [ebp - 4], 1
push edi
call fcn.004b9130
mov esi, eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403e30
mov eax, ecx
push eax
mov ecx, esi
call fcn.00404110
call fcn.00406780
test al, al
je 0x4bf6be
mov ebx, dword [esi + 8]
push ecx
lea ecx, [ebp - 0xec34]
call fcn.00411e30
lea eax, [ebp - 0xec8c]
push eax
mov eax, ecx
push eax
mov ecx, ebx
call fcn.00412a10
lea eax, [ebp - 0xec4c]
push eax
mov ecx, ebx
call fcn.00406300
mov esi, dword [ebp - 0xec34]
cmp esi, dword [eax]
je 0x4bf6ab
lea edx, [esi + 0x10]
lea ecx, [ebp - 0xec8c]
call fcn.004129e0
test al, al
jne 0x4bf6ab
mov dword [ebp - 0xec44], esi
lea eax, [ebp - 0xec44]
jmp 0x4bf6b9
lea eax, [ebp - 0xec48]
push eax
mov ecx, ebx
call fcn.00406300
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0xec74]
push eax
push ecx
push edi
call fcn.004b9130
add esp, 4
mov ecx, eax
call fcn.00404110
push eax
lea ecx, [ebp - 0x28]
call fcn.0040bf00
mov bl, al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xec8c]
call fcn.00404760
test bl, bl
jne 0x4bf8fe
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
push eax
push ecx
push str.IPAddress
push ecx
push edi
call fcn.004b9130
add esp, 4
mov ecx, eax
call fcn.00406b90
add esp, 4
mov ecx, eax
call fcn.00415ad0
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x40]
call fcn.004c01a0
test eax, eax
je 0x4bf782
lea eax, [ebp - 0xeca4]
push eax
push ecx
push str.Gateway
push ecx
push edi
call fcn.004b9130
add esp, 4
mov ecx, eax
call fcn.00406b90
add esp, 4
mov ecx, eax
call fcn.00415ad0
mov byte [ebp - 4], 4
mov ebx, dword [ebp - 0xec3c]
or ebx, 1
mov dword [ebp - 0xec3c], ebx
push ecx
mov ecx, eax
call fcn.004c01a0
test eax, eax
je 0x4bf788
mov byte [ebp - 0xec35], 1
jmp 0x4bf78f
mov ebx, dword [ebp - 0xec3c]
mov byte [ebp - 0xec35], 0
mov dword [ebp - 4], 3
test bl, 1
je 0x4bf7af
and ebx, 0xfffffffe
mov dword [ebp - 0xec3c], ebx
lea ecx, [ebp - 0xeca4]
call fcn.00404760
cmp byte [ebp - 0xec35], 0
je 0x4bf873
lea eax, [ebp - 0xec64]
push eax
push ecx
push 0x57523c
push ecx
push edi
call fcn.004b9130
add esp, 4
mov ecx, eax
call fcn.00406b90
add esp, 4
mov ecx, eax
call fcn.00415ad0
mov esi, eax
mov byte [ebp - 4], 5
push ecx
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0xecec]
call fcn.004c1ca0
add esp, 4
mov byte [ebp - 4], 6
push esi
mov edx, eax
lea ecx, [ebp - 0xecd4]
call fcn.00415c00
add esp, 4
mov byte [ebp - 4], 7
push 0x575238
mov edx, eax
lea ecx, [ebp - 0xecbc]
call fcn.00406be0
add esp, 4
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x58]
call fcn.004046f0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xecbc]
call fcn.00404760
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xecd4]
call fcn.00404760
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xecec]
call fcn.00404760
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xec64]
call fcn.00404760
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00404760
mov dword [ebp - 4], 0
jmp 0x4bf8c6
lea ecx, [ebp - 0x58]
call fcn.00404660
cmp eax, 0xff
jae 0x4bf904
call fcn.00405d50
cmp eax, 0x59d528
je 0x4bf8fe
call fcn.00405d50
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x4bf8f0
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, 0x59d528
call fcn.00405f10
inc edi
jmp 0x4bf603
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00404760
push 0x75d0
lea eax, [ebp - 0x162c0]
push eax
call fcn.004c6f60
add esp, 4
push eax
lea eax, [ebp - 0x7660]
push eax
call fcn.0051ad20
add esp, 0xc
push 0x75d0
lea eax, [ebp - 0x7660]
push eax
lea eax, [ebp - 0xec30]
push eax
call fcn.0051ad20
add esp, 0xc
lea eax, [ebp - 0x8cb8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4bfb0d
mov dword [ebp - 4], 0xb
push 0xb8
push 0
lea eax, [ebp - 0x148]
push eax
call fcn.0051b820
add esp, 0xc
sub esp, 0xc
lea eax, [ebp - 0x8cb8]
push eax
lea ecx, [ebp - 0x148]
call fcn.004b9330
mov byte [ebp - 4], 0xc
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0xec48], esp
push ecx
call fcn.00403f50
mov byte [ebp - 4], 0xd
push 0
push 1
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x148]
lea ecx, [ebp - 0x28]
call fcn.004bb180
add esp, 0x30
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x28]
call fcn.004040e0
test al, al
jne 0x4bfaeb
push str.proxy
lea ecx, [ebp - 0x40]
call fcn.00404820
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0xec74]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404110
mov esi, eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00417b10
push esi
mov ecx, eax
call fcn.0040bf00
mov bl, al
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x40]
call fcn.00404760
test bl, bl
jne 0x4bfa65
lea eax, [ebp - 0xec64]
push eax
push ecx
push str.proxy
lea ecx, [ebp - 0x28]
call fcn.00406b90
add esp, 4
mov ecx, eax
call fcn.00415ad0
mov byte [ebp - 4], 0x10
push eax
mov ecx, 0x5a4b10
call fcn.00415a80
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xec64]
call fcn.00404760
push str.auth
lea ecx, [ebp - 0x40]
call fcn.00404820
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404110
mov esi, eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xec74]
push eax
call fcn.00417b10
push esi
mov ecx, eax
call fcn.0040bf00
mov bl, al
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x40]
call fcn.00404760
test bl, bl
jne 0x4bfaeb
lea eax, [ebp - 0xec64]
push eax
push ecx
push str.auth
lea ecx, [ebp - 0x28]
call fcn.00406b90
add esp, 4
mov ecx, eax
call fcn.00415ad0
mov byte [ebp - 4], 0x12
push eax
mov ecx, 0x5a4b28
call fcn.00415a80
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0xec64]
call fcn.00404760
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x28]
call fcn.00404390
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x148]
call fcn.004b72d0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00518690
mov esp, ebp
pop ebp
ret