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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6f9088
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x7e6410]
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 edi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0
cmp dword [edi + 0x360], 0
je 0x451481
cmp dword [edi + 0xb4], 0
je 0x451481
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00428690
mov ecx, dword [edi + 0xb4]
push ebx
call fcn.00451410
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov esi, eax
jmp 0x451577
cmp dword [edi + 0x46c], 0
jne 0x451536
cmp dword [edi + 0x470], 0
je 0x4515be
mov eax, dword [edi + 0x37c]
test eax, eax
je 0x451536
mov eax, dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x4514ba
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
jne 0x4514cf
mov ecx, dword [edi + 0x37c]
push 0
push dword [edi + 0x464]
mov ecx, dword [ecx]
call fcn.00474320
mov eax, dword [edi + 0x37c]
mov eax, dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x451536
mov eax, dword [ecx]
push dword [ebp + 0xc]
call dword [eax + 0x14]
test eax, eax
je 0x451536
mov eax, dword [edi + 0x37c]
mov eax, dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x451536
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, eax
test ebx, ebx
jle 0x451536
push ebx
call fcn.006b6815
mov esi, eax
add esp, 4
test esi, esi
je 0x451540
mov ecx, dword [edi + 0x37c]
mov ecx, dword [ecx]
mov ecx, dword [ecx]
test ecx, ecx
je 0x45152d
mov eax, dword [ecx]
push ebx
push esi
push dword [ebp + 0xc]
call dword [eax + 0x1c]
test eax, eax
jne 0x451540
push esi
call fcn.006b31f8
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
xor esi, esi
jmp 0x451577
push 1
push esi
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectory]
test eax, eax
je 0x451563
push 0x30000
push 1
push ebx
add eax, esi
push eax
call dword [sym.imp.USER32.dll_CreateIconFromResource]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
push esi
call fcn.006b31f8
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov esi, 1
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 0xc]
cmp ecx, 0x7e8698
je 0x45159e
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x45159e
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff4
push ecx
call fcn.006b31f8
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00428690
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4515e1
test al, 0x10
je 0x451631
mov edx, dword [edi + 0x464]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
call fcn.0047e110
add esp, 8
mov esi, eax
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 8
jb 0x451604
mov esi, dword [esi]
test esi, esi
jne 0x45160c
xor eax, eax
jmp 0x451613
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.00428920
cmp dword [ebp - 0x14], 8
jb 0x45162e
push dword [ebp - 0x28]
call fcn.006b31f8
add esp, 4
mov esi, dword [ebp - 0x2c]
push 0x8050
push 0
push 0
push 1
push esi
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebx], eax
lea eax, [esi - 0xc]
cmp eax, 0x7e8698
je 0x45156c
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x451572
push esi
call fcn.006b31f8
add esp, 4
jmp 0x451572