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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ebx, [ebp + 8]
lea eax, [ecx + 0xc]
mov dword [ebp - 0x30], eax
push eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
xor eax, eax
cmp dword [esi + 0x3c], 0
mov ecx, 0
mov edi, 0
mov edx, 0
je 0x40cf38
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], eax
cmp dword [ebx], 0
je 0x40cf1f
movzx eax, word [ebx + 4]
test eax, eax
je 0x40cf1f
movzx ecx, byte [ebx + 6]
mov dword [ebp - 0x10], ecx
add dword [esi + 0x40], eax
mov ebx, dword [esi + 0x3c]
mov eax, dword [ebx + 8]
cmp eax, dword [ebx + 0xc]
jb 0x40ce93
lea ecx, [ebx + 4]
call fcn.0040c300
mov edi, eax
mov dword [ebx + 8], edi
cmp dword [ebx + 4], edi
je 0x40d275
cmp byte [esi + 0x78], 0
lea ebx, [ebp + 8]
je 0x40cebe
mov eax, dword [ebx]
movzx eax, word [eax + 6]
bt eax, 0xc
jae 0x40cebe
mov eax, dword [ebx]
sub eax, dword [esi + 0x14]
xor edx, edx
div dword [esi + 0x1c]
jmp 0x40ceff
mov dword [eax], 0x4a297c
lea edi, [eax + 0x2c]
xorps xmm0, xmm0
movups xmmword [eax + 4], xmm0
movups xmmword [eax + 0x14], xmm0
xorps xmm0, xmm0
movsd qword [eax + 0x24], xmm0
jmp 0x40ce66
xor eax, eax
xor ecx, ecx
xor edi, edi
xor edx, edx
jmp 0x40ce26
mov ebx, esp
lea ecx, [esi + 0x14]
push eax
push eax
mov edx, esp
lea eax, [ebp + 8]
mov eax, dword [eax]
mov dword [edx], eax
lea eax, [ebp + 8]
movzx eax, word [eax + 4]
mov word [edx + 4], ax
lea eax, [ebp + 8]
mov al, byte [eax + 6]
mov byte [edx + 6], al
lea eax, [ebp + 8]
mov dword [eax], 0
mov word [eax + 4], 0
mov byte [eax + 6], 0
call fcn.0040ca20
mov esp, ebx
lea ebx, [ebp + 8]
mov dword [edi - 0x28], eax
mov eax, dword [edi - 4]
mov ecx, dword [ebp - 0x10]
mov dword [edi - 0x24], ecx
mov ecx, eax
or ecx, 6
mov dword [edi - 4], ecx
mov ecx, dword [ebx + 0xc]
mov dword [edi - 0x20], ecx
or eax, 0xe
mov dword [edi - 4], eax
mov ebx, dword [ebx + 0x10]
mov eax, dword [ebx]
mov cl, 1
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x40d110
xor edi, edi
jmp 0x40d002
push 0x38
call fcn.0045e423
add esp, 4
mov dword [eax], 0x4a294c
xorps xmm0, xmm0
movups xmmword [eax + 4], xmm0
xorps xmm1, xmm1
movsd qword [eax + 0x14], xmm1
movups xmmword [eax + 0x20], xmm0
movsd qword [eax + 0x30], xmm1
mov dword [esi + 0x3c], eax
cmp byte [esi + 0x59], 0
je 0x40ceb1
xor eax, eax
cmp byte [esi + 0x7a], 0
mov ecx, 0
mov edx, 0
jne 0x40ce26
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x8c]
test ecx, ecx
je 0x40cf97
lock inc dword [ecx + 4]
mov edx, dword [esi + 0x10]
mov edi, dword [esi + 0x74]
mov byte [esi + 0x7a], 1
jmp 0x40ce26
mov dword [eax - 0x18], 4
mov ecx, dword [eax - 0x1c]
jmp 0x40cfe8
xor eax, eax
jmp 0x40d04a
lea ecx, [edi + 0x10]
call fcn.0043a450
mov dword [edi + 0x14], eax
cmp dword [edi + 0x10], eax
je 0x40d252
movzx ecx, word [ebp - 0x28]
mov dword [eax - 0x20], ecx
or byte [eax - 4], 2
cmp byte [eax - 0x11], 0
lea ebx, [ebp + 8]
js 0x40cfa6
lea ecx, [eax - 0x1c]
mov byte [eax - 0x11], 4
mov edx, dword [ebp - 0x26]
mov dword [ecx], edx
mov byte [ecx + 4], 0
or byte [eax - 4], 4
mov ebx, dword [ebx + 0x10]
mov eax, dword [ebx]
test eax, eax
je 0x40d108
cmp byte [eax + 0xa], 0
je 0x40d0e8
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x24], ecx
movsd xmm0, qword [eax + 4]
movsd qword [ebp - 0x2c], xmm0
mov ecx, dword [eax]
mov dword [ebx], ecx
push eax
call fcn.0045e41e
add esp, 4
cmp dword [ebx], 0
jne 0x40d031
mov dword [ebx + 4], ebx
lea ebx, [ebp + 8]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x40cfb2
mov eax, dword [eax + 4]
cmp eax, dword [ebp - 0x2c]
sete al
cmp byte [esi + 0x78], 0
je 0x40d06a
movzx edx, word [ebx + 8]
movzx eax, al
mov ecx, esi
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040c8b0
add esp, 8
test al, al
jne 0x40cff5
mov ebx, dword [ebp - 0x2c]
test edi, edi
je 0x40d076
cmp dword [edi + 0xc], ebx
je 0x40d0c3
mov edi, dword [esi + 0x3c]
mov ecx, dword [edi + 0x14]
cmp ecx, dword [edi + 0x18]
jb 0x40d258
lea ecx, [edi + 0x10]
call fcn.00417ca0
mov dword [edi + 0x14], eax
cmp dword [edi + 0x10], eax
je 0x40d255
lea edi, [eax - 0x30]
lea ecx, [ebp + 8]
movzx ecx, word [ecx + 8]
mov dword [eax - 0x28], ecx
mov ecx, dword [eax - 4]
mov dword [eax - 0x24], ebx
mov edx, ecx
or edx, 0xc
mov dword [eax - 4], edx
lea edx, [ebp + 8]
mov edx, dword [edx + 0xc]
mov dword [eax - 0x2c], edx
or ecx, 0xe
mov dword [eax - 4], ecx
mov ecx, dword [edi + 0x14]
cmp ecx, dword [edi + 0x18]
jae 0x40cfb9
mov dword [ecx], fcn.00498c80
lea eax, [ecx + 0x24]
xorps xmm0, xmm0
movups xmmword [ecx + 4], xmm0
movups xmmword [ecx + 0x14], xmm0
jmp 0x40cfc1
test edi, edi
mov ebx, dword [ebp - 0x14]
je 0x40d113
mov eax, dword [eax + 4]
cmp eax, dword [edi + 0xc]
jne 0x40d0ff
mov byte [edi + 0x1c], 1
or byte [edi + 0x2c], 0x20
mov dword [ebp - 0x10], 0
jmp 0x40d113
test edi, edi
sete al
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x14]
cmp byte [esi + 0x59], 0
je 0x40d190
cmp byte [ebp - 0x10], 0
je 0x40d129
mov eax, dword [esi + 0x18]
shr eax, 1
cmp dword [esi + 0x40], eax
jb 0x40d190
mov eax, dword [esi + 0x88]
mov dword [ebp - 0x20], eax
mov edi, dword [esi + 0x8c]
test edi, edi
je 0x40d140
lock inc dword [edi + 4]
test ebx, ebx
je 0x40d184
xor eax, eax
dec eax
lock xadd dword [ebx + 4], eax
test eax, eax
jne 0x40d184
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
call dword [0x4b1788]
mov ecx, ebx
call dword [ebp - 0x10]
xor ecx, ecx
dec ecx
mov eax, dword [ebx + 8]
test eax, eax
jne 0x40d240
mov eax, dword [ebx]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x10], ecx
call dword [0x4b1788]
mov ecx, ebx
call dword [ebp - 0x10]
mov ebx, dword [esi + 0x10]
mov dword [ebp - 0x1c], 0
jmp 0x40d195
mov edi, ebx
mov ebx, dword [ebp - 0x18]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test ebx, ebx
je 0x40d1f0
mov dword [ebp - 0x10], esp
push eax
sub esp, 0x14
mov esi, esp
test edi, edi
je 0x40d1b3
lock inc dword [edi + 4]
mov dword [esi + 0xc], 0x40e710
mov dword [esi + 0x10], 0x4a2f30
push 8
call fcn.0045e423
add esp, 4
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov dword [eax + 4], edi
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4b1788]
mov ecx, ebx
call esi
mov esp, dword [ebp - 0x10]
test edi, edi
je 0x40d22b
xor ebx, ebx
dec ebx
mov eax, ebx
lock xadd dword [edi + 4], eax
test eax, eax
jne 0x40d22b
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4b1788]
mov ecx, edi
call esi
mov eax, dword [edi + 8]
test eax, eax
jne 0x40d235
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4b1788]
mov ecx, edi
call esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
lock xadd dword [edi + 8], ebx
test ebx, ebx
jne 0x40d22b
jmp 0x40d21a
lock xadd dword [ebx + 8], ecx
test ecx, ecx
jne 0x40d184
jmp 0x40d171
int3
int3
mov dword [ecx], 0x4a295c
lea eax, [ecx + 0x30]
xorps xmm0, xmm0
movups xmmword [ecx + 4], xmm0
movups xmmword [ecx + 0xd], xmm0
movups xmmword [ecx + 0x20], xmm0
jmp 0x40d08d
int3