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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53cb68
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x58d984]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0xc
push str.msftedit.dll
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00403190
push 0
lea eax, [esi + 0x44]
mov dword [ebp - 4], 0
push eax
push ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call fcn.0047cc00
add esp, 0xc
test eax, eax
js 0x47cb95
push 0xb8
lea eax, [esi + 0xbc]
push 0
push eax
call fcn.0050ce60
mov dword [esi + 0xb8], 0xbc
add esp, 0xc
mov dword [esi + 0xbc], 0x8001003f
mov ecx, 4
mov dword [esi + 0xd0], 0x10001
mov dword [esi + 0xd4], 0x2d0
mov dword [esi + 0x10], 4
movzx edx, byte [ebx + 0x368]
shl edx, 3
xor edx, dword [esi + 0x14]
and edx, 8
xor edx, dword [esi + 0x14]
mov dword [esi + 0x14], edx
mov eax, dword [ebx + 0x3a0]
mov dword [esi + 0x1c], eax
mov eax, edx
test edi, edi
je 0x47ca95
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x10], ecx
test ecx, 0x100080
jne 0x47ca95
or eax, 2
test cl, 1
je 0x47caa1
mov ecx, 3
jmp 0x47caab
test cl, 2
je 0x47cab2
mov ecx, 2
mov word [esi + 0xd0], cx
or eax, 0x20
cmp dword [ebp - 0x14], 8
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x28]
jb 0x47cac4
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47cadf
push 0xc
push str.msftedit.dll
lea ecx, [ebp - 0x28]
call fcn.00403190
cmp dword [ebp - 0x14], 8
lea ebx, [ebp - 0x28]
jb 0x47caeb
mov ebx, dword [ebp - 0x28]
mov eax, dword [0x59a758]
test al, 1
jne 0x47cb1f
push str.AddDllDirectory
or eax, 1
push 0x545690
mov dword [0x59a758], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
setne al
mov byte [0x59a754], al
jmp 0x47cb24
mov al, byte [0x59a754]
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x800
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
je 0x47cb57
push str.CreateTextServices
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47cb57
lea ecx, [ebp - 0x2c]
push ecx
push esi
push 0
call eax
mov eax, dword [ebp - 0x2c]
lea ebx, [esi + 0xc]
push ebx
push 0x554de4
push eax
mov ecx, dword [eax]
call dword [ecx]
mov ecx, dword [ebp - 0x2c]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
test esi, esi
js 0x47cb95
test edi, edi
je 0x47cb8e
mov edx, dword [edi + 0x24]
test edx, edx
je 0x47cb8e
mov ecx, dword [ebx]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
test eax, eax
js 0x47cb95
mov esi, 1
jmp 0x47cb97
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x47cbcd
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47cbc3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47cbed
push edx
push ecx
call fcn.004ed797
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004eda39
mov esp, ebp
pop ebp
ret 8
call fcn.0051042e
int3