Function at 0x4759f0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbc66
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2a8
mov eax, dword [0x530010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x2a4], 0
test esi, esi
je 0x476184
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x476184
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004c6550
add esp, 0xc
lea eax, [ebp - 0x220]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x220]
push 0x5c
push eax
call fcn.004f3115
add esp, 8
test eax, eax
je 0x475aa3
xor ecx, ecx
lea esi, [ebp - 0x220]
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x2a4], eax
push 0
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x29c], 0
push eax
push edi
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x476180
mov ecx, dword [ebp - 0x29c]
test ecx, ecx
je 0x476180
push eax
xor edx, edx
mov dword [ebp - 0x270], 0
push ecx
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 7
mov word [ebp - 0x270], dx
call fcn.004014e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x258], 0
lea eax, [ebp - 0x258]
push eax
push 0x5225bc
push 0x17
push 0
push 0x515aa4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, dword [ebp - 0x270]
test eax, eax
jns 0x475b55
mov byte [ebp - 0x29d], 0
jmp 0x47612e
mov eax, 3
mov dword [ebp - 0x290], 0
mov word [ebp - 0x298], ax
mov word [ebp - 0x288], ax
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x224], 0
lea edx, [ebp - 0x224]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x258]
push edx
push 1
lea edx, [ebp - 0x274]
mov dword [ebp - 0x274], 0
mov ecx, dword [eax]
push edx
push 8
lea edx, [ebp - 0x288]
push edx
lea edx, [ebp - 0x298]
push edx
push eax
call dword [ecx + 0x3c]
test eax, eax
jns 0x475bd0
mov byte [ebp - 0x29d], 0
jmp 0x476102
mov dword [ebp - 0x254], 0
mov byte [ebp - 4], 5
lea edx, [ebp - 0x254]
mov eax, dword [ebp - 0x224]
push edx
push 0x515a94
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jns 0x475c05
mov byte [ebp - 0x29d], 0
jmp 0x4760ee
mov dword [ebp - 0x250], 0
mov byte [ebp - 4], 6
lea edx, [ebp - 0x250]
mov eax, dword [ebp - 0x254]
push edx
push 0x515ab4
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jns 0x475c3a
mov byte [ebp - 0x29d], 0
jmp 0x4760da
mov dword [ebp - 0x24c], 0
mov byte [ebp - 4], 7
lea edx, [ebp - 0x24c]
mov eax, dword [ebp - 0x250]
push edx
push 0x515a44
push 0x515a54
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x475c75
mov byte [ebp - 0x29d], 0
jmp 0x4760c6
mov dword [ebp - 0x248], 0
mov byte [ebp - 4], 8
lea edx, [ebp - 0x248]
mov eax, dword [ebp - 0x24c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
js 0x4760ab
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x475cb8
mov dword [ebp - 0x224], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x224]
push edx
push 0x515ac4
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
test eax, eax
js 0x4760ab
mov dword [ebp - 0x244], 0
mov byte [ebp - 4], 9
lea edx, [ebp - 0x244]
mov eax, dword [ebp - 0x224]
push edx
push 0x515a64
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x47608e
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x475d21
mov dword [ebp - 0x224], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x244]
lea edx, [ebp - 0x224]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x47608e
mov dword [ebp - 0x240], 0
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 0x224]
push edx
push 0x515a74
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jns 0x475d71
mov byte [ebp - 0x29d], 0
jmp 0x47603f
mov dword [ebp - 0x23c], 0
xor eax, eax
mov byte [ebp - 4], 0xb
mov word [ebp - 0x2b8], ax
lea eax, [ebp - 0x2b8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
js 0x4761a4
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov eax, 8
push esi
mov word [ebp - 0x2b8], ax
call edi
mov dword [ebp - 0x2b0], eax
test eax, eax
je 0x4761aa
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x23c]
mov eax, dword [ebp - 0x240]
movups xmm0, xmmword [ebp - 0x2b8]
push ecx
sub esp, 0x10
mov edx, dword [eax]
mov ecx, esp
push eax
movups xmmword [ecx], xmm0
call dword [edx + 0x24]
mov esi, eax
lea eax, [ebp - 0x2b8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
jns 0x475e05
mov byte [ebp - 0x29d], 0
jmp 0x476025
mov dword [ebp - 0x238], 0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x2a4]
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x22c], ecx
test eax, eax
jne 0x475e33
xor esi, esi
mov dword [ebp - 0x2a4], esi
jmp 0x475e4c
push eax
call edi
mov esi, eax
mov dword [ebp - 0x2a4], esi
test esi, esi
je 0x4761ca
mov ecx, dword [ebp - 0x22c]
lea edx, [ebp - 0x238]
mov byte [ebp - 4], 0xe
mov eax, dword [ecx]
push edx
push esi
push ecx
call dword [eax + 0x30]
push esi
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jns 0x475e77
mov byte [ebp - 0x29d], 0
jmp 0x476011
mov dword [ebp - 0x230], 0
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x230]
mov eax, dword [ebp - 0x238]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x58]
test eax, eax
js 0x475ff6
mov eax, dword [ebp - 0x230]
lea edx, [ebp - 0x234]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x475ff6
xor eax, eax
mov dword [ebp - 0x2a4], eax
cmp dword [ebp - 0x234], eax
jle 0x475ff6
nop
mov dword [ebp - 0x228], 0
mov ecx, 3
mov dword [ebp - 0x2b0], eax
mov word [ebp - 0x2b8], cx
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x228]
mov eax, dword [ebp - 0x230]
movups xmm0, xmmword [ebp - 0x2b8]
push ecx
sub esp, 0x10
mov edx, dword [eax]
mov ecx, esp
push eax
movups xmmword [ecx], xmm0
call dword [edx + 0x28]
mov esi, eax
lea eax, [ebp - 0x2b8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
js 0x47605c
mov dword [ebp - 0x22c], 0
mov byte [ebp - 4], 0x12
lea edx, [ebp - 0x22c]
mov eax, dword [ebp - 0x228]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
jns 0x475f59
push dword [ebp - 0x22c]
jmp 0x476056
mov eax, dword [ebp - 0x22c]
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x475f64
mov ecx, dword [ebp - 0x260]
lea edi, [ebp - 0x270]
sub edx, esi
sar edx, 1
cmp dword [ebp - 0x25c], 8
cmovae edi, dword [ebp - 0x270]
cmp ecx, edx
jne 0x476055
mov esi, ecx
mov edx, eax
test esi, esi
je 0x475fb5
sub edi, eax
nop
mov cx, word [edi + edx]
cmp cx, word [edx]
jne 0x476055
add edx, 2
sub esi, 1
jne 0x475fa0
mov eax, dword [ebp - 0x228]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
push dword [ebp - 0x22c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x475fe1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2a4]
mov byte [ebp - 0x29d], 1
cmp eax, dword [ebp - 0x234]
jl 0x475ffd
mov byte [ebp - 0x29d], 0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x476011
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x476025
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x476039
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [ebp - 0x270]
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x476095
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x476095
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x476070
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2a4]
inc eax
mov dword [ebp - 0x2a4], eax
cmp eax, dword [ebp - 0x234]
jl 0x475ed0
jmp 0x475ff6
mov byte [ebp - 0x29d], 0
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x4760b2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4760b2
mov byte [ebp - 0x29d], 0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x4760c6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x4760da
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x4760ee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x476102
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x476116
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x288]
push eax
call esi
lea eax, [ebp - 0x298]
push eax
call esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x476142
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x25c]
cmp eax, 8
jb 0x476178
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x47616e
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4761d4
push ecx
push edi
call fcn.00476a87
add esp, 8
mov al, byte [ebp - 0x29d]
jmp 0x476186
xor al, al
jmp 0x476186
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00476a44
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push eax
call fcn.00474fc0
mov eax, 0xa
mov dword [ebp - 0x2b0], 0x8007000e
push 0x8007000e
mov word [ebp - 0x2b8], ax
call fcn.00474fc0
push 0x8007000e
call fcn.00474fc0
call fcn.004ca66d
int3