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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
mov eax, 0x1af0
call fcn.00517ca0
mov ebx, ecx
mov eax, dword [0x5f3418]
xor eax, ebp
mov dword [esp + 0x1ae8], eax
xor esi, esi
cmp byte [ebp + 0xc], 0
je 0x412938
lea eax, [esp + 0x168]
push 0x1980
push 0xff
push eax
call fcn.005191b0
add esp, 0xc
lea edi, [esp + 0x78]
push 0xf0
push 0
push edi
call fcn.005191b0
add esp, 0xc
movq xmm0, qword [ebx + 0x1188]
pshufd xmm1, xmm0, 0x55
movd dword [edi + 0xe0], xmm0
movd dword [edi + 0xe4], xmm1
movq xmm0, qword [ebx + 0x1190]
pshufd xmm1, xmm0, 0x55
movd dword [edi + 0xe8], xmm0
movd dword [edi + 0xec], xmm1
lea eax, [ebx + 0x40]
mov dword [esp + 0x24], eax
push eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x41294c
mov dword [esp + 0x14], esi
mov eax, dword [ebx + 0x1174]
mov ecx, dword [ebx + 0x1178]
add ecx, eax
mov dword [esp + 0x78], ecx
mov eax, dword [ebx + 0x116c]
mov dword [esp + 0x7c], eax
mov eax, dword [ebx + 0x1170]
mov dword [esp + 0x80], eax
mov eax, dword [ebx + 0x117c]
mov dword [esp + 0x84], eax
mov eax, dword [ebx + 0x1180]
mov dword [esp + 0x88], eax
mov eax, dword [ebx + 0x1198]
mov dword [esp + 0xa0], eax
mov eax, dword [ebx + 0x119c]
mov dword [esp + 0xa4], eax
mov eax, dword [ebx + 0x11a0]
mov dword [esp + 0xa8], eax
mov eax, dword [ebx + 0x11a4]
mov dword [esp + 0xac], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
xor eax, eax
mov edx, ebx
mov dword [esp + 0xc], ebx
mov ebx, eax
shl ebx, 5
mov edi, dword [edx + ebx + 0x48]
mov dword [esp + 0x3c], eax
lea esi, [eax + eax*2]
shl esi, 4
mov byte [esp + esi + 0x168], 0
test edi, edi
je 0x412724
lea eax, [esp + esi]
add eax, 0x168
mov dword [esp + 0x10], eax
call fcn.004f04f0
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + ebx + 0x4c]
cmp edi, eax
mov dword [esp + 0x30], ecx
jne 0x412739
test ecx, ecx
mov eax, dword [esp + 0x10]
jne 0x41273d
mov dword [esp + 0x30], 0
cmp dword [edx + ebx + 0x50], 0
jne 0x41273d
cmp dword [edx + ebx + 0x58], 0x100
jae 0x41273d
cmp byte [eax], 0
je 0x412724
mov edi, dword [esp + 0x18]
add edi, dword [esp + esi + 0x17c]
mov ecx, dword [esp + 0x1c]
add ecx, dword [esp + esi + 0x174]
mov eax, dword [esp + 0x20]
add eax, dword [esp + esi + 0x178]
mov edx, dword [esp + 0x28]
add edx, dword [esp + esi + 0x180]
mov ebx, dword [esp + 0x2c]
add ebx, dword [esp + esi + 0x184]
mov dword [esp + 0x18], edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x9c], ebx
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, 0x88
jne 0x412638
jmp 0x41283a
mov eax, dword [esp + 0x10]
pxor xmm0, xmm0
movdqu xmmword [eax], xmm0
movdqu xmmword [eax + 0x20], xmm0
movdqu xmmword [eax + 0x10], xmm0
mov byte [eax], 1
mov byte [esp + esi + 0x169], 0
mov eax, dword [edx + ebx + 0x58]
movzx ecx, al
shr eax, 8
mov dword [esp + 0x34], eax
mov dword [esp + esi + 0x188], eax
mov eax, dword [edx + ebx + 0x54]
mov dword [esp + 0x38], eax
mov dword [esp + esi + 0x16c], eax
shl ecx, 0xc
mov edi, dword [edx + ebx + 0x64]
imul edi, ecx
mov eax, ecx
mul dword [edx + ebx + 0x60]
add edx, edi
shr edx, 0xa
movzx eax, dx
mov dword [esp + esi + 0x170], ecx
mov edx, dword [esp + 0x34]
imul eax, edx
mov edi, dword [esp + 0x38]
imul edi, eax
mov dword [esp + esi + 0x174], edi
mov dword [esp + esi + 0x178], eax
imul ecx, edx
mov dword [esp + esi + 0x17c], ecx
mov edi, dword [esp + 0x30]
test edi, edi
je 0x4127db
mov ecx, dword [esp + 0x10]
mov edx, edi
call fcn.00504fb0
mov edi, dword [edi + 4]
jmp 0x4127c7
mov eax, dword [esp + 0xc]
mov edi, dword [eax + ebx + 0x50]
test edi, edi
je 0x4127fb
mov ecx, dword [esp + 0x10]
mov edx, edi
call fcn.00504fb0
mov eax, dword [esp + 0xc]
mov edi, dword [edi + 4]
jmp 0x4127e3
lea edi, [eax + ebx]
add edi, 0x48
mov ebx, dword [edi]
call fcn.004f04f0
mov edx, dword [esp + 0xc]
cmp ebx, eax
mov eax, dword [esp + 0x10]
je 0x4126ad
mov edi, dword [edi]
test edi, edi
je 0x4126ad
mov ecx, dword [esp + 0x10]
mov edx, edi
call fcn.00504fb0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov edi, dword [edi + 4]
jmp 0x41281a
mov ecx, dword [edx + 0x11c4]
xor eax, eax
mov esi, 0
test ecx, ecx
jne 0x4128d0
mov ecx, dword [esp + 0x18]
add ecx, eax
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x1c]
add ecx, eax
mov dword [esp + 0x90], ecx
mov eax, dword [esp + 0x20]
add eax, esi
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xc]
mov al, byte [eax + 3]
mov byte [esp + 0xb0], al
test al, al
jne 0x412907
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp byte [ebp + 0xc], 0
je 0x41295a
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x78]
push eax
push dword [ebp + 8]
call fcn.00412a10
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4129e8
mov ecx, dword [esp + 0x1ae8]
xor ecx, ebp
call fcn.00512ee3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
xor edx, edx
xor eax, eax
mov edi, dword [esp + 0x14]
mov esi, dword [ecx + 8]
mov esi, dword [esi + 0xc]
cmp byte [ebp + 0xc], 0
je 0x4129f6
add eax, esi
lea esi, [edx + 1]
mov ecx, dword [ecx]
test ecx, ecx
je 0x41284f
cmp edx, 0xfff
mov edx, esi
jae 0x41284f
jmp 0x4128d8
call fcn.00412a00
lea edx, [esp + 0xb8]
mov ecx, eax
push edx
push 1
call fcn.004133f0
call fcn.00412a00
lea edx, [esp + 0x108]
mov ecx, eax
push edx
push 0
call fcn.004133f0
jmp 0x412888
push 0x4000
call fcn.00510d94
add esp, 4
mov esi, eax
jmp 0x41250f
mov ecx, dword [esp + 0x24]
call fcn.004ef6b0
jmp 0x41258d
xor edi, edi
cmp byte [esp + edi + 0x168], 0
je 0x41297a
lea eax, [esp + edi]
add eax, 0x168
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.004d5270
add edi, 0x30
cmp edi, 0x1980
jne 0x41295c
test esi, esi
je 0x41289c
xor edi, edi
xor ebx, ebx
inc ebx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + edi*4]
pxor xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
mov word [esp + 0x40], 0x101
mov dword [esp + 0x60], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], eax
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x40]
push eax
push dword [ebp + 8]
call fcn.004d5270
inc edi
cmp esi, edi
jne 0x412992
jmp 0x41289c
push eax
call fcn.00510d5f
add esp, 4
jmp 0x4128b8
mov dword [edi + edx*4], esi
jmp 0x4128e8