Function at 0x4168f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x394
mov eax, dword [0x4b1120]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x38c], 0
xor eax, eax
mov word [ebp - 0x308], ax
push 0xfe
push 0
lea ecx, [ebp - 0x306]
push ecx
call fcn.00447660
add esp, 0xc
xor edx, edx
mov word [ebp - 0x388], dx
push 0x3e
push 0
lea eax, [ebp - 0x386]
push eax
call fcn.00447660
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x348], cx
push 0x3e
push 0
lea edx, [ebp - 0x346]
push edx
call fcn.00447660
add esp, 0xc
xor eax, eax
mov word [ebp - 0x208], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x206]
push ecx
call fcn.00447660
add esp, 0xc
lea edx, [ebp - 0x390]
push edx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x348]
push ecx
lea edx, [ebp - 0x388]
push edx
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x308]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00415020
add esp, 0x1c
cmp dword [ebp + 0xc], 0
je 0x4169db
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
je 0x4169db
mov edx, dword [ebp + 0xc]
push edx
push 0x20
lea eax, [ebp - 0x388]
push eax
call fcn.0044a00d
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x416a00
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx]
test edx, edx
je 0x416a00
mov eax, dword [ebp + 0x10]
push eax
push 0x20
lea ecx, [ebp - 0x348]
push ecx
call fcn.0044a00d
add esp, 0xc
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x348]
push ecx
lea edx, [ebp - 0x388]
push edx
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x308]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.DownloadFile____Url_s__HostName_s__UrlPath_s__Login_s__Password_s__Scheme_d__Resume_d
call fcn.00437970
add esp, 0x20
cmp dword [ebp - 4], 5
je 0x416a7c
push 0
lea eax, [ebp - 0x308]
push eax
call fcn.004148a0
add esp, 8
mov dword [ebp - 0x394], eax
mov ecx, dword [ebp - 0x394]
and ecx, 2
je 0x416a66
cmp dword [0x4c9c48], 0
je 0x416a7c
mov edx, dword [ebp - 0x394]
mov dword [ebp - 0x38c], edx
mov eax, 0x4ce
jmp 0x416bd4
cmp dword [ebp - 4], 1
jne 0x416ac1
push 0x8000000
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp - 0x390]
push edx
lea eax, [ebp - 0x348]
push eax
lea ecx, [ebp - 0x388]
push ecx
lea edx, [ebp - 0x308]
push edx
call fcn.00415450
add esp, 0x1c
mov dword [ebp - 0x38c], eax
jmp 0x416bba
cmp dword [ebp - 4], 3
jne 0x416b0c
mov eax, dword [ebp + 0x18]
push eax
push 0
push 0x8000000
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x208]
push edx
mov eax, dword [ebp - 0x390]
push eax
lea ecx, [ebp - 0x348]
push ecx
lea edx, [ebp - 0x388]
push edx
lea eax, [ebp - 0x308]
push eax
call fcn.00415d40
add esp, 0x24
mov dword [ebp - 0x38c], eax
jmp 0x416bba
cmp dword [ebp - 4], 4
jne 0x416b54
mov ecx, dword [ebp + 0x18]
push ecx
push 1
push 0x8000000
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp - 0x390]
push ecx
lea edx, [ebp - 0x348]
push edx
lea eax, [ebp - 0x388]
push eax
lea ecx, [ebp - 0x308]
push ecx
call fcn.00415d40
add esp, 0x24
mov dword [ebp - 0x38c], eax
jmp 0x416bba
cmp dword [ebp - 4], 5
jne 0x416bba
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
and eax, 0xffffff92
add eax, 0x6e
mov dword [ebp - 0x38c], eax
jne 0x416ba6
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x200000
or eax, 0x400000
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x208]
push edx
call fcn.00436880
add esp, 0xc
mov dword [ebp - 0x38c], eax
jmp 0x416bba
lea eax, [ebp - 0x208]
push eax
push str.DownloadFile_____s_doesnt_exist_
call fcn.00437970
add esp, 8
mov ecx, dword [ebp - 0x38c]
push ecx
push str.DownloadFile____End__d_
call fcn.00437970
add esp, 8
mov eax, dword [ebp - 0x38c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00447645
mov esp, ebp
pop ebp
ret