Function at 0x41def0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c8aa8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x4f7f44]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
cmp byte [edi + 0x11], 0
jne 0x41df40
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x54], 0
jne 0x41df87
lea esi, [edi + 0x2c]
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x70], 0
cmp dword [edi + 0x24], 0
je 0x41df6e
lea eax, [edi + 0x44]
lea ecx, [edi + 0x14]
push eax
call fcn.0041e980
mov dword [esp + 0x70], 0xffffffff
test esi, esi
je 0x41df81
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [edi + 0x54], 0
je 0x41df28
lea eax, [esp + 0x28]
lea ecx, [edi + 0x44]
call fcn.00413a10
mov ecx, dword [eax]
test ecx, ecx
je 0x41df9b
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
mov edx, dword [ecx + 8]
cmp edx, eax
ja 0x41dfa7
sub eax, edx
mov ecx, dword [ecx + 4]
mov esi, dword [ecx + eax*4]
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [esp + 0x34], eax
test eax, eax
je 0x41dfc5
push 1
add eax, 4
push eax
call ebx
mov edx, dword [esi + 8]
mov dword [esp + 0x3c], edx
mov eax, dword [esi + 0xc]
mov dword [esp + 0x40], eax
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x44], ecx
mov dl, byte [esi + 0x14]
mov byte [esp + 0x48], dl
mov dword [esp + 0x70], 1
cmp dword [edi + 0x54], 0
je 0x41e035
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x48]
mov eax, dword [ecx + eax*4]
mov esi, dword [eax]
test esi, esi
je 0x41e017
push 0xffffffffffffffff
lea edx, [esi + 4]
push edx
call ebx
dec eax
jne 0x41e017
test esi, esi
je 0x41e017
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
inc dword [edi + 0x50]
mov eax, dword [edi + 0x50]
cmp dword [edi + 0x4c], eax
ja 0x41e029
mov dword [edi + 0x50], 0
dec dword [edi + 0x54]
jne 0x41e035
mov dword [edi + 0x50], 0
mov eax, dword [esp + 0x3c]
or eax, dword [esp + 0x40]
je 0x41e072
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x34]
mov edx, esi
call fcn.0041dd50
mov eax, dword [esi + 0x74]
mov ecx, dword [eax + 0x10]
cmp ecx, dword [esp + 0x44]
jne 0x41e119
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x3c]
push eax
call edx
jmp 0x41e119
cmp byte [esp + 0x48], 0
mov eax, dword [esp + 0x10]
jne 0x41e157
mov ecx, dword [eax + 8]
cmp dword [ecx], 1
je 0x41e157
mov edx, dword [eax + 0x6c]
lea esi, [eax + 0x5c]
inc edx
cmp dword [esi + 8], edx
ja 0x41e0a0
mov ebx, esi
call fcn.0041ede0
mov ebx, dword [esi + 0xc]
add ebx, dword [esi + 0x10]
mov eax, dword [esi + 8]
cmp eax, ebx
ja 0x41e0af
sub ebx, eax
mov eax, dword [esi + 4]
cmp dword [eax + ebx*4], 0
jne 0x41e0d0
push 0x18
call fcn.004a7b89
add esp, 4
test eax, eax
je 0x41e20f
mov ecx, dword [esi + 4]
mov dword [ecx + ebx*4], eax
mov edx, dword [esi + 4]
mov ebx, dword [edx + ebx*4]
test ebx, ebx
je 0x41e110
mov eax, dword [esp + 0x34]
mov dword [ebx], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x41e0f4
push 1
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ecx, dword [esp + 0x3c]
mov dword [ebx + 8], ecx
mov edx, dword [esp + 0x40]
mov dword [ebx + 0xc], edx
mov eax, dword [esp + 0x44]
mov dword [ebx + 0x10], eax
mov cl, byte [esp + 0x48]
mov byte [ebx + 0x14], cl
inc dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [esp + 0x70], 0xffffffff
mov esi, dword [esp + 0x34]
test esi, esi
je 0x41e142
push 0xffffffffffffffff
lea edx, [esi + 4]
push edx
call ebx
dec eax
jne 0x41e142
test esi, esi
je 0x41e142
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x54], 0
jne 0x41df87
mov edi, eax
jmp 0x41df40
mov esi, dword [esp + 0x34]
mov byte [eax + 0x11], 0
mov dword [esp + 0x4c], esi
test esi, esi
je 0x41e173
push 1
lea ecx, [esi + 4]
push ecx
call ebx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x58], ecx
mov cl, byte [esp + 0x48]
mov dword [esp + 0x5c], edx
mov byte [esp + 0x60], cl
push eax
mov byte [esp + 0x74], 2
call fcn.0041e5d0
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edi, dword [esp + 0x10]
push edi
call fcn.0041e690
push 0xffffffffffffffff
lea ecx, [esi + 4]
push ecx
mov byte [edi + 0x11], 1
mov byte [esp + 0x78], 1
call ebx
dec eax
jne 0x41e1cf
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x34]
test eax, eax
je 0x41e1fa
mov esi, eax
push 0xffffffffffffffff
add eax, 4
push eax
call ebx
dec eax
jne 0x41e1fa
test esi, esi
je 0x41e1fa
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov al, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
call fcn.004a7c91
push 0x4f0c38
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], vtable.std::bad_alloc.0
call fcn.004aa25a
int3