Function at 0x446970
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x390], eax
xor eax, eax
push 0xfe
push eax
mov word [ebp - 0x184], ax
lea eax, [ebp - 0x182]
push eax
call fcn.0046f6e0
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push eax
call fcn.0046f6e0
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push eax
call fcn.0046f6e0
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x384], ax
lea eax, [ebp - 0x382]
push eax
call fcn.0046f6e0
lea eax, [ebp - 0x388]
mov dword [ebp - 0x38c], 0
push eax
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x388], 0
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x384]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [ebp - 0x390]
call fcn.004479d0
add esp, 0x4c
test edi, edi
je 0x446a5d
cmp word [edi], 0
je 0x446a5d
push edi
lea eax, [ebp - 0x84]
push 0x20
push eax
call fcn.0046fd12
add esp, 0xc
test esi, esi
je 0x446a76
cmp word [esi], 0
je 0x446a76
push esi
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.0046fd12
add esp, 0xc
mov edi, dword [ebp + 0x18]
lea eax, [ebp - 0x44]
mov esi, dword [ebp - 0x38c]
push edi
push esi
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x384]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [ebp - 0x390]
push str.DownloadFile____Url_s__HostName_s__UrlPath_s__Login_s__Password_s__Scheme_d__Resume_d
call fcn.00469290
add esp, 0x20
cmp esi, 5
je 0x446ae4
lea eax, [ebp - 0x184]
push eax
call fcn.004478d0
add esp, 4
test al, 2
je 0x446ace
cmp dword [0x4b552c], 0
je 0x446ae4
pop edi
pop esi
mov eax, 0x4ce
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
cmp esi, 1
jne 0x446b1d
push 0x8000000
push ebx
lea eax, [ebp - 0x384]
push eax
push dword [ebp - 0x388]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x184]
push eax
call fcn.00446370
add esp, 0x1c
mov esi, eax
jmp 0x446bec
cmp esi, 3
jne 0x446b59
push edi
push 0
push 0x8000000
push ebx
lea eax, [ebp - 0x384]
push eax
push dword [ebp - 0x388]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x184]
push eax
call fcn.00446c10
add esp, 0x24
mov esi, eax
jmp 0x446bec
cmp esi, 4
jne 0x446b92
push edi
push 1
push 0x8000000
push ebx
lea eax, [ebp - 0x384]
push eax
push dword [ebp - 0x388]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x184]
push eax
call fcn.00446c10
add esp, 0x24
mov esi, eax
jmp 0x446bec
cmp esi, 5
jne 0x446be7
lea eax, [ebp - 0x384]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
lea eax, [ebp - 0x384]
neg esi
sbb esi, esi
and esi, 0xffffff92
add esi, 0x6e
jne 0x446bd7
neg edi
sbb edi, edi
and edi, 0x200000
or edi, 0x400000
push edi
push ebx
push eax
call fcn.004686e0
add esp, 0xc
mov esi, eax
jmp 0x446bec
push eax
push str.DownloadFile_____s_doesnt_exist_
call fcn.00469290
add esp, 8
jmp 0x446bec
mov esi, 0x57
push esi
push str.DownloadFile____End__d_
call fcn.00469290
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret