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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b1260
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x14], eax
mov edi, dword [ebp + 0xc]
lea esi, [eax + 0xec4]
push esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x50], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x90], 0
xor ebx, ebx
mov dx, word [ebp + 0xa]
mov eax, dword [ebp + 8]
test dx, dx
movzx ecx, al
cmove ecx, ebx
movzx eax, al
mov byte [esp + 0x44], cl
movzx ecx, dl
cmove ecx, eax
cmp dword [edi + 0x6c], 8
cvttsd2si eax, qword [edi]
mov dword [esp + 0x48], ecx
mov byte [esp + 0x40], cl
mov dword [esp + 0x1c], eax
cvttsd2si eax, qword [edi + 8]
mov dword [esp + 0x20], eax
lea eax, [edi + 0x58]
jb 0x100225d6
mov eax, dword [eax]
cmp dword [edi + 0x3c], 8
lea ebx, [edi + 0x28]
mov dword [esp + 0x2c], eax
jb 0x100225eb
mov eax, dword [ebx]
mov dword [esp + 0x28], eax
jmp 0x100225ef
mov dword [esp + 0x28], ebx
add edi, 0x10
mov dword [esp + 0x18], edi
cmp dword [edi + 0x14], 8
jb 0x10022602
mov edi, dword [edi]
mov dword [esp + 0x18], edi
push esi
mov dword [esp + 0x38], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push edi
mov edi, dword [esp + 0x48]
add ecx, 0x710
push eax
push edi
mov byte [esp + 0xa0], 1
call fcn.100739f0
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push dword [esp + 0x2c]
push dword [esp + 0x20]
lea ecx, [ecx + 0x18]
push eax
push edi
push dword [esp + 0x58]
call fcn.10065120
push esi
mov byte [esp + 0x94], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x30]
cmp byte [edi + 0x70], 0
je 0x100227ce
movsd xmm2, qword [edi + 0x80]
xorps xmm0, xmm0
ucomisd xmm2, xmm0
movsd qword [esp + 0x1c], xmm2
lahf
test ah, 0x44
jp 0x100226ca
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0xf24]
mov edx, dword [ecx + 0xf28]
cmp eax, edx
cmovl edx, eax
mov eax, 0x91a2b3c5
mov ecx, edx
shl ecx, 4
sub ecx, edx
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
movd xmm1, eax
cvtdq2pd xmm1, xmm1
movsd qword [esp + 0x1c], xmm1
movsd xmm1, qword [edi + 0x78]
ucomisd xmm1, xmm0
movsd qword [esp + 0x34], xmm1
lahf
test ah, 0x44
jp 0x1002271c
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xf24]
mov edx, dword [eax + 0xf28]
cmp ecx, edx
mov eax, 0x91a2b3c5
cmovl edx, ecx
mov ecx, edx
shl ecx, 4
sub ecx, edx
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [esp + 0x34], xmm0
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x68]
push dword [ebp + 8]
push edx
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov ecx, eax
lea eax, [edi + 0x58]
mov byte [esp + 0x90], 2
cmp dword [eax + 0x14], 8
jb 0x10022745
mov eax, dword [eax]
cmp dword [ebx + 0x14], 8
mov dword [esp + 0x18], eax
jb 0x10022751
mov ebx, dword [ebx]
cmp dword [ecx + 0x14], 8
jb 0x10022759
mov ecx, dword [ecx]
mov dx, word [ebp + 0xa]
mov eax, dword [ebp + 8]
test dx, dx
jne 0x1002276c
movzx edx, ax
xor eax, eax
jmp 0x10022772
movzx eax, ax
movzx edx, dx
push dword [esp + 0x18]
push ebx
push 0
push 0
push ecx
movzx ecx, ax
shl ecx, 0x10
movzx eax, dx
add ecx, eax
mov ebx, dword [esp + 0x28]
cvttsd2si eax, qword [esp + 0x30]
push ecx
lea ecx, [ebx + 0xf34]
push eax
cvttsd2si eax, qword [esp + 0x50]
push eax
cvttsd2si eax, qword [edi + 8]
push eax
cvttsd2si eax, qword [edi]
push eax
call fcn.1003de10
mov byte [esp + 0x90], 0
cmp dword [esp + 0x7c], 8
jb 0x100227d2
push dword [esp + 0x68]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x100227d2
mov ebx, dword [esp + 0x14]
lea edx, [edi + 0x58]
lea ecx, [esp + 0x50]
call fcn.100248c0
mov byte [esp + 0x90], 3
lea eax, [esp + 0x50]
mov edx, dword [esp + 0x64]
cmp edx, 8
mov ecx, dword [esp + 0x50]
cmovae eax, ecx
test eax, eax
je 0x1002283f
cmp word [eax], 0
je 0x1002283f
mov dword [esp + 0x1c], eax
lea ecx, [ebx + 0x1018]
mov eax, dword [esp + 0x48]
movzx eax, al
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
call fcn.10016d10
push eax
add eax, 0x10
push eax
push ecx
lea eax, [esp + 0x28]
push eax
lea ecx, [ebx + 0x1018]
call fcn.10016d90
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x50]
cmp edx, 8
jb 0x1002284e
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x64], 7
push esi
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.100ad688
mov esp, ebp
pop ebp
ret 8