Function at 0x50a6d2
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
push eax
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], edi
call fcn.0050ae66
mov ebx, eax
cmp ebx, edi
je 0x50ade3
mov dword [ebp - 0x234], edi
cmp dword [ecx + 0x38], edi
je 0x50ade3
mov eax, dword [ecx + 0x38]
mov ecx, dword [eax]
lea edx, [ebp - 0x234]
push edx
push 0x64fea0
push str.DownloadClient
push eax
call dword [ecx + 0xb4]
test eax, eax
js 0x50add3
mov esi, 0x649110
cmp dword [ebp - 0x224], edi
jl 0x50a78e
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x228]
push edx
push esi
mov dword [ebp - 0x228], edi
mov ecx, dword [eax]
push eax
mov dword [ebp - 0x220], 1
call dword [ecx]
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov byte [ebp - 0x229], 1
cmp dword [ebp - 0x224], eax
jl 0x50a795
mov byte [ebp - 0x229], 0
test byte [ebp - 0x220], 1
je 0x50a7ae
mov eax, dword [ebp - 0x228]
cmp eax, edi
je 0x50a7ae
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 0x229], 0
je 0x50add3
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x228]
push edx
push esi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x228], edi
mov ecx, dword [eax]
push eax
call dword [ecx]
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax]
lea edx, [ebp - 0x220]
push edx
push 0x64fea0
push dword [ebp - 0x224]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x228]
cmp eax, edi
je 0x50a808
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x220]
push dword [0x6d4970]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
je 0x50adc3
mov eax, dword [ebx]
push 3
pop ecx
lea edx, [ebp - 0x24c]
push edx
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x220]
push 0x385
mov word [ebp - 0x24c], cx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x24c]
push eax
call esi
push 0x37
pop ecx
cmp dword [ebx + 0x149c], edi
je 0x50a869
push 0x4b
pop ecx
cmp dword [ebx + 0x2c], 3
jne 0x50a883
cmp dword [ebx + 0x14b8], edi
je 0x50a883
cmp dword [ebx + 0x1498], 0x64
jne 0x50a883
add ecx, 0x1e
mov eax, dword [ebp - 0x220]
mov edx, dword [eax]
push ecx
push 0x392
push eax
call dword [edx + 0x78]
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x238], eax
cmp eax, edi
je 0x50a95d
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax]
lea edx, [ebp - 0x24c]
push edx
push dword [0x6d491c]
push eax
call dword [ecx + 0x28]
test eax, eax
js 0x50a8e5
mov ecx, dword [ebp - 0x244]
xor eax, eax
cmp ecx, dword [ebx + 0x2c]
setne al
cmp eax, edi
je 0x50a954
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 0x230]
mov ecx, ebx
mov dword [ebp - 0x224], edi
call fcn.0050a5b0
test eax, eax
js 0x50a944
push 0xd
pop eax
mov word [ebp - 0x25c], ax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x254], eax
cmp eax, edi
je 0x50a923
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax]
lea edx, [ebp - 0x25c]
push edx
push 0x3e8
push eax
call dword [ecx + 0x2c]
lea eax, [ebp - 0x25c]
push eax
call esi
mov eax, dword [ebp - 0x224]
cmp eax, edi
je 0x50a954
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x24c]
push eax
call esi
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push edi
push eax
xor esi, esi
call fcn.00402394
add esp, 0xc
cmp dword [ebx + 0x1490], edi
je 0x50a98c
push 0x671d30
jmp 0x50a9a0
cmp dword [ebx + 0x2c], 3
jne 0x50a9cb
cmp dword [ebx + 0x1498], 0x64
jne 0x50a9cb
push 0x671d54
lea eax, [ebx + 0x34]
push eax
mov esi, 0xff4200
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push str._ls___ls_
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004e147f
add esp, 0x14
jmp 0x50a9ef
lea eax, [ebx + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0x671d60
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004e147f
add esp, 0x10
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax]
lea edx, [ebp - 0x21c]
push edx
push dword [0x6d4900]
push eax
call dword [ecx + 0x94]
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax]
push esi
push dword [0x6d4928]
push eax
call dword [ecx + 0x78]
push dword [ebx + 0x1c]
mov esi, dword [ebp - 0x220]
push dword [ebx + 0x18]
lea edi, [ebp - 0x238]
call fcn.00556a29
push dword [eax]
mov ecx, dword [esi]
push dword [0x6d4910]
push esi
call dword [ecx + 0x94]
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
call fcn.0040ace0
push dword [ebx + 0x2c]
mov eax, dword [ebp - 0x220]
push dword [0x6d491c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x78]
mov esi, dword [ebp - 0x230]
cmp dword [esi + 0xa0], 0
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax]
setne dl
movzx edx, dl
push edx
push dword [0x6d4940]
push eax
call dword [ecx + 0x8c]
fild dword [ebx + 0x28]
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax]
push ecx
push ecx
fstp qword [esp]
push dword [0x6d4924]
push eax
call dword [ecx + 0x88]
mov edi, dword [ebp - 0x220]
lea eax, [ebp - 0x230]
push eax
mov eax, ebx
call fcn.0050b78c
push dword [eax]
mov ecx, dword [edi]
push dword [0x6d4918]
push edi
call dword [ecx + 0x94]
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
call fcn.0040ace0
cmp dword [esi + 0xa4], 0
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax]
setne dl
movzx edx, dl
push edx
push dword [0x6d494c]
push eax
call dword [ecx + 0x8c]
push ecx
lea ecx, [ebx + 0x34]
mov eax, esp
push ecx
call fcn.004243de
call fcn.004fb5bf
pop ecx
test eax, eax
je 0x50ab28
call fcn.004fb69c
test eax, eax
je 0x50ab28
mov cl, 1
jmp 0x50ab2a
xor cl, cl
mov eax, dword [ebp - 0x220]
mov edx, dword [eax]
push ecx
push dword [0x6d4950]
push eax
call dword [edx + 0x8c]
cmp dword [ebx + 0x30], 0
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax]
setne dl
movzx edx, dl
push edx
push dword [0x6d4954]
push eax
call dword [ecx + 0x8c]
push dword [ebx + 0x149c]
mov eax, dword [ebp - 0x220]
push dword [0x6d4958]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x78]
mov esi, dword [ebp - 0x220]
mov eax, ebx
lea edi, [ebp - 0x230]
call fcn.0050b8cd
push dword [eax]
mov ecx, dword [esi]
push dword [0x6d495c]
push esi
call dword [ecx + 0x94]
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
call fcn.0040ace0
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x230]
push eax
mov eax, ebx
call fcn.0050cc9f
push dword [eax]
mov ecx, dword [esi]
push dword [0x6d4960]
push esi
call dword [ecx + 0x94]
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
call fcn.0040ace0
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax]
xor esi, esi
cmp dword [ebx + 0x14b8], esi
setne dl
movzx edx, dl
push edx
push dword [0x6d496c]
push eax
call dword [ecx + 0x8c]
cmp dword [ebx + 0x2c], 2
jne 0x50ac15
cmp dword [ebx + 0x18], esi
jne 0x50ac15
cmp dword [ebx + 0x1c], esi
jne 0x50ac15
mov cl, 1
jmp 0x50ac17
xor cl, cl
mov eax, dword [ebp - 0x220]
mov edx, dword [eax]
push ecx
push dword [0x6d4968]
push eax
call dword [edx + 0x8c]
cmp dword [ebx + 0x2c], 1
jne 0x50ac41
cmp dword [ebx + 0x18], esi
jne 0x50ac41
cmp dword [ebx + 0x1c], esi
jne 0x50ac41
mov cl, 1
jmp 0x50ac43
xor cl, cl
mov eax, dword [ebp - 0x220]
mov edx, dword [eax]
push ecx
push dword [0x6d4964]
push eax
call dword [edx + 0x8c]
mov eax, dword [ebx + 0x2c]
cmp eax, 3
jne 0x50ac93
mov ecx, dword [ebx + 0x1498]
cmp ecx, eax
ja 0x50ac81
mov eax, dword [ebp - 0x220]
mov edx, dword [eax]
inc ecx
push ecx
push dword [0x6d4948]
push eax
call dword [edx + 0x78]
jmp 0x50aca6
cmp eax, 3
jne 0x50ac93
cmp dword [ebx + 0x1498], 0x64
jne 0x50ac93
push 5
jmp 0x50ac94
push esi
push dword [0x6d4948]
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x78]
mov eax, dword [ebx + 0x2c]
cmp eax, 5
jne 0x50acb2
push 2
jmp 0x50acc0
cmp eax, esi
je 0x50acbe
cmp eax, 4
je 0x50acbe
push esi
jmp 0x50acc0
push 1
push dword [0x6d4920]
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x78]
lea eax, [ebp - 0x228]
push eax
push 0x39
mov dword [ebp - 0x228], esi
call fcn.004e35e8
cmp dword [ebx + 4], esi
jne 0x50ad7d
mov eax, dword [0x6d0fd0]
mov ecx, 0x6d0fd0
call dword [eax + 0xc]
cmp dword [ebx + 0x2c], 1
lea esi, [eax + 0x10]
mov dword [ebp - 0x224], esi
jne 0x50ad2b
lea esi, [ebx + 0x1284]
mov eax, esi
call fcn.0042444f
push eax
push esi
lea eax, [ebp - 0x224]
call fcn.0040aa40
mov esi, dword [ebp - 0x224]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call edi
test eax, eax
jne 0x50ad55
lea esi, [ebx + 0x34]
mov eax, esi
call fcn.0042444f
push eax
push esi
lea eax, [ebp - 0x224]
call fcn.0040aa40
mov esi, dword [ebp - 0x224]
push esi
call edi
test eax, eax
je 0x50ad73
test esi, esi
je 0x50ad73
call fcn.0050b051
test eax, eax
je 0x50ad73
push eax
call fcn.004d2814
pop ecx
mov dword [ebx + 4], eax
lea eax, [esi - 0x10]
call fcn.0040ace0
xor esi, esi
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x50adb1
cmp dword [ebx + 0x2c], 5
je 0x50adb1
push eax
lea eax, [ebp - 0x228]
call fcn.004e3964
push dword [ebp - 0x228]
mov eax, dword [ebp - 0x220]
push dword [0x6d48e4]
mov ecx, dword [eax]
push eax
call dword [ecx + pe_nt_image_headers32]
mov eax, dword [ebp - 0x228]
cmp eax, esi
je 0x50adc1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor edi, edi
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x50add3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x234]
cmp eax, edi
je 0x50ade3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret 4