Function at 0x4604f0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edi, dword [ebp + 8]
test edi, edi
je 0x4605eb
mov al, byte [0x4f6654]
test al, 1
jne 0x460749
prefetcht0 byte [edi]
mov eax, edi
and eax, 0xffe00000
mov edx, dword [eax + 0x1000]
mov ecx, edi
shr ecx, 9
and ecx, 0xfe0
lea esi, [eax + ecx]
add esi, 0x1000
movzx eax, byte [eax + ecx + 0x101e]
and eax, 0x3f
shl eax, 5
mov ebx, edi
sub ebx, dword [edx + 0xc]
sub esi, eax
prefetcht0 byte [esi]
cmp byte [edx], 2
je 0x460768
cmp byte [edx + 6], 0
jne 0x4606ab
cmp byte [edx + 2], 0
jne 0x4605fe
mov dword [ebx], 0
lea eax, [edx + 0x40]
mov dword [ebp - 0x10], eax
push eax
mov edi, edx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x460723
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xc]
sub dword [edi + 0x8fc], eax
mov eax, dword [esi]
cmp eax, ebx
je 0x460843
bswap eax
mov dword [ebx], eax
not eax
mov dword [ebx + 4], eax
mov dword [esi], ebx
mov eax, dword [esi + 0xc]
mov ecx, eax
and ecx, 0xefffffff
mov dword [esi + 0xc], ecx
test eax, 0x3ffe
je 0x460846
lea ecx, [eax + 0x3ffe]
and ecx, 0x3ffe
mov edx, eax
and edx, 0xefffc001
or edx, ecx
mov dword [esi + 0xc], edx
test al, 1
jne 0x4605f3
test ecx, ecx
je 0x4605f3
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
push 1
call fcn.00445c80
jmp 0x4605e2
mov eax, dword [esi + 8]
lea edi, [edx + 0x48]
mov ecx, edx
add edx, 0x8c8
cmp edx, eax
setae dl
mov dword [ebp - 0x10], edi
cmp edi, eax
ja 0x460849
test dl, dl
mov edx, ecx
je 0x46056a
mov edx, dword [0x4e5e14]
mov edi, dword fs:[0x2c]
mov edx, dword [edi + edx*4]
mov edi, dword [edx + 0x90]
mov edx, ecx
cmp edi, 2
jb 0x46056a
sub eax, dword [ebp - 0x10]
sar eax, 5
add dword [edi + 0x30], 1
adc dword [edi + 0x34], 0
movzx ecx, word [0x4e4d28]
cmp eax, ecx
ja 0x4606d1
mov ecx, dword [edi + eax*8 + 0x58]
bswap ecx
mov dword [ebx], ecx
not ecx
mov dword [ebx + 4], ecx
mov dword [edi + eax*8 + 0x58], ebx
inc byte [edi + eax*8 + 0x5c]
movzx ecx, word [edi + eax*8 + 0x5e]
add dword [edi], ecx
add dword [edi + 0x38], 1
adc dword [edi + 0x3c], 0
mov cl, byte [edi + eax*8 + 0x5d]
cmp byte [edi + eax*8 + 0x5c], cl
ja 0x460730
mov al, byte [edi + 4]
test al, 1
je 0x4605eb
mov ecx, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0045bbe0
mov eax, dword [ebx]
cmp eax, 1
jne 0x4606de
mov eax, dword [ebx]
mov ecx, eax
and ecx, 0xfffffffe
lock cmpxchg dword [ebx], ecx
jne 0x4606b4
test al, 1
je 0x460850
cmp eax, 1
jne 0x46070a
jmp 0x460560
add dword [edi + 0x40], 1
adc dword [edi + 0x44], 0
jmp 0x46056a
test byte [esi + 0xf], 8
jne 0x460867
mov eax, dword [esi + 8]
add eax, 0xc
mov eax, dword [eax]
mov dword [ebp - 0x14], edx
sub eax, dword [edx + 8]
push eax
push 0xef
push edi
call fcn.0046e590
mov edx, dword [ebp - 0x14]
add esp, 0xc
jmp 0x4606b2
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xc]
lock add dword [edx + 0x918], eax
lock inc dword [edx + 0x91c]
jmp 0x4605eb
mov ecx, dword [ebp - 0x10]
call fcn.0045bf70
jmp 0x460587
lea eax, [edi + eax*8]
add eax, 0x58
movzx edx, cl
shr edx, 1
mov ecx, edi
push edx
push eax
call fcn.0045b880
jmp 0x460692
push edi
call fcn.004c2be0
add esp, 4
push edi
call fcn.004c2c00
add esp, 4
test al, al
je 0x460511
jmp 0x4605eb
mov dword [ebp - 0x14], edx
mov al, byte [0x4e5d51]
test al, 1
jne 0x460855
mov eax, ebx
shr eax, 0x15
cmp word [eax + eax + 0x4e4d2c], 0xfffe
mov edx, dword [ebp - 0x14]
jne 0x460556
mov eax, dword [esi + 8]
test byte [esi + 0xf], 8
jne 0x46085f
lea esi, [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], eax
cmp byte [0x4e5d53], 1
jne 0x4607c2
mov eax, dword [esi]
mov ecx, dword [ebp - 0x14]
sub eax, dword [ecx + 8]
push eax
push 0
push edi
call fcn.0046e590
add esp, 0xc
mov ecx, dword [0x4e5d3c]
and ecx, 1
mov eax, 2
sub eax, ecx
mov ecx, ebx
shr cl, 2
and cl, 0x1e
shl eax, cl
mov ecx, ebx
and ecx, 0xffe00000
not eax
shr ebx, 5
and ebx, 0xfffc
lock and dword [ebx + ecx + 0x4000], eax
mov ecx, dword [ebp - 0x10]
mov eax, ecx
lock xadd dword [0x4e5d34], eax
add eax, ecx
mov ecx, dword [0x4e5d38]
cmp eax, ecx
jbe 0x4605eb
mov ecx, dword [0x4e5d4c]
call fcn.004c2410
test al, al
je 0x4605eb
mov al, byte [0x4e5d50]
test al, al
jne 0x4605eb
push 1
call fcn.004b7c90
add esp, 0xc
jmp 0x4605ee
int3
int3
xor edx, edx
jmp 0x46061c
call fcn.004b45b0
call fcn.004b7cb0
jmp 0x460778
add esi, 0x20
jmp 0x46079f
lea eax, [esi + 0x20]
jmp 0x4606ee