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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x26b4
call fcn.006ab750
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [edi + 8]
xor esi, esi
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], ecx
mov byte [esp + 0x23], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x54fd57
shr eax, 4
and al, 1
jne 0x54fd67
mov ecx, dword [edi + 8]
call fcn.004ad6d0
test al, al
jne 0x54fd67
mov byte [esp + 0x1f], al
cmp dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
ja 0x54fd86
mov eax, dword [ebp + 8]
mov dword [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 0x10]
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
test al, al
jne 0x5500ef
mov ecx, dword [edi]
mov edx, dword [ecx]
cmp dword [edx + esi*4], 0
lea eax, [edx + esi*4]
je 0x5500c8
mov esi, dword [eax]
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x38]
push ecx
push 0x70c50008
push esi
call edx
test eax, eax
jl 0x5500c8
mov eax, dword [esp + 0x38]
test eax, 0x40000000
je 0x54fe3d
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0x80058000
push esi
mov dword [esp + 0x24], 0
call edx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x5500c8
test eax, eax
push ecx
jge 0x54fe04
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x5500c8
call fcn.004ae730
test al, al
je 0x54fe2d
mov edx, dword [esp + 0x18]
lea esi, [esp + 0xa8]
call fcn.004011d0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x550093
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x5500c8
test eax, 0x400000
je 0x5500c8
cmp byte [esp + 0x1f], 0
je 0x5500c8
mov edx, dword [esi]
mov ecx, dword [edx + 0xc]
lea eax, [esp + 0x18]
push eax
push 0x6b904c
push 0x6b8fac
push 0
push esi
mov dword [esp + 0x2c], 0
call ecx
test eax, eax
jl 0x5500b8
mov esi, dword [esp + 0x18]
test esi, esi
je 0x5500c8
push 0x48
lea edx, [esp + 0x64]
push 0
push edx
call fcn.006a1300
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
add esp, 0xc
push 0
lea ecx, [esp + 0x64]
push ecx
push esi
call edx
test eax, eax
jl 0x5500a9
mov edx, dword [esp + 0x60]
test edx, edx
je 0x5500b8
lea esi, [esp + 0x2b0]
call fcn.00497910
mov eax, dword [esp + 0x60]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [edi + 8]
push 0x6bc0cc
mov ecx, esi
push ecx
lea edx, [esp + 0xb0]
push edx
call fcn.004ad3a0
mov eax, esi
push eax
push str.Importing:__s
mov esi, 0x104
lea edi, [esp + 0x4c0]
call fcn.004af0d0
mov edx, dword [ebx]
mov edx, dword [edx + 0x20]
add esp, 8
push 0
mov eax, edi
push eax
mov ecx, ebx
call edx
lea eax, [esp + 0xa8]
lea esi, [esp + 0x20]
mov dword [esp + 0x24], 0
call fcn.004021a0
cmp dword [esp + 0x20], 0xffffffff
je 0x5500b8
mov byte [esp + 0x17], 0
mov eax, dword [ebx]
mov edx, dword [eax]
mov ecx, ebx
call edx
test al, al
jne 0x550101
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push 0x2000
lea edx, [esp + 0x6c8]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edi, eax
test edi, edi
jge 0x550030
cmp edi, reloc.WS2_32.dll_ioctlsocket
jne 0x55003d
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x54ff3d
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x6c4]
call fcn.00402180
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0x10]
test edx, edx
mov esi, dword [eax + 0xc]
ja 0x54ffab
test esi, esi
jbe 0x54ff3d
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edi, dword [ebx]
adc ecx, 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x28], eax
mov eax, ecx
and eax, 0x7fffffff
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x4c], eax
fild qword [esp + 0x48]
and ecx, 0x80000000
mov dword [esp + 0x54], ecx
xor edi, edi
mov dword [esp + 0x50], edi
fild qword [esp + 0x50]
mov eax, edx
mov ecx, edx
and eax, 0x7fffffff
fchs
mov dword [esp + 0x44], eax
faddp st(1)
and ecx, 0x80000000
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x40], esi
fild qword [esp + 0x40]
mov dword [esp + 0x58], edi
fild qword [esp + 0x58]
mov eax, dword [ebx]
mov eax, dword [eax + 0x24]
sub esp, 8
fchs
mov ecx, ebx
faddp st(1)
fdivp st(1)
fstp qword [esp]
call eax
jmp 0x54ff3d
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x550042
jmp 0x54ff89
mov byte [esp + 0x17], 1
lea esi, [esp + 0x20]
call fcn.0068cf60
cmp byte [esp + 0x17], 0
je 0x550073
push edi
mov edi, dword [ebp + 0x10]
lea ecx, [esp + 0x2b4]
push ecx
push str._s___i_
add edi, 0x14
mov esi, 0x104
call fcn.004af0d0
add esp, 0xc
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x550083
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x550093
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
lea ecx, [esp + 0xa8]
push ecx
push eax
call fcn.00481290
jmp 0x5500c8
mov eax, dword [esp + 0x60]
test eax, eax
je 0x5500b8
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5500c8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x30]
add esi, 1
cmp esi, dword [esp + 0x34]
mov dword [esp + 0x30], esi
jb 0x54fd83
mov eax, dword [ebp + 8]
mov dword [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov dword [eax], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x20]
mov esi, dword [ebp + 8]
push eax
mov dword [esi], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x550125
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc