Function at 0x437e20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x4a86f0]
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.0046a330
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push eax
call fcn.0046a330
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push eax
call fcn.0046a330
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x384], ax
lea eax, [ebp - 0x382]
push eax
call fcn.0046a330
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.00438dc0
add esp, 0x4c
test edi, edi
je 0x437f0d
cmp word [edi], 0
je 0x437f0d
push edi
lea eax, [ebp - 0x84]
push 0x20
push eax
call fcn.0046befa
add esp, 0xc
test esi, esi
je 0x437f26
cmp word [esi], 0
je 0x437f26
push esi
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.0046befa
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.0045f4c0
add esp, 0x20
cmp esi, 5
je 0x437f94
lea eax, [ebp - 0x184]
push eax
call fcn.00438cc0
add esp, 4
test al, 2
je 0x437f7e
cmp dword [0x4c2e50], 0
je 0x437f94
pop edi
pop esi
mov eax, 0x4ce
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046984a
mov esp, ebp
pop ebp
ret
cmp esi, 1
jne 0x437fcd
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.00437820
add esp, 0x1c
mov esi, eax
jmp 0x43809c
cmp esi, 3
jne 0x438009
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.004380c0
add esp, 0x24
mov esi, eax
jmp 0x43809c
cmp esi, 4
jne 0x438042
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.004380c0
add esp, 0x24
mov esi, eax
jmp 0x43809c
cmp esi, 5
jne 0x438097
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 0x438087
neg edi
sbb edi, edi
and edi, 0x200000
or edi, 0x400000
push edi
push ebx
push eax
call fcn.0045e910
add esp, 0xc
mov esi, eax
jmp 0x43809c
push eax
push str.DownloadFile_____s_doesnt_exist_
call fcn.0045f4c0
add esp, 8
jmp 0x43809c
mov esi, 0x57
push esi
push str.DownloadFile____End__d_
call fcn.0045f4c0
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046984a
mov esp, ebp
pop ebp
ret