Function at 0x502e60
Capabilities:
Get file attributes
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d62ce
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
mov ebx, dword [esp + 0xc0]
push ebp
push esi
push edi
mov edi, ecx
push ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x502e9d
xor al, al
jmp 0x50335f
lea esi, [edi + 0x7c]
push ebp
push 0
mov ecx, esi
call fcn.005044a0
call dword [sym.imp.kernel32.dll_GetTickCount]
test edi, edi
je 0x502eb9
lea eax, [edi + 4]
jmp 0x502ebb
xor eax, eax
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0xd8]
push ecx
mov ecx, dword [esp + 0xd8]
push edx
mov edx, dword [esp + 0xd8]
push ecx
push edx
push eax
lea eax, [edi + 0x90]
push esi
push eax
push ebx
mov ebx, dword [esp + 0xe8]
push ebx
call fcn.00432dc0
add esp, 0x24
cmp eax, 2
je 0x502f06
cmp eax, 4
je 0x502f06
xor al, al
jmp 0x50335f
mov ecx, edi
call fcn.00502440
test al, al
je 0x502f18
xor al, al
jmp 0x50335f
test bl, bl
je 0x502f7f
mov eax, dword [edi + 0x98]
xor ebx, ebx
xor esi, esi
cmp eax, ebx
jle 0x502f7f
push 0x61f8d8
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
lea ecx, [esp + 0x10]
push eax
call fcn.005c0fb0
mov edx, dword [edi + 0x94]
lea ecx, [esp + 0x10]
push ecx
push ebx
mov ecx, dword [edx + esi*4]
push 1
add ecx, 0x980
mov dword [esp + 0xcc], ebx
call fcn.004b0b90
lea ecx, [esp + 0x10]
mov dword [esp + 0xc0], ebp
call sub.mfc42u.dll_CString::CString
mov eax, dword [edi + 0x98]
inc esi
cmp esi, eax
jl 0x502f2a
lea ecx, [esp + 0x9c]
call fcn.004b1760
mov eax, dword [edi + 0x98]
xor ebx, ebx
test eax, eax
mov dword [esp + 0xc0], 1
jle 0x502ff8
mov eax, dword [edi + 0x94]
mov esi, dword [eax + ebx*4]
mov ecx, esi
call fcn.004ae9a0
push eax
call fcn.00502cd0
fld qword [esi + 0xab8]
fld qword [esi + 0xab8]
fsub st(2)
add esp, 4
fabs
fmul qword [0x5ea870]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 1
fstp st(0)
je 0x502fed
lea ecx, [esp + 0x9c]
push ecx
mov ecx, esi
call fcn.004ae7b0
mov eax, dword [edi + 0x98]
inc ebx
cmp ebx, eax
jl 0x502fa2
mov ecx, edi
call fcn.00502630
mov eax, dword [edi + 0x98]
mov esi, 1
xor ecx, ecx
cmp eax, esi
mov dword [esp + 0x10], ecx
jle 0x50308b
mov edx, dword [edi + 0x94]
mov ebx, dword [edx + esi*4 - 4]
lea eax, [edx + esi*4]
mov eax, dword [edx + esi*4]
lea ecx, [eax + 0x980]
call fcn.004b09f0
lea ecx, [ebx + 0x980]
mov ebp, eax
call fcn.004b09f0
mov eax, dword [eax]
push eax
mov eax, dword [ebp]
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
add esp, 8
test eax, eax
je 0x50307c
mov edx, dword [esp + 0x10]
mov eax, esi
sub eax, edx
cmp eax, 1
jle 0x503078
mov ecx, dword [edi + 0x94]
push 0x4facb0
push 4
push eax
lea ecx, [ecx + edx*4]
push ecx
call dword [sym.imp.msvcrt.dll_qsort]
add esp, 0x10
mov dword [esp + 0x10], esi
mov eax, dword [edi + 0x98]
inc esi
cmp esi, eax
jl 0x503014
mov ecx, dword [esp + 0x10]
sub esi, ecx
cmp esi, 1
jle 0x5030ad
mov eax, dword [edi + 0x94]
push 0x4facb0
push 4
push esi
lea edx, [eax + ecx*4]
push edx
call dword [sym.imp.msvcrt.dll_qsort]
add esp, 0x10
cmp esi, 0xffffffff
je 0x5030b8
mov dword [edi + 0xb4], esi
mov esi, dword [edi + 0xa8]
xor ebp, ebp
cmp esi, ebp
je 0x5030fa
mov eax, dword [edi + 0xac]
mov ecx, eax
dec eax
test ecx, ecx
je 0x5030e5
lea ebx, [eax + 1]
push ebp
mov ecx, esi
call fcn.004fe890
add esi, 0x80
dec ebx
jne 0x5030d4
mov eax, dword [edi + 0xa8]
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [edi + 0xa8], ebp
mov dword [edi + 0xb0], ebp
mov dword [edi + 0xac], ebp
mov eax, dword [edi + 0x98]
xor ebx, ebx
cmp eax, ebp
mov dword [esp + 0x14], ebx
jle 0x503346
mov edx, dword [edi + 0xac]
xor esi, esi
test edx, edx
mov dword [esp + 0x10], esi
jle 0x50319c
mov eax, dword [edi + 0x94]
mov ecx, dword [eax + ebx*4]
mov ebp, dword [ecx + 0x988]
mov ecx, dword [edi + 0xa8]
mov eax, ecx
cmp dword [eax], ebp
je 0x503155
inc esi
add eax, 0x80
cmp esi, edx
jl 0x503141
mov dword [esp + 0x10], esi
jmp 0x50319c
mov eax, esi
mov dword [esp + 0x10], esi
shl eax, 7
add eax, ecx
mov ecx, dword [eax + 0x7c]
add ecx, 0x980
call fcn.004b0c20
mov edx, dword [edi + 0x94]
mov ebp, eax
mov ecx, dword [edx + ebx*4]
add ecx, 0x980
call fcn.004b0c20
mov eax, dword [eax]
push eax
mov eax, dword [ebp]
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x50337a
cmp esi, dword [edi + 0xac]
jne 0x503322
mov edx, dword [edi + 0x94]
mov ecx, dword [edi + 0x3c]
push ecx
lea ecx, [esp + 0x20]
mov eax, dword [edx + ebx*4]
push eax
call fcn.004fffe0
mov esi, dword [edi + 0xac]
lea ebx, [edi + 0xa4]
push 0xffffffffffffffff
mov byte [esp + 0xc4], 2
lea ecx, [esi + 1]
push ecx
mov ecx, ebx
call fcn.004fdf90
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x1c]
shl esi, 7
add esi, ecx
mov dword [esi], edx
mov eax, dword [esp + 0x20]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x28]
mov dword [esi + 8], ecx
push edx
lea ecx, [esi + 0xc]
call sub.mfc42u.dll_CString::operator_2
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], eax
mov ecx, dword [esp + 0x54]
lea ebp, [esp + 0x7c]
mov dword [esi + 0x38], ecx
mov dl, byte [esp + 0x58]
mov byte [esi + 0x3c], dl
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x40], eax
mov ecx, dword [esp + 0x60]
mov dword [esi + 0x44], ecx
mov edx, dword [esp + 0x64]
mov dword [esi + 0x48], edx
mov al, byte [esp + 0x68]
mov byte [esi + 0x4c], al
mov ecx, dword [esp + 0x6c]
mov dword [esi + 0x50], ecx
mov edx, dword [esp + 0x70]
mov dword [esi + 0x54], edx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], ecx
lea ebx, [esi + 0x60]
mov dword [esp + 0x18], 2
push ebp
mov ecx, ebx
call sub.mfc42u.dll_CString::operator_2
mov eax, dword [esp + 0x18]
add ebp, 4
add ebx, 4
dec eax
mov dword [esp + 0x18], eax
jne 0x5032a4
lea eax, [esp + 0x84]
lea ecx, [esi + 0x68]
mov edx, 2
mov ebx, dword [eax]
add eax, 4
mov dword [ecx], ebx
add ecx, 4
dec edx
jne 0x5032cc
lea eax, [esp + 0x8c]
lea ecx, [esi + 0x70]
mov edx, 2
mov ebx, dword [eax]
add eax, 4
mov dword [ecx], ebx
add ecx, 4
dec edx
jne 0x5032e8
mov edx, dword [esp + 0x94]
lea ecx, [esp + 0x1c]
mov dword [esi + 0x78], edx
mov eax, dword [esp + 0x98]
mov dword [esi + 0x7c], eax
mov byte [esp + 0xc0], 1
call fcn.00500120
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [edi + 0x94]
inc ebx
mov dword [esp + 0x14], ebx
mov edx, dword [ecx + ebx*4 - 4]
mov word [edx + 0x972], si
mov eax, dword [edi + 0x98]
cmp ebx, eax
jl 0x50311a
lea ecx, [esp + 0x9c]
mov dword [esp + 0xc0], 0xffffffff
call fcn.004b17b0
mov al, 1
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb4
ret 0x18
push 1
push 0
push 0
push 0
push 0
push 0x61f8b8
call sub.etinfo.dll_unsigned_short_int_const____cdecl_mgLoadLocateString_unsigned_short_int_const__
add esp, 4
push eax
call fcn.0046c660
add esp, 0x18
lea ecx, [esp + 0x9c]
mov dword [esp + 0xc0], 0xffffffff
call fcn.004b17b0
xor al, al
jmp 0x50335f