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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50067d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x54d894]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp byte [esi + 0x38], 0
jne 0x4316c6
lea ebx, [esi + 0x54]
xorps xmm0, xmm0
push ebx
movlpd qword [esp + 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x74], 0
jle 0x43153c
lea eax, [edi + 1]
cdq
idiv dword [esi + 0x74]
mov edi, edx
jmp 0x43153e
xor edi, edi
push edi
mov ecx, esi
call fcn.00431457
test eax, eax
je 0x43155a
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jmp 0x43156a
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x24]
call fcn.00431a78
mov edx, dword [esp + 0x18]
push ecx
push ecx
mov ecx, dword [esp + 0x2c]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
push ecx
push ecx
mov ecx, dword [esp + 0x24]
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
call fcn.00431ba5
add esp, 0x10
test al, al
je 0x4315f8
mov ebx, dword [esp + 0x24]
push ecx
push ecx
mov eax, esp
push ecx
push ecx
mov dword [eax], ebx
mov ebx, dword [esp + 0x38]
mov dword [eax + 4], ebx
mov eax, esp
mov dword [eax], ecx
lea ecx, [esp + 0x3c]
mov dword [eax + 4], edx
call fcn.00431b4b
add esp, 0x10
movsd xmm0, qword [eax]
mulsd xmm0, qword [0x52f280]
call fcn.004facef
push edx
push eax
push 0
push 0x1f4
call fcn.0040a712
add esp, 0x10
lea ebx, [esi + 0x54]
jmp 0x4316af
xor eax, eax
test edi, edi
sete al
mov dword [esp + 0x14], eax
lea eax, [esi + 0x3c]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [esp + 0x48], 0
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov ecx, esi
call fcn.00431457
push ebx
mov dword [esi + 0x78], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x43169c
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x18]
test eax, eax
js 0x431686
push ecx
push ecx
mov edx, eax
mov ecx, esp
call fcn.004316d9
push ecx
push ecx
mov ecx, dword [esp + 0x34]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
lea ecx, [esp + 0x44]
call fcn.00431b1d
mov edx, dword [esi + 0x78]
add esp, 0x10
mov ecx, dword [eax]
mov dword [edx + 8], ecx
mov eax, dword [eax + 4]
mov dword [edx + 0xc], eax
jmp 0x431691
push dword [esi + 0x78]
lea ecx, [esi + 0x6c]
call fcn.004125e3
and dword [esi + 0x78], 0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or dword [esp + 0x48], 0xffffffff
lea eax, [esi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x4316bc
push eax
lea ecx, [esi + 0x2c]
call fcn.0043a8fb
cmp byte [esi + 0x38], 0
je 0x43151b
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret