Function at 0x422630
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x394
mov eax, dword [0x4cd724]
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.004677c0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x388], dx
push 0x3e
push 0
lea eax, [ebp - 0x386]
push eax
call fcn.004677c0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x348], cx
push 0x3e
push 0
lea edx, [ebp - 0x346]
push edx
call fcn.004677c0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x208], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x206]
push ecx
call fcn.004677c0
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x390], 0
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.00420bb0
add esp, 0x1c
cmp dword [ebp + 0xc], 0
je 0x42272c
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
je 0x42272c
mov edx, dword [ebp + 0xc]
push edx
push 0x20
lea eax, [ebp - 0x388]
push eax
call fcn.0046a10d
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x422751
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx]
test edx, edx
je 0x422751
mov eax, dword [ebp + 0x10]
push eax
push 0x20
lea ecx, [ebp - 0x348]
push ecx
call fcn.0046a10d
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.00456a00
add esp, 0x20
cmp dword [ebp - 4], 5
je 0x4227cd
push 0
lea eax, [ebp - 0x308]
push eax
call fcn.00420100
add esp, 8
mov dword [ebp - 0x394], eax
mov ecx, dword [ebp - 0x394]
and ecx, 2
je 0x4227b7
cmp dword [0x4e7810], 0
je 0x4227cd
mov edx, dword [ebp - 0x394]
mov dword [ebp - 0x38c], edx
mov eax, 0x4ce
jmp 0x422931
cmp dword [ebp - 4], 1
jne 0x422812
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.00421150
add esp, 0x1c
mov dword [ebp - 0x38c], eax
jmp 0x422917
cmp dword [ebp - 4], 3
jne 0x42285d
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.00421a40
add esp, 0x24
mov dword [ebp - 0x38c], eax
jmp 0x422917
cmp dword [ebp - 4], 4
jne 0x4228a5
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.00421a40
add esp, 0x24
mov dword [ebp - 0x38c], eax
jmp 0x422917
cmp dword [ebp - 4], 5
jne 0x42290d
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 0x4228f7
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.00455220
add esp, 0xc
mov dword [ebp - 0x38c], eax
jmp 0x42290b
lea eax, [ebp - 0x208]
push eax
push str.DownloadFile_____s_doesnt_exist_
call fcn.00456a00
add esp, 8
jmp 0x422917
mov dword [ebp - 0x38c], 0x57
mov ecx, dword [ebp - 0x38c]
push ecx
push str.DownloadFile____End__d_
call fcn.00456a00
add esp, 8
mov eax, dword [ebp - 0x38c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004677af
mov esp, ebp
pop ebp
ret