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

Disassembly:
push 0xffffffffffffffff
push 0x4819db
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x49f750]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49f750]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, ecx
xorps xmm0, xmm0
push 4
movq qword [esp + 0x28], xmm0
call fcn.00461bc5
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x3c], 0
test eax, eax
je 0x435fa5
mov dword [eax], 0
mov dword [eax], 0
jmp 0x435fa7
xor eax, eax
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [esp + 0x24]
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.00436e40
mov dword [esp + 0x3c], 1
mov esi, dword [esp + 0x24]
mov eax, dword [esi]
test eax, eax
je 0x435ff2
push eax
push ecx
call fcn.00434970
add esp, 4
mov ecx, eax
call fcn.00434d80
mov dword [esi], 0
call fcn.00434970
mov ecx, eax
call fcn.00434c50
or ebp, 0xffffffff
mov dword [esi], eax
test eax, eax
je 0x4360a1
mov ecx, dword [edi]
lea eax, [esp + 0x24]
push eax
add ecx, 0x30
call fcn.00410710
mov ecx, dword [edi]
sub esp, 8
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x1c], esp
mov eax, dword [esi + 0x60]
mov dword [ecx + 0x3c], eax
mov ecx, esp
push edi
call fcn.00410660
mov byte [esp + 0x44], 2
push esi
mov byte [esp + 0x48], 1
call fcn.004361c0
test al, al
jne 0x4360f8
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov byte [esp + 0x3c], 3
lea eax, [esp + 0x18]
mov ecx, dword [edi]
push eax
add ecx, 0x30
call fcn.0042d500
mov byte [esp + 0x3c], 1
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4360a1
lea eax, [esi + 4]
mov ecx, ebp
lock xadd dword [eax], ecx
jne 0x4360a1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
mov edx, ebp
lock xadd dword [eax], edx
jne 0x4360a1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
xor bl, bl
mov dword [esp + 0x3c], 0xffffffff
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4360d5
lea eax, [esi + 4]
mov ecx, ebp
lock xadd dword [eax], ecx
jne 0x4360d5
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea edx, [esi + 8]
lock xadd dword [edx], ebp
dec ebp
jne 0x4360d5
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov al, bl
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00461397
add esp, 0x2c
ret 4
mov eax, dword [edi]
add eax, 0x80
mov dword [esp + 0x20], eax
je 0x436112
mov eax, dword [eax]
test eax, eax
je 0x436112
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x3c], 4
mov eax, dword [edi]
cmp byte [eax + 0x38], 0
je 0x436131
mov ecx, dword [edi]
lea ecx, [ecx + 0x30]
call fcn.004107b0
mov esi, dword [esp + 0x20]
xor bl, bl
jmp 0x436191
mov esi, dword [esp + 0x20]
test esi, esi
je 0x43614c
mov eax, dword [esi]
test eax, eax
je 0x436146
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x24]
xor bl, bl
mov dword [esp + 0x14], 2
push dword [eax]
lea eax, [esp + 0x18]
push eax
call fcn.00434970
mov ecx, eax
call fcn.00434ce0
mov ecx, dword [esp + 0x14]
test al, al
je 0x436182
test ecx, ecx
movzx ebx, bl
mov eax, 1
cmove ebx, eax
mov eax, dword [edi]
mov dword [eax + 0x78], ecx
mov ecx, dword [edi]
lea ecx, [ecx + 0x30]
call fcn.004107b0
mov byte [esp + 0x3c], 1
test esi, esi
je 0x4360a3
mov eax, dword [esi]
test eax, eax
je 0x4361ab
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x20], 0
jmp 0x4360a3