Function at 0x437e30
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.0046a390
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push eax
call fcn.0046a390
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push eax
call fcn.0046a390
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x384], ax
lea eax, [ebp - 0x382]
push eax
call fcn.0046a390
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.00438dd0
add esp, 0x4c
test edi, edi
je 0x437f1d
cmp word [edi], 0
je 0x437f1d
push edi
lea eax, [ebp - 0x84]
push 0x20
push eax
call fcn.0046bf5a
add esp, 0xc
test esi, esi
je 0x437f36
cmp word [esi], 0
je 0x437f36
push esi
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.0046bf5a
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.0045f520
add esp, 0x20
cmp esi, 5
je 0x437fa4
lea eax, [ebp - 0x184]
push eax
call fcn.00438cd0
add esp, 4
test al, 2
je 0x437f8e
cmp dword [0x4c2e50], 0
je 0x437fa4
pop edi
pop esi
mov eax, 0x4ce
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
cmp esi, 1
jne 0x437fdd
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.00437830
add esp, 0x1c
mov esi, eax
jmp 0x4380ac
cmp esi, 3
jne 0x438019
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.004380d0
add esp, 0x24
mov esi, eax
jmp 0x4380ac
cmp esi, 4
jne 0x438052
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.004380d0
add esp, 0x24
mov esi, eax
jmp 0x4380ac
cmp esi, 5
jne 0x4380a7
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 0x438097
neg edi
sbb edi, edi
and edi, 0x200000
or edi, 0x400000
push edi
push ebx
push eax
call fcn.0045e970
add esp, 0xc
mov esi, eax
jmp 0x4380ac
push eax
push str.DownloadFile_____s_doesnt_exist_
call fcn.0045f520
add esp, 8
jmp 0x4380ac
mov esi, 0x57
push esi
push str.DownloadFile____End__d_
call fcn.0045f520
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004698aa
mov esp, ebp
pop ebp
ret