Function at 0x5a0350
Capabilities:
Check if file exists
Enumerate pe sections
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edi, ecx
call fcn.00421ed0
test edi, edi
je 0x5a049c
prefetcht0 byte [edi]
mov eax, edi
and eax, 0xffe00000
mov esi, dword [eax + 0x1000]
mov ecx, edi
shr ecx, 9
and ecx, 0xfe0
lea edx, [eax + ecx]
add edx, 0x1000
movzx eax, byte [edx + 0x1e]
and eax, 0x3f
shl eax, 5
mov ebx, edi
sub ebx, dword [esi + 0x10]
sub edx, eax
prefetcht0 byte [edx]
cmp byte [esi], 2
mov dword [ebp - 0x10], edx
je 0x5a04a4
cmp byte [esi + 6], 0
je 0x5a0400
test ebx, 0xfff
mov dword [ebp - 0x14], ebx
je 0x5a0629
add ebx, 0xfffffffc
mov eax, dword [ebx]
and eax, 0x7fffffff
cmp eax, 1
je 0x5a03da
cmp byte [esi + 7], 0
jne 0x5a067e
mov eax, dword [ebx]
mov ecx, eax
and ecx, 0xfffffffe
lock cmpxchg dword [ebx], ecx
jne 0x5a03dc
test al, 1
je 0x5a0649
and eax, 0x7fffffff
cmp eax, 1
jne 0x5a0651
mov ebx, dword [ebp - 0x14]
cmp byte [esi + 3], 0
je 0x5a057b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
lea ecx, [esi + 0x48]
cmp ecx, eax
ja 0x5a057b
lea edx, [esi + 0x1148]
cmp edx, eax
jb 0x5a057b
mov edx, dword [0x5f75b4]
mov edi, dword fs:[0x2c]
mov edx, dword [edi + edx*4]
mov edi, dword [edx + 0x140]
cmp edi, 2
jb 0x5a057b
sub eax, ecx
add dword [edi + 0x30], 1
adc dword [edi + 0x34], 0
cmp eax, 0x3e0
ja 0x5a0573
shr eax, 2
mov ecx, dword [edi + eax + 0x58]
bswap ecx
mov dword [ebx], ecx
mov dword [edi + eax + 0x58], ebx
mov dl, byte [edi + eax + 0x5c]
inc dl
mov byte [edi + eax + 0x5c], dl
movzx ecx, word [edi + eax + 0x5e]
add dword [edi], ecx
add dword [edi + 0x38], 1
adc dword [edi + 0x3c], 0
mov cl, byte [edi + eax + 0x5d]
cmp dl, cl
ja 0x5a0603
mov al, byte [edi + 4]
test al, 1
jne 0x5a061b
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov al, byte [0x5f6211]
test al, 1
jne 0x5a06b2
mov eax, ebx
shr eax, 0x15
cmp word [eax + eax + 0x5f6238], 0xfffe
jne 0x5a03ac
mov eax, dword [edx + 8]
test byte [edx + 0xf], 8
mov dword [ebp - 0x14], ebx
jne 0x5a06bf
lea edx, [eax + 0xc]
mov ebx, dword [eax + 0xc]
cmp byte [0x5f6213], 1
jne 0x5a04f5
mov eax, dword [edx]
sub eax, dword [esi + 0xc]
push eax
push 0
push edi
call fcn.005191b0
add esp, 0xc
mov ecx, dword [0x5f61fc]
and ecx, 1
mov eax, 2
sub eax, ecx
mov edx, dword [ebp - 0x14]
mov ecx, edx
shr cl, 2
and cl, 0x1e
shl eax, cl
mov ecx, edx
and ecx, 0xffe00000
not eax
shr edx, 5
and edx, 0xfffc
lock and dword [edx + ecx + 0x4000], eax
mov eax, ebx
lock xadd dword [0x5f61f4], eax
add eax, ebx
mov ecx, dword [0x5f61f8]
cmp eax, ecx
jbe 0x5a049c
mov eax, dword [0x5f620c]
mov al, byte [eax + 8]
test al, 1
je 0x5a049c
mov al, byte [0x5f6210]
test al, al
jne 0x5a049c
push 1
call fcn.00582f40
add esp, 0xc
jmp 0x5a049f
add dword [edi + 0x40], 1
adc dword [edi + 0x44], 0
mov dword [ebx], 0
lea edi, [esi + 0x40]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x5a0596
mov ecx, edi
call fcn.004ef6b0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
mov eax, dword [eax + 0xc]
sub dword [esi + 0x117c], eax
mov eax, dword [edx]
cmp eax, ebx
je 0x5a06cc
bswap eax
mov dword [ebx], eax
mov dword [edx], ebx
mov eax, dword [edx + 0xc]
mov ecx, eax
and ecx, 0xefffffff
mov dword [edx + 0xc], ecx
test eax, 0x3ffe
je 0x5a06cf
mov ecx, edx
mov edx, 0x3ffe
lea esi, [eax + edx]
and esi, edx
mov edx, eax
and edx, 0xefffc001
or edx, esi
mov dword [ecx + 0xc], edx
test al, 1
jne 0x5a06a6
test esi, esi
je 0x5a06a6
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x5a049c
add eax, edi
add eax, 0x58
movzx edx, cl
shr edx, 1
mov ecx, edi
push edx
push eax
call fcn.004fa3d0
jmp 0x5a0491
mov ecx, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004f06a0
mov eax, ebx
and eax, 0xffe00000
mov ecx, ebx
shr ecx, 9
and ecx, 0xff8
lea ebx, [ecx + eax]
add ebx, 0x2000
jmp 0x5a03c4
mov ecx, ebx
push eax
call fcn.004d1d90
mov eax, dword [edx + 8]
mov eax, dword [eax + 0xc]
lock add dword [esi + 0x1198], eax
lock inc dword [esi + 0x119c]
mov eax, dword [edx + 8]
mov eax, dword [eax + 0xc]
lock add dword [esi + 0x11a0], eax
lock inc dword [esi + 0x11a4]
jmp 0x5a049c
test byte [edx + 0xf], 8
jne 0x5a06c7
mov eax, dword [edx + 8]
add eax, 0xc
mov eax, dword [eax]
sub eax, dword [esi + 0xc]
push eax
push 0xef
push edi
call fcn.005191b0
add esp, 0xc
mov edx, dword [ebp - 0x10]
jmp 0x5a03da
push 1
call fcn.004eea90
jmp 0x5a05f7
call fcn.00582f60
mov edx, dword [ebp - 0x10]
jmp 0x5a04b1
add edx, 0x20
jmp 0x5a04d8
lea eax, [edx + 0x20]
jmp 0x5a068a
int3
int3