Function at 0x507a40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545657
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x460
mov eax, dword [0x577018]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov al, byte [ebx + 8]
xor ecx, ecx
mov byte [ebp - 0x428], al
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x50831c
cmp dword [ebx + 0xd0], ecx
je 0x50831c
cmp eax, 3
jne 0x507aef
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebx + 0x10]
call fcn.0040f9f0
mov ecx, 1
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x24], ecx
cmp dword [eax + 0x10], 0
mov byte [ebp - 0x411], cl
je 0x507af6
mov byte [ebp - 0x411], 0
test cl, 1
je 0x507b12
and ecx, 0xfffffffe
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x470]
call fcn.004028f0
cmp byte [ebp - 0x411], 0
je 0x507c4a
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0xfffffffe
push eax
lea eax, [ebp - 0x434]
push eax
lea ecx, [edi + 0x80]
call fcn.004078d0
mov eax, dword [ebp - 0x42c]
cmp byte [eax + 0xd], 0
jne 0x507b63
cmp dword [eax + 0x10], 0xfffffffe
jg 0x507b63
cmp eax, dword [edi + 0x80]
je 0x507b63
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x507b63
mov eax, dword [ecx]
push 1
call dword [eax]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x20], esp
push 6
push str.normal
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.00402bc0
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x24], esp
lea eax, [ebx + 0x170]
mov dword [ebp - 0x41c], ecx
push eax
call fcn.00402a10
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
lea eax, [ebx + 0x18]
mov dword [ebp - 0x41c], ecx
push eax
call fcn.00402a10
push 0
push 0
push 0
push 0xfffffffffffffffe
lea ecx, [ebp - 0x410]
mov byte [ebp - 4], 0
call fcn.004c4830
push 0x468
mov byte [ebp - 4], 8
call fcn.00517390
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
push 0x468
push 0
push esi
mov byte [ebp - 4], 9
call fcn.00519680
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.Invalid_FTP_Address._No_file_name_specified_in_the_address.
call fcn.00409680
sub esp, 0x3d0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x410]
mov ecx, esp
push eax
call fcn.004bd890
push edi
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.00501c30
mov esi, eax
mov byte [ebp - 4], 8
mov dword [ebp - 0x24], 0xfffffffe
lea eax, [ebp - 0x24]
jmp 0x50845e
push 1
push dword [ebx + 0x2c0]
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call fcn.0050bf90
cmp byte [ebp - 0x428], 0
mov byte [ebp - 4], 0xb
jne 0x507c9f
sub esp, 0x18
lea eax, [ebp - 0x3c]
mov ecx, esp
mov dword [ebp - 0x420], esp
push eax
call fcn.00408180
sub esp, 0x3d0
mov byte [ebp - 4], 0xc
lea eax, [ebx + 0x10]
mov ecx, esp
push eax
call fcn.004bd890
mov byte [ebp - 4], 0xb
mov ecx, dword [edi + 0x6c]
call fcn.00418dd0
mov edx, dword [ebx + 0x2c0]
lea ecx, [ebp - 0x470]
call fcn.00410210
push eax
lea edx, [ebp - 0x3c]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x458]
call fcn.00417780
add esp, 4
push 0x560568
mov edx, eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x440]
call fcn.004175c0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x3c]
cmp eax, esi
je 0x507d13
mov ecx, eax
call fcn.00408210
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x3c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x2c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x42c]
cmp ecx, 8
jb 0x507d53
mov edx, dword [ebp - 0x440]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x507d49
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5084af
push ecx
push edx
call fcn.00517162
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x444]
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
cmp ecx, 8
jb 0x507db4
mov edx, dword [ebp - 0x458]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x507daa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5084af
push ecx
push edx
call fcn.00517162
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x45c]
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 7
mov word [ebp - 0x458], ax
cmp ecx, 8
jb 0x507e15
mov edx, dword [ebp - 0x470]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x507e0b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5084af
push ecx
push edx
call fcn.00517162
add esp, 8
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x3c]
cmp dword [ebp - 0x28], 8
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x507e34
test al, 0x10
jne 0x507e3c
lea ecx, [ebp - 0x3c]
call fcn.00408b60
mov dword [ebp - 4], 0xb
jmp 0x507e64
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
mov esi, dword [ebp - 0x41c]
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x508028
test al, 0x10
je 0x508028
cmp dword [ebx + 0x180], 0
je 0x507f14
push 0x728
call fcn.00517390
mov esi, eax
add esp, 4
mov dword [ebp - 0x418], esi
push 0x728
push 0
push esi
mov byte [ebp - 4], 0x19
call fcn.00519680
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x420], esp
call fcn.004ece40
sub esp, 0x18
mov byte [ebp - 4], 0x1a
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00408180
sub esp, 0x3d0
mov byte [ebp - 4], 0x1b
lea eax, [ebx + 0x10]
mov ecx, esp
push eax
call fcn.004bd890
push dword [ebp - 0x428]
mov eax, dword [ebp - 0x41c]
mov ecx, esi
push eax
push edi
mov byte [ebp - 4], 0x19
call fcn.004fc260
jmp 0x507f97
push 0x6a8
call fcn.00517390
mov esi, eax
add esp, 4
mov dword [ebp - 0x418], esi
push 0x6a8
push 0
push esi
mov byte [ebp - 4], 0x1c
call fcn.00519680
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x420], esp
call fcn.004ece40
sub esp, 0x18
mov byte [ebp - 4], 0x1d
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00408180
sub esp, 0x3d0
mov byte [ebp - 4], 0x1e
lea eax, [ebx + 0x10]
mov ecx, esp
push eax
call fcn.004bd890
mov eax, dword [ebp - 0x41c]
mov ecx, esi
push 0x16b
push 0x20d
push dword [ebp - 0x428]
mov byte [ebp - 4], 0x1c
push eax
push edi
call fcn.004f5060
mov esi, eax
mov byte [ebp - 4], 0xb
push 1
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
lea eax, [ebx + 0x2c0]
push eax
lea ecx, [edi + 0x70]
call fcn.0041ee50
cmp byte [ebp - 0x428], 0
mov ecx, edi
mov dword [eax], esi
jne 0x507fc9
call fcn.00505030
jmp 0x507fce
call fcn.0050c2e0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x28]
cmp ecx, 8
jb 0x50800f
mov edx, dword [ebp - 0x3c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x508005
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5084be
push ecx
push edx
call fcn.00517162
add esp, 8
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
jmp 0x508487
push dword [ebx + 0x2c0]
mov ecx, edi
call fcn.0050b500
test eax, eax
je 0x508041
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x418], esp
push 0x566f50
call fcn.00409680
sub esp, 0x18
mov byte [ebp - 4], 0x11
mov ecx, esp
push 6
push str.status
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.00402bc0
push dword [ebx + 0x2c0]
mov byte [ebp - 4], 0xb
mov ecx, dword [edi + 0x6c]
call fcn.0041b1d0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x418], esp
push str.Error_on_Creating_Temp_Directory.
call fcn.00409680
sub esp, 0x18
mov byte [ebp - 4], 0x12
mov ecx, esp
push 9
push str.errortext
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.00402bc0
push dword [ebx + 0x2c0]
mov byte [ebp - 4], 0xb
mov ecx, dword [edi + 0x6c]
call fcn.0041b1d0
cmp esi, 0xffffffff
jle 0x50817a
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x418], esp
push 0
push 0x5581b4
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.00402bc0
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
mov dword [ebp - 0x420], esp
push 0
push 0x5581b4
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.00402bc0
sub esp, 0x18
mov byte [ebp - 4], 0x14
mov ecx, esp
push 9
push str.Error____
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.00402bc0
mov byte [ebp - 4], 0xb
mov ecx, dword [edi + 0x60]
push esi
call fcn.004f45b0
push 0x468
call fcn.00517390
mov esi, eax
add esp, 4
mov dword [ebp - 0x418], esi
push 0x468
push 0
push esi
mov byte [ebp - 4], 0x15
call fcn.00519680
mov edx, dword [ebp - 0x2c]
mov ecx, bind
sub ecx, edx
add esp, 0xc
cmp ecx, 0x24
jb 0x5084b4
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
push edx
cmovae eax, dword [ebp - 0x3c]
push eax
push 0x24
push str.Error_on_Creating_Temp_Directory___
push ecx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x440]
call fcn.004097f0
mov eax, dword [ebp - 0x424]
or eax, 0x40
sub esp, 0x18
mov byte [ebp - 4], 0x16
or eax, 2
mov dword [ebp - 0x420], esp
mov ecx, esp
mov dword [ebp - 0x424], eax
lea edx, [ebp - 0x440]
mov dword [ebp - 0x24], eax
push 0x5606cc
call fcn.004175c0
sub esp, 0x3cc
mov dword [ebp - 4], 0x17
lea eax, [ebx + 0x10]
mov ecx, esp
push eax
call fcn.004bd890
push edi
mov ecx, esi
mov byte [ebp - 4], 0x16
call fcn.00501c30
mov esi, eax
mov dword [ebp - 4], 0xb
mov eax, dword [ebp - 0x424]
test al, 2
je 0x5082a4
mov ecx, dword [ebp - 0x42c]
cmp ecx, 8
jb 0x508287
mov edx, dword [ebp - 0x440]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x50827d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5084b9
push ecx
push edx
call fcn.00517162
add esp, 8
xor eax, eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
lea eax, [ebx + 0x2c0]
push eax
lea ecx, [edi + 0x80]
call fcn.0041ee50
push 1
mov ecx, esi
mov dword [eax], esi
mov eax, dword [esi]
call dword [eax + 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
cmp byte [ebp - 0x428], 0
mov ecx, edi
jne 0x5082da
call fcn.00505030
jmp 0x5082df
call fcn.0050c2e0
mov ecx, dword [ebp - 0x28]
cmp ecx, 8
jb 0x50800f
mov edx, dword [ebp - 0x3c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x508005
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5084be
jmp 0x508005
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0xffffffff
push eax
lea eax, [ebp - 0x434]
push eax
lea ecx, [edi + 0x80]
call fcn.004078d0
mov eax, dword [ebp - 0x42c]
cmp byte [eax + 0xd], 0
jne 0x508360
cmp dword [eax + 0x10], 0xffffffff
jg 0x508360
cmp eax, dword [edi + 0x80]
je 0x508360
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x508360
mov eax, dword [ecx]
push 1
call dword [eax]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x418], esp
push 6
push str.normal
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.00402bc0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x420], esp
lea eax, [ebx + 0x170]
mov dword [ebp - 0x20], ecx
push eax
call fcn.00402a10
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
lea eax, [ebx + 0x18]
mov dword [ebp - 0x20], ecx
push eax
call fcn.00402a10
push 0
push 0
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x410]
mov byte [ebp - 4], 0
call fcn.004c4830
push 0x468
mov byte [ebp - 4], 3
call fcn.00517390
mov esi, eax
add esp, 4
mov dword [ebp - 0x418], esi
push 0x468
push 0
push esi
mov byte [ebp - 4], 4
call fcn.00519680
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x420], esp
push 0x24
push str.Invalid_URL_or_Unsupported_Protocol.
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.00408270
sub esp, 0x3d0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x410]
mov ecx, esp
push eax
call fcn.004bd890
push edi
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.00501c30
mov esi, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], 0xffffffff
lea eax, [ebp - 0x20]
push eax
lea ecx, [edi + 0x80]
call fcn.0041ee50
push 1
mov ecx, esi
mov dword [eax], esi
mov eax, dword [esi]
call dword [eax + 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
lea ecx, [ebp - 0x410]
call fcn.00419bc0
lea ecx, [ebx + 0x10]
call fcn.00419bc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00517154
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x3d8
call fcn.0051eb64
call fcn.00401640
call fcn.0051eb64
call fcn.0051eb64
int3