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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b808
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4cf06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x10002
call fcn.0047d522
mov ebx, eax
mov dword [ebp - 0x24], 0xffffffff
xor eax, eax
mov dword [ebp - 0x28], ebx
add esp, 4
mov word [ebx], ax
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
cmp ecx, dword [esi + 0x7c4]
jge 0x414c37
mov eax, dword [esi + 0x7c8]
mov eax, dword [eax + ecx*4]
mov edi, dword [eax + 0x10]
jmp 0x414c39
xor edi, edi
cmp dword [esi + 0xe6c], 0
jne 0x414c52
cmp dword [esi + 0xe70], 0
jne 0x414c52
mov eax, 1
jmp 0x414c54
xor eax, eax
cmp word [edi + 2], 0x3a
mov dword [ebp - 0x18], eax
jne 0x414c7a
cmp word [edi + 4], 0x5c
je 0x414c7a
or eax, 2
mov ecx, 0x3c
push eax
push edi
call fcn.0045a590
push eax
jmp 0x414fd8
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x834]
push 0x8000
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x414ca2
push dword [ebp - 0x18]
push edi
push str.GetFullPathName
jmp 0x414fd8
mov ecx, dword [esi + 0x834]
mov edx, ecx
call fcn.0045e950
mov ecx, dword [esi + 0x834]
mov edx, ebx
mov dword [ebp - 0x24], 0xffffffff
call fcn.00457220
mov eax, dword [esi + 0x8d4]
cmp ebx, eax
je 0x414cfe
test eax, eax
je 0x414ce4
push eax
call fcn.0047d4ed
add esp, 4
mov dword [esi + 0x8d4], 0
or edx, 0xffffffff
mov dword [esi + 0x8d8], 0xffffffff
mov ecx, ebx
call fcn.00412220
mov dword [esi + 0x8d4], eax
mov dword [esi + 0x8d8], 0xffffffff
mov ecx, dword [esi + 0x834]
mov edx, ecx
call fcn.0045e850
push dword [esi + 0x834]
mov dword [esi + 0x84c], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], edx
mov edi, 0x4c2758
cmp edx, 0xffffffff
je 0x414d52
mov ecx, edx
and ecx, 0x410
cmp ecx, 0x10
jne 0x414d52
lea ecx, [esi + 0x690]
jmp 0x414d6f
mov eax, dword [esi + 0x690]
lea ecx, [esi + 0x690]
and eax, 0x1800
mov dword [ebp - 0x14], ecx
or eax, 0
je 0x414df3
mov eax, dword [ecx]
and eax, 0x1800
mov dword [ebp - 0x14], ecx
or eax, 0
je 0x414df3
mov eax, dword [esi + 0x8d4]
mov ecx, edi
test eax, eax
cmovne ecx, eax
push ecx
mov ecx, esi
call fcn.00413aa0
mov dword [esi + 0x8cc], eax
mov ecx, edi
mov eax, dword [esi + 0x8d4]
test eax, eax
cmovne ecx, eax
lea eax, [esi + 0x8b0]
push eax
push ecx
mov ecx, esi
call fcn.00413ca0
test byte [esi + 0x8cc], 5
mov dword [esi + 0x8ac], eax
je 0x414dd2
mov eax, dword [esi + 0x6d8]
mov ecx, dword [esi + 0x6dc]
jmp 0x414dde
mov eax, dword [esi + 0x6e0]
mov ecx, dword [esi + 0x6e4]
mov edx, dword [ebp - 0x1c]
mov dword [esi + 0x870], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x874], ecx
mov dword [ebp - 0x14], eax
cmp edx, 0xffffffff
je 0x414e9f
test dl, 0x10
je 0x414e9f
mov edx, dword [esi + 0x834]
mov ecx, ebx
push 0x8000
call fcn.0041ae80
mov ecx, dword [esi + 0x834]
add esp, 4
mov edx, ebx
push 0x7fffffff
push 0x4afc48
call fcn.0045c480
add esp, 8
test dword [ebp - 0x1c], 0x400
jne 0x414e73
mov eax, dword [esi + 0x8d4]
mov edx, edi
mov ecx, dword [esi + 0x84c]
test eax, eax
mov dword [ebp - 0x1c], 2
cmovne edx, eax
xor eax, eax
cmp ecx, 7
cmove eax, dword [ebp - 0x1c]
add eax, edx
push eax
lea eax, [ebx + ecx*2]
push eax
call fcn.0048b155
add esp, 8
test eax, eax
je 0x414e9f
mov edx, dword [esi + 0x834]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x20], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414e81
sub ecx, dword [ebp - 0x20]
sar ecx, 1
xor eax, eax
mov dword [ebp - 0x20], 1
mov word [edx + ecx*2 - 4], ax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x24], 0xffffffff
push eax
push ebx
push 0x8000
push dword [esi + 0x834]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x414fc0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x414fc0
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
call fcn.004122d0
mov ecx, dword [ebp - 0x20]
mov dword [esi + 0x844], eax
test ecx, ecx
jne 0x414ef0
mov eax, dword [ebp - 0x10]
xor edx, edx
mov word [eax], dx
push dword [ebp + 8]
mov dword [ebp - 0x24], 0xffffffff
push ecx
push ebx
mov ecx, esi
call fcn.00415530
test eax, eax
je 0x414fdf
mov eax, dword [esi + 0x8d4]
test eax, eax
cmovne edi, eax
mov eax, dword [esi + 0xb78]
mov dword [ebp - 0x20], edi
mov edi, dword [ebp + 8]
mov edi, dword [eax + edi*4]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x414f31
cmp eax, dword [edi + 0x68]
je 0x414f63
mov ecx, dword [edi + 0x68]
test ecx, ecx
je 0x414f4b
push ecx
call fcn.0047d4ed
mov eax, dword [ebp - 0x20]
add esp, 4
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0xffffffff
test eax, eax
je 0x414f63
or edx, 0xffffffff
mov ecx, eax
call fcn.00412220
mov dword [edi + 0x68], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
and eax, 0x1800
or eax, 0
je 0x414fb2
mov ecx, dword [esi + 0x834]
mov edx, dword [esi + 0x838]
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x414f80
mov eax, dword [esi + 0x6b0]
mov ecx, dword [esi + 0x8c4]
cmp eax, ecx
cmovb ecx, eax
mov eax, 0x40000
cmp ecx, eax
cmovb ecx, eax
mov dword [esi + 0x8c4], ecx
mov ecx, esi
call fcn.00414130
mov esi, 1
jmp 0x414fe1
mov ecx, dword [esi + 0x84c]
mov eax, dword [esi + 0x834]
push dword [ebp - 0x18]
lea eax, [eax + ecx*2]
push eax
push 0x4afc4c
mov ecx, esi
call fcn.00419420
xor esi, esi
push ebx
call fcn.0047d4ed
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4