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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x457d16
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x90]
push edi
lea edi, [eax + 4]
push edi
mov dword [esp + 0x14], vtable.CCS::CCSAutoLock.0
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x15c], 0
mov eax, dword [0x53d410]
test eax, eax
je 0x41fb77
cmp dword [esi + 0x14], 0
jne 0x41fb77
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x41fb77
cmp dword [ebp + 0x10], 3
jge 0x41fb77
cmp dword [ebp + 0x14], 0
je 0x41fb77
cmp dword [ebp + 0x18], 0
je 0x41fb77
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push 1
push 0
push eax
mov eax, dword [ecx + 0x38]
call eax
test eax, eax
jl 0x41faa9
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0xd4]
mov dword [esi + 0x24], edx
mov edx, dword [esp + 0x5c]
push 0x38
shr edx, 1
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0xdc]
and dl, 1
lea edi, [esi + 0x34]
push 0
push edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov byte [esi + 0x30], dl
call fcn.0043c820
mov eax, dword [ebp + 0x14]
mov dword [edi], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x38], eax
movzx eax, byte [esi + 8]
xor edx, edx
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0x80000001
add eax, 0x80000000
mov ecx, 1
mov dword [esi + 0x68], eax
mov eax, dword [ebp + 0x10]
sub eax, edx
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x58], ecx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x5c], 0x50
mov dword [esi + 0x64], edx
mov dword [esi + 0x3c], 0x16
je 0x41fad6
sub eax, ecx
je 0x41fab7
sub eax, ecx
jne 0x41faa9
test dword [esp + 0x3c], 0x80000
je 0x41faa9
lea edx, [esp + 0x18]
push edx
push edi
push 0x24
mov eax, dword [0x53d410]
mov ecx, dword [eax]
push ebx
push 1
push 0
push eax
mov eax, dword [ecx + 0x40]
call eax
test eax, eax
jge 0x41fb06
lea ecx, [esp + 0x10]
call fcn.0041c080
jmp 0x41fb7e
mov eax, dword [esp + 0x3c]
test eax, 0x80000
je 0x41faa9
test eax, 0x10000
je 0x41faa9
lea edx, [esp + 0x18]
push edx
push edi
push 0x84
jmp 0x41fa93
mov eax, dword [esp + 0x3c]
test eax, 0x80000
je 0x41faa9
test eax, 0x10000
je 0x41faa9
test eax, 0x100000
je 0x41faa9
cmp dword [esp + 0xe4], 0xfffe0101
jb 0x41faa9
lea edx, [esp + 0x18]
push edx
push edi
push 0x54
jmp 0x41fa93
mov eax, dword [esp + 0x18]
mov ebx, eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x15c], 1
mov edi, eax
test eax, eax
je 0x41fb26
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esi + 0x14]
mov ecx, edi
mov dword [esi + 0x14], ecx
test eax, eax
je 0x41fb3a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x15c], 0
test ebx, ebx
je 0x41fb4e
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov ecx, esi
call fcn.00420350
lea ecx, [esp + 0x10]
call fcn.0041c080
mov al, 1
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x154]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14