Function at 0x4708b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, eax
mov ecx, dword [esi]
mov eax, dword [0x4ee74c]
push edi
push ecx
xor edi, edi
push str.Parse__s___r_n
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], eax
call fcn.00477b80
add esp, 8
push edi
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea edx, [esp + 0x14]
push edx
push 0x4bf72c
push 5
push edi
push 0x4bf71c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x470b7d
mov ecx, dword [eax]
mov edx, dword [ecx + 0xfc]
push edi
push eax
call edx
mov ebp, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov eax, 8
mov word [esp + 0x38], ax
mov eax, dword [esi]
push eax
call ebp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xfc]
push edi
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push 0x4bf73c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x470990
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x2c]
push edx
push 0x4bf72c
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push edi
push edx
push 0x4bf72c
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x120]
push 0xffffffffffffffff
push eax
call edx
mov ebx, dword [esp + 0x4c]
cmp dword [ebx + 0x200], edi
je 0x470a6f
lea eax, [esp + 0x34]
push eax
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push ecx
push ecx
sub eax, 0x10
mov dword [esp + 0x40], esp
mov edi, esp
push eax
call fcn.004020a0
add eax, 0x10
mov dword [edi], eax
mov ebx, dword [ebx + 0x200]
add esp, 4
call fcn.00468040
mov ebx, eax
test ebx, ebx
je 0x470a6f
mov edx, dword [esp + 0x24]
inc edx
push 2
push edx
call fcn.0049ff77
mov edi, eax
mov eax, dword [esp + 0x2c]
add esp, 8
cmp eax, 3
jbe 0x470a28
cmp byte [ebx], 0xef
jne 0x470a28
cmp byte [ebx + 1], 0xbb
jne 0x470a28
cmp byte [ebx + 2], 0xbf
jne 0x470a28
inc eax
push eax
push edi
push 0xffffffffffffffff
lea eax, [ebx + 3]
push eax
push 0
push 0xfde9
jmp 0x470a32
inc eax
push eax
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call ebp
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push esi
push eax
mov eax, dword [ecx + 0x104]
call eax
push esi
mov ebp, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call fcn.0049e328
add esp, 4
push ebx
call fcn.0049081d
add esp, 4
jmp 0x470aba
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x470ab5
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
lea eax, [esp + 0x18]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x50]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x54]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x58]
push ecx
mov ecx, dword [edx + 0xe8]
mov dword [eax + 0xc], esi
call ecx
mov ebp, eax
jmp 0x470aba
mov ebp, 1
xor edi, edi
cmp word [esp + 0x18], di
je 0x470b30
cmp ebp, 1
je 0x470b30
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0xb4]
lea ecx, [esp + 0x20]
push ecx
push eax
call edx
test eax, eax
jl 0x470af7
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x470af7
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x34]
call fcn.00470ba0
mov ecx, dword [esp + 0x40]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x470b12
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x470b22
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x470b79
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x4c]
push eax
call fcn.004707c0
mov ecx, dword [esp + 0x40]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x470b59
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x470b69
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
call dword [sym.imp.ole32.dll_CoUninitialize]
movsx eax, word [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 4